类 CopyObjectRequest


public class CopyObjectRequest extends PutObjectBasicRequest
Parameters in a request for copying an object
  • 字段详细资料

    • sourceBucketName

      private String sourceBucketName
    • sourceObjectKey

      private String sourceObjectKey
    • newObjectMetadata

      private ObjectMetadata newObjectMetadata
    • replaceMetadata

      private boolean replaceMetadata
    • ifModifiedSince

      private Date ifModifiedSince
    • ifUnmodifiedSince

      private Date ifUnmodifiedSince
    • ifMatchTag

      private String ifMatchTag
    • ifNoneMatchTag

      private String ifNoneMatchTag
    • versionId

      private String versionId
    • sseCHeaderSource

      private SseCHeader sseCHeaderSource
  • 构造器详细资料

    • CopyObjectRequest

      public CopyObjectRequest()
    • CopyObjectRequest

      public CopyObjectRequest(String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey)
      Constructor
      参数:
      sourceBucketName - Source bucket name
      sourceObjectKey - Source object name
      destinationBucketName - Destination bucket name
      destinationObjectKey - Destination object name
  • 方法详细资料

    • getSseCHeaderSource

      public SseCHeader getSseCHeaderSource()
      Obtain SSE-C decryption headers of the source object.
      返回:
      SSE-C decryption headers of the source object
    • setSseCHeaderSource

      public void setSseCHeaderSource(SseCHeader sseCHeaderSource)
      Set SSE-C decryption headers of the source object.
      参数:
      sseCHeaderSource - SSE-C decryption headers of the source object
    • getSseCHeaderDestination

      @Deprecated public SseCHeader getSseCHeaderDestination()
      已过时。
      Obtain SSE-C encryption headers of the destination object.
      返回:
      SSE-C encryption headers
    • setSseCHeaderDestination

      @Deprecated public void setSseCHeaderDestination(SseCHeader sseCHeaderDestination)
      已过时。
      Set SSE-C encryption headers for the destination object.
      参数:
      sseCHeaderDestination - SSE-C encryption headers
    • getIfModifiedSince

      public Date getIfModifiedSince()
      Obtain the time condition for copying the object: Only when the source object is modified after the point in time specified by this parameter, it can be copied; otherwise, "412 Precondition Failed" will be returned.
      返回:
      Time condition set for copying the object
    • setIfModifiedSince

      public void setIfModifiedSince(Date ifModifiedSince)
      Set the time condition for copying the object: Only when the source object is modified after the point in time specified by this parameter, it can be copied; otherwise, "412 Precondition Failed" will be returned.
      参数:
      ifModifiedSince - Time condition set for copying the object
    • getIfUnmodifiedSince

      public Date getIfUnmodifiedSince()
      Obtain the time condition for copying the object: Only when the source object remains unchanged after the point in time specified by this parameter, it can be copied; otherwise, "412 Precondition Failed" will be returned.
      返回:
      Time condition set for copying the object
    • setIfUnmodifiedSince

      public void setIfUnmodifiedSince(Date ifUnmodifiedSince)
      Set the time condition for copying the object: Only when the source object remains unchanged after the point in time specified by this parameter, it can be copied; otherwise, "412 Precondition Failed" will be returned.
      参数:
      ifUnmodifiedSince - Time condition set for copying the object
    • getIfMatchTag

      public String getIfMatchTag()
      Obtain the ETag verification condition for copying the object: Only when the ETag of the source object is the same as that specified by this parameter, the object can be copied. Otherwise, "412 Precondition Failed" will be returned.
      返回:
      ETag verification condition set for copying the object
    • setIfMatchTag

      public void setIfMatchTag(String ifMatchTag)
      Set the ETag verification condition for copying the object: Only when the ETag of the source object is the same as that specified by this parameter, the object can be copied. Otherwise, "412 Precondition Failed" will be returned.
      参数:
      ifMatchTag - ETag verification condition set for copying the object
    • getIfNoneMatchTag

      public String getIfNoneMatchTag()
      Obtain the ETag verification condition for copying the object: Only when the ETag of the source object is different from that specified by this parameter, the object will be copied. Otherwise, "412 Precondition Failed" will be returned.
      返回:
      ETag verification condition set for copying the object
    • setIfNoneMatchTag

      public void setIfNoneMatchTag(String ifNoneMatchTag)
      Set the ETag verification condition for copying the object: Only when the ETag of the source object is different from that specified by this parameter, the object will be copied. Otherwise, "412 Precondition Failed" will be returned.
      参数:
      ifNoneMatchTag - ETag verification condition set for copying the object
    • getVersionId

      public String getVersionId()
      Obtain the version ID of the source object.
      返回:
      Version ID of the source object
    • setVersionId

      public void setVersionId(String versionId)
      Set the version ID for the source object.
      参数:
      versionId - Version ID of the source object
    • getSourceBucketName

      public String getSourceBucketName()
      Obtain the source bucket name.
      返回:
      Source bucket name
    • setSourceBucketName

      public void setSourceBucketName(String sourceBucketName)
      Set the source bucket name.
      参数:
      sourceBucketName - Source bucket name
    • getSourceObjectKey

      public String getSourceObjectKey()
      Obtain the source object name.
      返回:
      Source object name
    • setSourceObjectKey

      public void setSourceObjectKey(String sourceObjectKey)
      Set the source object name.
      参数:
      sourceObjectKey - Source object name
    • getDestinationBucketName

      public String getDestinationBucketName()
      Obtain the destination bucket name.
      返回:
      Destination bucket name
    • setDestinationBucketName

      public void setDestinationBucketName(String destinationBucketName)
      Set the destination bucket name.
      参数:
      destinationBucketName - Destination bucket name
    • getDestinationObjectKey

      public String getDestinationObjectKey()
      Obtain the destination object name.
      返回:
      Destination object name
    • setDestinationObjectKey

      public void setDestinationObjectKey(String destinationObjectKey)
      Set the destination object name.
      参数:
      destinationObjectKey - Destination object name
    • getNewObjectMetadata

      public ObjectMetadata getNewObjectMetadata()
      Obtain the properties, including customized metadata, of the destination object.
      返回:
      ObjectMetadata Properties of the destination object
    • setNewObjectMetadata

      public void setNewObjectMetadata(ObjectMetadata newObjectMetadata)
      Set the properties, including customized metadata, of the destination object.
      参数:
      newObjectMetadata - Properties of the destination object
    • isReplaceMetadata

      public boolean isReplaceMetadata()
      Obtain the identifier specifying whether to replace properties of the destination object. "true" indicates that properties will be replaced (used together with "setNewObjectMetadata") and "false" indicates that the destination object inherits properties from the source object.
      返回:
      Identifier specifying whether to replace the properties of the destination object
    • setReplaceMetadata

      public void setReplaceMetadata(boolean replaceMetadata)
      Set the identifier specifying whether to replace properties of the destination object. "true" indicates that properties will be replaced (used together with "setNewObjectMetadata") and "false" indicates that the destination object inherits properties from the source object.
      参数:
      replaceMetadata - Identifier specifying whether to replace the properties of the destination object
    • toString

      public String toString()
      覆盖:
      toString 在类中 BaseObjectRequest