com.obs.services.model

## 类 ObsObject

- java.lang.Object
- - com.obs.services.model.S3Object
  - - com.obs.services.model.ObsObject

- 直接已知子类:
    ReadFileResult

      public class ObsObject
      extends S3Object

  Objects in OBS

- - ### 字段概要

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

      `bucketName, GLACIER, metadata, objectContent, objectKey, owner, STANDARD, STANDARD_IA`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the name of the bucket to which the object belongs.
    `ObjectMetadata` | `getMetadata()` Obtain the object properties, including "content-type", "content-length", and customized metadata.
    `InputStream` | `getObjectContent()` Obtain the data stream of the object.
    `String` | `getObjectKey()` Obtain the object name.
    `Owner` | `getOwner()` Obtain the owner of the object.
    `void` | `setBucketName(String bucketName)` Set the bucket to which the object belongs.
    `void` | `setMetadata(ObjectMetadata metadata)` Set the object properties, including "content-type", "content-length", and customized metadata.
    `void` | `setObjectContent(InputStream objectContent)` Set the data stream of the object.
    `void` | `setObjectKey(String objectKey)` Set the object name.
    `void` | `setOwner(Owner owner)` Set the owner of the object.
    `String` | `toString()`

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

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

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

    - #### ObsObject

          public ObsObject()

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the name of the bucket to which the object belongs.
      覆盖:
        `getBucketName` 在类中 `S3Object`
      返回:
        Name of the bucket to which the object belongs

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket to which the object belongs.
      覆盖:
        `setBucketName` 在类中 `S3Object`
      参数:
        `bucketName` - Name of the bucket to which the object belongs

    - #### getObjectKey

          public String getObjectKey()

      Obtain the object name.
      覆盖:
        `getObjectKey` 在类中 `S3Object`
      返回:
        Object name

    - #### setObjectKey

          public void setObjectKey(String objectKey)

      Set the object name.
      覆盖:
        `setObjectKey` 在类中 `S3Object`
      参数:
        `objectKey` - Object name

    - #### getMetadata

          public ObjectMetadata getMetadata()

      Obtain the object properties, including "content-type", "content-length", and customized metadata.
      覆盖:
        `getMetadata` 在类中 `S3Object`
      返回:
        Object properties

    - #### setMetadata

          public void setMetadata(ObjectMetadata metadata)

      Set the object properties, including "content-type", "content-length", and customized metadata.
      覆盖:
        `setMetadata` 在类中 `S3Object`
      参数:
        `metadata` - Object properties

    - #### getObjectContent

          public InputStream getObjectContent()

      Obtain the data stream of the object.
      覆盖:
        `getObjectContent` 在类中 `S3Object`
      返回:
        Data stream of the object

    - #### setObjectContent

          public void setObjectContent(InputStream objectContent)

      Set the data stream of the object.
      覆盖:
        `setObjectContent` 在类中 `S3Object`
      参数:
        `objectContent` - Object data stream

    - #### getOwner

          public Owner getOwner()

      Obtain the owner of the object.
      覆盖:
        `getOwner` 在类中 `S3Object`
      返回:
        Owner of the object

    - #### setOwner

          public void setOwner(Owner owner)

      Set the owner of the object.
      覆盖:
        `setOwner` 在类中 `S3Object`
      参数:
        `owner` - Owner of the object

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `S3Object`

Copyright © 2021. All rights reserved.