com.aliyun.oss.model

## 类 UploadPartCopyRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.UploadPartCopyRequest

-     public class UploadPartCopyRequest
      extends WebServiceRequest

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `UploadPartCopyRequest()`
    `UploadPartCopyRequest(String sourceBucketName, String sourceKey, String targetBucketName, String targetKey)`
    `UploadPartCopyRequest(String sourceBucketName, String sourceKey, String targetBucketName, String targetKey, String uploadId)`
    `UploadPartCopyRequest(String sourceBucketName, String sourceKey, String targetBucketName, String targetKey, String uploadId, int partNumber, Long beginIndex, Long partSize)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `clearMatchingETagConstraints()`
    `void` | `clearNonmatchingETagConstraints()`
    `Long` | `getBeginIndex()`
    `String` | `getBucketName()` Gets the `Bucket` name.
    `String` | `getKey()` Gets the `OSSObject` key.
    `List<String>` | `getMatchingETagConstraints()`
    `String` | `getMd5Digest()` Gets the part data's MD5 value.
    `Date` | `getModifiedSinceConstraint()`
    `List<String>` | `getNonmatchingEtagConstraints()`
    `int` | `getPartNumber()` Gets the part number.
    `Long` | `getPartSize()` Gets the part's data size in bytes.
    `Payer` | `getRequestPayer()` * Gets the one who pays for the request
    `String` | `getSourceBucketName()`
    `String` | `getSourceKey()`
    `String` | `getSourceVersionId()` Gets the version ID specifying which version of the source object to copy.
    `Date` | `getUnmodifiedSinceConstraint()`
    `String` | `getUploadId()` Gets the multipart upload Id.
    `void` | `setBeginIndex(Long beginIndex)`
    `void` | `setBucketName(String bucketName)` Sets the `Bucket` name.
    `void` | `setKey(String key)` Sets the `OSSObject` key.
    `void` | `setMatchingETagConstraints(List<String> matchingETagConstraints)`
    `void` | `setMd5Digest(String md5Digest)` Sets the part data's MD5 value.
    `void` | `setModifiedSinceConstraint(Date modifiedSinceConstraint)`
    `void` | `setNonmatchingETagConstraints(List<String> nonmatchingEtagConstraints)`
    `void` | `setPartNumber(int partNumber)` Sets the part number.
    `void` | `setPartSize(Long partSize)` Sets the part's data size in bytes.
    `void` | `setRequestPayer(Payer payer)` * Sets the one who pays for the request The Third party should set request payer when requesting resources.
    `void` | `setSourceBucketName(String sourceBucketName)`
    `void` | `setSourceKey(String sourceKey)`
    `void` | `setSourceVersionId(String sourceVersionId)` Sets the optional version ID specifying which version of the source object to copy.
    `void` | `setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)`
    `void` | `setUploadId(String uploadId)` Sets the multipart upload Id.

    - ### 从类继承的方法 com.aliyun.oss.model.WebServiceRequest

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

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

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

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

    - #### UploadPartCopyRequest

          public UploadPartCopyRequest()

    - #### UploadPartCopyRequest

          public UploadPartCopyRequest(String sourceBucketName,
                               String sourceKey,
                               String targetBucketName,
                               String targetKey)

    - #### UploadPartCopyRequest

          public UploadPartCopyRequest(String sourceBucketName,
                               String sourceKey,
                               String targetBucketName,
                               String targetKey,
                               String uploadId)

    - #### UploadPartCopyRequest

          public UploadPartCopyRequest(String sourceBucketName,
                               String sourceKey,
                               String targetBucketName,
                               String targetKey,
                               String uploadId,
                               int partNumber,
                               Long beginIndex,
                               Long partSize)

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Gets the `Bucket` name.
      返回:
        Bucket name.

    - #### setBucketName

          public void setBucketName(String bucketName)

      Sets the `Bucket` name.
      参数:
        `bucketName` - Bucket name.

    - #### getKey

          public String getKey()

      Gets the `OSSObject` key.
      返回:
        Object key.

    - #### setKey

          public void setKey(String key)

      Sets the `OSSObject` key.
      参数:
        `key` - Object key。

    - #### getUploadId

          public String getUploadId()

      Gets the multipart upload Id.
      返回:
        The multipart upload Id.

    - #### setUploadId

          public void setUploadId(String uploadId)

      Sets the multipart upload Id.
      参数:
        `uploadId` - The multipart upload Id.

    - #### getPartNumber

          public int getPartNumber()

      Gets the part number. For every part uploading, it has a part number which is in 1 to 10000 range. Given the upload Id, the part number identified the part and its position in the target file. If uploading the part with an existing part number, the existing part with the part number would be overwritten.
      返回:
        The part number.

    - #### setPartNumber

          public void setPartNumber(int partNumber)

      Sets the part number. For every part uploading, it has a part number which is in 1 to 10000 range. Given the upload Id, the part number identified the part and its position in the target file. If uploading the part with an existing part number, the existing part with the part number would be overwritten.
      参数:
        `partNumber` - The part number.

    - #### getPartSize

          public Long getPartSize()

      Gets the part's data size in bytes. The minimal size for a part is 5MB except the last part.
      返回:
        Part's data size in bytes.

    - #### setPartSize

          public void setPartSize(Long partSize)

      Sets the part's data size in bytes. The minimal size for a part is 5MB except the last part.
      参数:
        `partSize` - Part's data size in bytes.

    - #### getMd5Digest

          public String getMd5Digest()

      Gets the part data's MD5 value.
      返回:
        The part data's MD5 value.

    - #### setMd5Digest

          public void setMd5Digest(String md5Digest)

      Sets the part data's MD5 value.
      参数:
        `md5Digest` - The part data's MD5 value.

    - #### getSourceBucketName

          public String getSourceBucketName()

    - #### setSourceBucketName

          public void setSourceBucketName(String sourceBucketName)

    - #### getSourceKey

          public String getSourceKey()

    - #### setSourceKey

          public void setSourceKey(String sourceKey)

    - #### setRequestPayer

          public void setRequestPayer(Payer payer)

      *

      Sets the one who pays for the request The Third party should set request payer when requesting resources.

      参数:
        `payer` - The one who pays for the request

    - #### getRequestPayer

          public Payer getRequestPayer()

      *

      Gets the one who pays for the request

      返回:
        The one who pays for the request

    - #### getSourceVersionId

          public String getSourceVersionId()

      Gets the version ID specifying which version of the source object to copy. If not specified, the most recent version of the source object will be copied.

      Objects created before enabling versioning or when versioning is suspended are given the default `null` version ID (see `OSSConstants.NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      For more information about enabling versioning for a bucket, see `OSS.setBucketVersioning(SetBucketVersioningRequest)`.

      返回:
        The version ID specifying which version of the source object to copy.
      另请参阅:
        `OSSConstants.NULL_VERSION_ID`, `CopyObjectRequest.setSourceVersionId(String sourceVersionId)`

    - #### setSourceVersionId

          public void setSourceVersionId(String sourceVersionId)

      Sets the optional version ID specifying which version of the source object to copy. If not specified, the most recent version of the source object will be copied.

      Objects created before enabling versioning or when versioning is suspended are given the default `null` version ID (see `OSSConstants.NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      For more information about enabling versioning for a bucket, see `OSS.setBucketVersioning(SetBucketVersioningRequest)`.

      参数:
        `sourceVersionId` - The optional version ID specifying which version of the source object to copy.

    - #### getBeginIndex

          public Long getBeginIndex()

    - #### setBeginIndex

          public void setBeginIndex(Long beginIndex)

    - #### getMatchingETagConstraints

          public List<String> getMatchingETagConstraints()

    - #### setMatchingETagConstraints

          public void setMatchingETagConstraints(List<String> matchingETagConstraints)

    - #### clearMatchingETagConstraints

          public void clearMatchingETagConstraints()

    - #### getNonmatchingEtagConstraints

          public List<String> getNonmatchingEtagConstraints()

    - #### setNonmatchingETagConstraints

          public void setNonmatchingETagConstraints(List<String> nonmatchingEtagConstraints)

    - #### clearNonmatchingETagConstraints

          public void clearNonmatchingETagConstraints()

    - #### getUnmodifiedSinceConstraint

          public Date getUnmodifiedSinceConstraint()

    - #### setUnmodifiedSinceConstraint

          public void setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)

    - #### getModifiedSinceConstraint

          public Date getModifiedSinceConstraint()

    - #### setModifiedSinceConstraint

          public void setModifiedSinceConstraint(Date modifiedSinceConstraint)

Copyright © 2020. All Rights Reserved.