public static class CopyObjectDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CopyObjectDetails |
build() |
CopyObjectDetails.Builder |
copy(CopyObjectDetails model) |
CopyObjectDetails.Builder |
destinationBucket(String destinationBucket)
The destination bucket the object will be copied to.
|
CopyObjectDetails.Builder |
destinationNamespace(String destinationNamespace)
The destination Object Storage namespace the object will be copied to.
|
CopyObjectDetails.Builder |
destinationObjectIfMatchETag(String destinationObjectIfMatchETag)
The entity tag (ETag) to match against that of the destination object (an object intended
to be overwritten).
|
CopyObjectDetails.Builder |
destinationObjectIfNoneMatchETag(String destinationObjectIfNoneMatchETag)
The entity tag (ETag) to avoid matching.
|
CopyObjectDetails.Builder |
destinationObjectMetadata(Map<String,String> destinationObjectMetadata)
Arbitrary string keys and values for the user-defined metadata for the object.
|
CopyObjectDetails.Builder |
destinationObjectName(String destinationObjectName)
The name of the destination object resulting from the copy operation.
|
CopyObjectDetails.Builder |
destinationObjectStorageTier(StorageTier destinationObjectStorageTier)
The storage tier that the object should be stored in.
|
CopyObjectDetails.Builder |
destinationRegion(String destinationRegion)
The destination region the object will be copied to, for example “us-ashburn-1”.
|
CopyObjectDetails.Builder |
sourceObjectIfMatchETag(String sourceObjectIfMatchETag)
The entity tag (ETag) to match against that of the source object.
|
CopyObjectDetails.Builder |
sourceObjectName(String sourceObjectName)
The name of the object to be copied.
|
CopyObjectDetails.Builder |
sourceVersionId(String sourceVersionId)
VersionId of the object to copy.
|
public CopyObjectDetails.Builder sourceObjectName(String sourceObjectName)
The name of the object to be copied.
sourceObjectName
- the value to setpublic CopyObjectDetails.Builder sourceObjectIfMatchETag(String sourceObjectIfMatchETag)
The entity tag (ETag) to match against that of the source object. Used to confirm that the source object with a given name is the version of that object storing a specified ETag.
sourceObjectIfMatchETag
- the value to setpublic CopyObjectDetails.Builder sourceVersionId(String sourceVersionId)
VersionId of the object to copy. If not provided then current version is copied by default.
sourceVersionId
- the value to setpublic CopyObjectDetails.Builder destinationRegion(String destinationRegion)
The destination region the object will be copied to, for example “us-ashburn-1”.
destinationRegion
- the value to setpublic CopyObjectDetails.Builder destinationNamespace(String destinationNamespace)
The destination Object Storage namespace the object will be copied to.
destinationNamespace
- the value to setpublic CopyObjectDetails.Builder destinationBucket(String destinationBucket)
The destination bucket the object will be copied to.
destinationBucket
- the value to setpublic CopyObjectDetails.Builder destinationObjectName(String destinationObjectName)
The name of the destination object resulting from the copy operation. Avoid entering confidential information.
destinationObjectName
- the value to setpublic CopyObjectDetails.Builder destinationObjectIfMatchETag(String destinationObjectIfMatchETag)
The entity tag (ETag) to match against that of the destination object (an object intended to be overwritten). Used to confirm that the destination object stored under a given name is the version of that object storing a specified entity tag.
destinationObjectIfMatchETag
- the value to setpublic CopyObjectDetails.Builder destinationObjectIfNoneMatchETag(String destinationObjectIfNoneMatchETag)
The entity tag (ETag) to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists in the destination bucket.
destinationObjectIfNoneMatchETag
- the value to setpublic CopyObjectDetails.Builder destinationObjectMetadata(Map<String,String> destinationObjectMetadata)
Arbitrary string keys and values for the user-defined metadata for the object. Keys must be in “opc-meta-*” format. Avoid entering confidential information. Metadata key-value pairs entered in this field are assigned to the destination object. If you enter no metadata values, the destination object will inherit any existing metadata values associated with the source object.
destinationObjectMetadata
- the value to setpublic CopyObjectDetails.Builder destinationObjectStorageTier(StorageTier destinationObjectStorageTier)
The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
destinationObjectStorageTier
- the value to setpublic CopyObjectDetails build()
public CopyObjectDetails.Builder copy(CopyObjectDetails model)
Copyright © 2016–2024. All rights reserved.