com.aliyun.oss.model

## 类 UploadPartResult

- java.lang.Object
- - com.aliyun.oss.model.GenericResult
  - - com.aliyun.oss.model.UploadPartResult

-     public class UploadPartResult
      extends GenericResult

  The result information of a part upload in a multipart upload.

- - ### 构造器概要

    构造器
    构造器和说明
    `UploadPartResult()` Constructor

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getETag()` Gets the ETag generated by OSS.
    `PartETag` | `getPartETag()` Gets the part's ETag.
    `int` | `getPartNumber()` Gets the part number.
    `long` | `getPartSize()` Gets the part size.
    `void` | `setETag(String eTag)` Sets the ETag generated by OSS.
    `void` | `setPartNumber(int partNumber)` Sets the part number.
    `void` | `setPartSize(long partSize)` Sets the part size.

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

      `getClientCRC, getRequestId, getResponse, getServerCRC, setClientCRC, setRequestId, setResponse, setServerCRC`

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

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

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

    - #### UploadPartResult

          public UploadPartResult()

      Constructor

  - ### 方法详细资料

    - #### getPartNumber

          public int getPartNumber()

      Gets the part number.
      返回:
        Part number.

    - #### setPartNumber

          public void setPartNumber(int partNumber)

      Sets the part number.
      参数:
        `partNumber` - Part number.

    - #### getETag

          public String getETag()

      Gets the ETag generated by OSS.

      OSS would send the MD5 value of the parts data received to user in the ETag header. To make sure the data transferred is 100% correct, we strongly encouraged user to check the server side MD5 with the local computed MD5 value.

      返回:
        ETag value.

    - #### setETag

          public void setETag(String eTag)

      Sets the ETag generated by OSS.

      OSS would send the MD5 value of the parts data received to user in the ETag header. To make sure the data transferred is 100% correct, we strongly encouraged user to check the server side MD5 with the local computed MD5 value.

      参数:
        `eTag` - ETag value.

    - #### getPartETag

          public PartETag getPartETag()

      Gets the part's ETag.
      返回:
        A `PartETag` instance that has the part number, part size and its ETag.

    - #### getPartSize

          public long getPartSize()

      Gets the part size.
      返回:
        Part size.

    - #### setPartSize

          public void setPartSize(long partSize)

      Sets the part size.
      参数:
        `partSize` - Part size.

Copyright © 2020. All Rights Reserved.