Class CopyObjectDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sourceObjectName

        public CopyObjectDetails.Builder sourceObjectName​(String sourceObjectName)
        The name of the object to be copied.
        Parameters:
        sourceObjectName - the value to set
        Returns:
        this builder
      • sourceObjectIfMatchETag

        public 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
      • sourceVersionId

        public 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
      • destinationRegion

        public 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
      • destinationNamespace

        public 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
      • destinationBucket

        public CopyObjectDetails.Builder destinationBucket​(String destinationBucket)
        The destination bucket the object will be copied to.
        Parameters:
        destinationBucket - the value to set
        Returns:
        this builder
      • destinationObjectName

        public 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
      • destinationObjectIfMatchETag

        public 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
      • destinationObjectIfNoneMatchETag

        public 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
      • destinationObjectMetadata

        public 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
      • destinationObjectStorageTier

        public 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