com.obs.services.model

## 类 CopyObjectRequest

- java.lang.Object
- - com.obs.services.model.GenericRequest
  - - com.obs.services.model.PutObjectBasicRequest
    - - com.obs.services.model.CopyObjectRequest

-     public class CopyObjectRequest
      extends PutObjectBasicRequest

  Parameters in a request for copying an object

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.model.PutObjectBasicRequest

      `acl, bucketName, extensionPermissionMap, objectKey, sseCHeader, sseKmsHeader, successRedirectLocation`

  - ### 构造器概要

    构造器
    构造器和说明
    `CopyObjectRequest()`
    `CopyObjectRequest(String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getDestinationBucketName()` Obtain the destination bucket name.
    `String` | `getDestinationObjectKey()` Obtain the destination object name.
    `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.
    `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.
    `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.
    `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.
    `ObjectMetadata` | `getNewObjectMetadata()` Obtain the properties, including customized metadata, of the destination object.
    `String` | `getSourceBucketName()` Obtain the source bucket name.
    `String` | `getSourceObjectKey()` Obtain the source object name.
    `SseCHeader` | `getSseCHeaderDestination()` 已过时。
    `SseCHeader` | `getSseCHeaderSource()` Obtain SSE-C decryption headers of the source object.
    `String` | `getVersionId()` Obtain the version ID of the source object.
    `boolean` | `isReplaceMetadata()` Obtain the identifier specifying whether to replace properties of the destination object.
    `void` | `setDestinationBucketName(String destinationBucketName)` Set the destination bucket name.
    `void` | `setDestinationObjectKey(String destinationObjectKey)` Set the destination object name.
    `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.
    `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.
    `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.
    `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.
    `void` | `setNewObjectMetadata(ObjectMetadata newObjectMetadata)` Set the properties, including customized metadata, of the destination object.
    `void` | `setReplaceMetadata(boolean replaceMetadata)` Set the identifier specifying whether to replace properties of the destination object.
    `void` | `setSourceBucketName(String sourceBucketName)` Set the source bucket name.
    `void` | `setSourceObjectKey(String sourceObjectKey)` Set the source object name.
    `void` | `setSseCHeaderDestination(SseCHeader sseCHeaderDestination)` 已过时。
    `void` | `setSseCHeaderSource(SseCHeader sseCHeaderSource)` Set SSE-C decryption headers of the source object.
    `void` | `setVersionId(String versionId)` Set the version ID for the source object.
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.PutObjectBasicRequest

      `getAcl, getAllGrantPermissions, getBucketName, getDomainIdsByGrantPermission, getExtensionPermissionMap, getGrantPermissionsByDomainId, getObjectKey, getSseCHeader, getSseKmsHeader, getSuccessRedirectLocation, grantExtensionPermission, setAcl, setBucketName, setExtensionPermissionMap, setObjectKey, setSseCHeader, setSseKmsHeader, setSuccessRedirectLocation, withdrawExtensionPermission, withdrawExtensionPermissions`

    - ### 从类继承的方法 com.obs.services.model.GenericRequest

      `isRequesterPays, setRequesterPays`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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

    - #### CopyObjectRequest

          public CopyObjectRequest()

  - ### 方法详细资料

    - #### 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` 在类中 `GenericRequest`

Copyright © 2021. All rights reserved.