com.aliyun.oss.model

## 类 PutObjectResult

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

- 所有已实现的接口:
    CallbackResult

      public class PutObjectResult
      extends GenericResult
      implements CallbackResult

  The result class of a Put Object request.

- - ### 构造器概要

    构造器
    构造器和说明
    `PutObjectResult()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `InputStream` | `getCallbackResponseBody()` 已过时。
    `String` | `getETag()` Gets the target `OSSObject`'s ETag.
    `String` | `getVersionId()` Gets version id.
    `void` | `setCallbackResponseBody(InputStream callbackResponseBody)` Sets the callback response body.
    `void` | `setETag(String eTag)` Sets the target `OSSObject`'s ETag.
    `void` | `setVersionId(String versionId)` Sets version id.

    - ### 从类继承的方法 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`

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

    - #### PutObjectResult

          public PutObjectResult()

  - ### 方法详细资料

    - #### getETag

          public String getETag()

      Gets the target `OSSObject`'s ETag.
      返回:
        Target OSSObject's ETag.

    - #### setETag

          public void setETag(String eTag)

      Sets the target `OSSObject`'s ETag.
      参数:
        `eTag` - Target OSSObject's ETag.

    - #### getVersionId

          public String getVersionId()

      Gets version id.
      返回:
        version id.

    - #### setVersionId

          public void setVersionId(String versionId)

      Sets version id.
      参数:
        `versionId` -

    - #### getCallbackResponseBody

          @Deprecated
          public InputStream getCallbackResponseBody()

      已过时。
      Gets the callback response body. The caller needs to close it. Deprecated method. Please use this.getResponse().getContent() instead.
      指定者:
        `getCallbackResponseBody` 在接口中 `CallbackResult`
      返回:
        The callback response body.

    - #### setCallbackResponseBody

          public void setCallbackResponseBody(InputStream callbackResponseBody)

      Sets the callback response body.
      指定者:
        `setCallbackResponseBody` 在接口中 `CallbackResult`
      参数:
        `callbackResponseBody` - The callback response body.

Copyright © 2020. All Rights Reserved.