Class CopyObjectDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.objectstorage.model.CopyObjectDetails.Builder
 
- 
- Enclosing class:
- CopyObjectDetails
 
 public static class CopyObjectDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyObjectDetailsbuild()CopyObjectDetails.Buildercopy(CopyObjectDetails model)CopyObjectDetails.BuilderdestinationBucket(String destinationBucket)The destination bucket the object will be copied to.CopyObjectDetails.BuilderdestinationNamespace(String destinationNamespace)The destination Object Storage namespace the object will be copied to.CopyObjectDetails.BuilderdestinationObjectIfMatchETag(String destinationObjectIfMatchETag)The entity tag (ETag) to match against that of the destination object (an object intended to be overwritten).CopyObjectDetails.BuilderdestinationObjectIfNoneMatchETag(String destinationObjectIfNoneMatchETag)The entity tag (ETag) to avoid matching.CopyObjectDetails.BuilderdestinationObjectMetadata(Map<String,String> destinationObjectMetadata)Arbitrary string keys and values for the user-defined metadata for the object.CopyObjectDetails.BuilderdestinationObjectName(String destinationObjectName)The name of the destination object resulting from the copy operation.CopyObjectDetails.BuilderdestinationObjectStorageTier(StorageTier destinationObjectStorageTier)The storage tier that the object should be stored in.CopyObjectDetails.BuilderdestinationRegion(String destinationRegion)The destination region the object will be copied to, for example “us-ashburn-1”.CopyObjectDetails.BuildersourceObjectIfMatchETag(String sourceObjectIfMatchETag)The entity tag (ETag) to match against that of the source object.CopyObjectDetails.BuildersourceObjectName(String sourceObjectName)The name of the object to be copied.CopyObjectDetails.BuildersourceVersionId(String sourceVersionId)VersionId of the object to copy.
 
- 
- 
- 
Method Detail- 
sourceObjectNamepublic CopyObjectDetails.Builder sourceObjectName(String sourceObjectName) The name of the object to be copied.- Parameters:
- sourceObjectName- the value to set
- Returns:
- this builder
 
 - 
sourceObjectIfMatchETagpublic 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. - Parameters:
- sourceObjectIfMatchETag- the value to set
- Returns:
- this builder
 
 - 
sourceVersionIdpublic CopyObjectDetails.Builder sourceVersionId(String sourceVersionId) VersionId of the object to copy.If not provided then current version is copied by default. - Parameters:
- sourceVersionId- the value to set
- Returns:
- this builder
 
 - 
destinationRegionpublic CopyObjectDetails.Builder destinationRegion(String destinationRegion) The destination region the object will be copied to, for example “us-ashburn-1”.- Parameters:
- destinationRegion- the value to set
- Returns:
- this builder
 
 - 
destinationNamespacepublic CopyObjectDetails.Builder destinationNamespace(String destinationNamespace) The destination Object Storage namespace the object will be copied to.- Parameters:
- destinationNamespace- the value to set
- Returns:
- this builder
 
 - 
destinationBucketpublic CopyObjectDetails.Builder destinationBucket(String destinationBucket) The destination bucket the object will be copied to.- Parameters:
- destinationBucket- the value to set
- Returns:
- this builder
 
 - 
destinationObjectNamepublic CopyObjectDetails.Builder destinationObjectName(String destinationObjectName) The name of the destination object resulting from the copy operation.Avoid entering confidential information. - Parameters:
- destinationObjectName- the value to set
- Returns:
- this builder
 
 - 
destinationObjectIfMatchETagpublic 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. - Parameters:
- destinationObjectIfMatchETag- the value to set
- Returns:
- this builder
 
 - 
destinationObjectIfNoneMatchETagpublic 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. - Parameters:
- destinationObjectIfNoneMatchETag- the value to set
- Returns:
- this builder
 
 - 
destinationObjectMetadatapublic 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. - Parameters:
- destinationObjectMetadata- the value to set
- Returns:
- this builder
 
 - 
destinationObjectStorageTierpublic 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. - Parameters:
- destinationObjectStorageTier- the value to set
- Returns:
- this builder
 
 - 
buildpublic CopyObjectDetails build() 
 - 
copypublic CopyObjectDetails.Builder copy(CopyObjectDetails model) 
 
- 
 
-