OBSCopyObjectRequest Class Reference

Inherits from OBSBaseRequest : OBSAbstractModel : OBSMTLModel
Conforms to OBSCopyObjectProtocol
Declared in OBSCopyObjectModel.h
OBSCopyObjectModel.m

Overview

Object copy request

  srcBucketName

Name of the bucket housing the to-be-copied object

@property (nonatomic, strong, nonnull) NSString *srcBucketName

Declared In

OBSCopyObjectModel.h

  srcObjectKey

Source object name

@property (nonatomic, strong, nonnull) NSString *srcObjectKey

Declared In

OBSCopyObjectModel.h

  srcObjectVersionID

Version ID of the source object

@property (nonatomic, strong, nonnull) NSString *srcObjectVersionID

Declared In

OBSCopyObjectModel.h

  dstBucketName

Name of the bucket to which the object will be copied

@property (nonatomic, strong, nonnull) NSString *dstBucketName

Declared In

OBSCopyObjectModel.h

  dstObjectKey

Name of the object copy

@property (nonatomic, strong, nonnull) NSString *dstObjectKey

Declared In

OBSCopyObjectModel.h

  dstObjectACLPolicy

ACL of the object copy

@property (nonatomic, assign) OBSACLPolicy dstObjectACLPolicy

Declared In

OBSCopyObjectModel.h

  dstObjectMetaDirective

Metadata of the object copy

@property (nonatomic, assign) OBSMetaDirective dstObjectMetaDirective

Declared In

OBSCopyObjectModel.h

  cpSrcIfETagMatch

The source object will be copied if its ETag is the same as the specified one.

@property (nonatomic, strong, nonnull) NSString *cpSrcIfETagMatch

Declared In

OBSCopyObjectModel.h

  cpSrcIfETagNoneMatch

The source object will be copied if its ETag is different from the specified one.

@property (nonatomic, strong, nonnull) NSString *cpSrcIfETagNoneMatch

Declared In

OBSCopyObjectModel.h

  cpSrcIfModifiedSince

The source object will be copied if it is modified after the specified point in time.

@property (nonatomic, strong, nonnull) NSDate *cpSrcIfModifiedSince

Declared In

OBSCopyObjectModel.h

  cpSrcIfUnmodifiedSince

The source object will be copied if it remains unchanged since the specified point in time.

@property (nonatomic, strong, nonnull) NSDate *cpSrcIfUnmodifiedSince

Declared In

OBSCopyObjectModel.h

  dstObjectStorageClass

Object storage class

@property (nonatomic, assign) OBSStorageClass dstObjectStorageClass

Declared In

OBSCopyObjectModel.h

  dstObjectWebsiteRedirectLocation

Redirection address of the object

@property (nonatomic, strong, nonnull) NSString *dstObjectWebsiteRedirectLocation

Declared In

OBSCopyObjectModel.h

  dstObjectEncryption

Encryption mode of the object copy

@property (nonatomic, strong, nonnull) __kindof OBSAbstractEncryption *dstObjectEncryption

Declared In

OBSCopyObjectModel.h

  srcObjectEncryption

Encryption mode of the source object

@property (nonatomic, strong, nonnull) __kindof OBSAbstractEncryption *srcObjectEncryption

Declared In

OBSCopyObjectModel.h

– initWithSrcBucketName:srcObjectKey:dstBucketName:dstObjectKey:

Initialize an object copy request.

- (instancetype)initWithSrcBucketName:(NSString *)srcBucketName srcObjectKey:(NSString *)srcObjectKey dstBucketName:(NSString *)dstBucketName dstObjectKey:(NSString *)dstObjectKey

Parameters

srcBucketName

Name of the bucket housing the source object

srcObjectKey

Source object name

dstBucketName

Name of the bucket to which the object will be copied

dstObjectKey

Name of the object copy

Return Value

Object copy request

Declared In

OBSCopyObjectModel.h