com.obs.services.model

## 类 ObsBucket

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.S3Bucket
      - - com.obs.services.model.ObsBucket

-     public class ObsBucket
      extends S3Bucket

  Buckets in OBS

- - ### 字段概要

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

      `acl, bucketName, bucketTypeEnum, creationDate, GLACIER, location, metadata, owner, STANDARD, STANDARD_IA, storageClass`

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `ObsBucket()`
    `ObsBucket(String bucketName, String location)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `AccessControlList` | `getAcl()` Obtain the bucket ACL.
    `String` | `getBucketName()` Obtain the bucket name.
    `StorageClassEnum` | `getBucketStorageClass()`
    `BucketTypeEnum` | `getBucketType()`
    `Date` | `getCreationDate()` Obtain the creation time of the bucket.
    `String` | `getLocation()` Obtain the bucket location.
    `Map<String,Object>` | `getMetadata()` 已过时。
    `Owner` | `getOwner()` Obtain the owner of the bucket.
    `String` | `getStorageClass()` 已过时。
    `void` | `setAcl(AccessControlList acl)` Set the bucket ACL.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setBucketStorageClass(StorageClassEnum storageClass)` Set the bucket storage class.
    `void` | `setBucketType(BucketTypeEnum bucketTypeEnum)`
    `void` | `setCreationDate(Date bucketCreationDate)` Set the creation time of the bucket.
    `void` | `setLocation(String location)` Set the bucket location.
    `void` | `setMetadata(Map<String,Object> metadata)` 已过时。
    `void` | `setOwner(Owner bucketOwner)` Set the owner of the bucket.
    `void` | `setStorageClass(String storageClass)` 已过时。
    `String` | `toString()`

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

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

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

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

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

    - #### ObsBucket

          public ObsBucket()

    - #### ObsBucket

          public ObsBucket(String bucketName,
                           String location)

      Constructor
      参数:
        `bucketName` - Bucket name
        `location` - Bucket location

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      覆盖:
        `getBucketName` 在类中 `S3Bucket`
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name. The value can contain only lowercase letters, digits, hyphens (-), and periods (.).
      覆盖:
        `setBucketName` 在类中 `S3Bucket`
      参数:
        `bucketName` - Bucket name

    - #### getOwner

          public Owner getOwner()

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

    - #### setOwner

          public void setOwner(Owner bucketOwner)

      Set the owner of the bucket.
      覆盖:
        `setOwner` 在类中 `S3Bucket`
      参数:
        `bucketOwner` - Owner of the bucket

    - #### getCreationDate

          public Date getCreationDate()

      Obtain the creation time of the bucket.
      覆盖:
        `getCreationDate` 在类中 `S3Bucket`
      返回:
        Creation time of the bucket

    - #### setCreationDate

          public void setCreationDate(Date bucketCreationDate)

      Set the creation time of the bucket.
      覆盖:
        `setCreationDate` 在类中 `S3Bucket`
      参数:
        `bucketCreationDate` - Creation time of the bucket

    - #### getMetadata

          @Deprecated
          public Map<String,Object> getMetadata()

      已过时。
      Obtain bucket properties.
      覆盖:
        `getMetadata` 在类中 `S3Bucket`
      返回:
        Bucket properties

    - #### setMetadata

          @Deprecated
          public void setMetadata(Map<String,Object> metadata)

      已过时。
      Set bucket properties.
      覆盖:
        `setMetadata` 在类中 `S3Bucket`
      参数:
        `metadata` - Bucket properties

    - #### getLocation

          public String getLocation()

      Obtain the bucket location.
      覆盖:
        `getLocation` 在类中 `S3Bucket`
      返回:
        Bucket location

    - #### setLocation

          public void setLocation(String location)

      Set the bucket location.
      覆盖:
        `setLocation` 在类中 `S3Bucket`
      参数:
        `location` - Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.

    - #### getAcl

          public AccessControlList getAcl()

      Obtain the bucket ACL.
      覆盖:
        `getAcl` 在类中 `S3Bucket`
      返回:
        Bucket ACL

    - #### setAcl

          public void setAcl(AccessControlList acl)

      Set the bucket ACL.
      覆盖:
        `setAcl` 在类中 `S3Bucket`
      参数:
        `acl` - Bucket ACL

    - #### getStorageClass

          @Deprecated
          public String getStorageClass()

      已过时。
      Obtain the bucket storage class.
      覆盖:
        `getStorageClass` 在类中 `S3Bucket`
      返回:
        Bucket storage class

    - #### setStorageClass

          @Deprecated
          public void setStorageClass(String storageClass)

      已过时。
      Set the bucket storage class.
      覆盖:
        `setStorageClass` 在类中 `S3Bucket`
      参数:
        `storageClass` - Bucket storage class

    - #### getBucketType

          public BucketTypeEnum getBucketType()

    - #### setBucketType

          public void setBucketType(BucketTypeEnum bucketTypeEnum)

    - #### getBucketStorageClass

          public StorageClassEnum getBucketStorageClass()

      覆盖:
        `getBucketStorageClass` 在类中 `S3Bucket`

    - #### setBucketStorageClass

          public void setBucketStorageClass(StorageClassEnum storageClass)

      Set the bucket storage class.
      覆盖:
        `setBucketStorageClass` 在类中 `S3Bucket`
      参数:
        `storageClass` - Bucket storage class

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.