com.aliyun.oss.model

## 类 BucketInfo

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

-     public class BucketInfo
      extends GenericResult

  Bucket info

- - ### 构造器概要

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

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `Bucket` | `getBucket()`
    `CannedAccessControlList` | `getCannedACL()`
    `String` | `getComment()`
    `DataRedundancyType` | `getDataRedundancyType()`
    `Set<Grant>` | `getGrants()` 已过时。
    `ServerSideEncryptionConfiguration` | `getServerSideEncryptionConfiguration()`
    `void` | `grantPermission(Grantee grantee, Permission permission)`
    `void` | `setBucket(Bucket bucket)`
    `void` | `setCannedACL(CannedAccessControlList cannedACL)`
    `void` | `setComment(String comment)`
    `void` | `setDataRedundancyType(DataRedundancyType dataRedundancyType)`
    `void` | `setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration sseConfig)`

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

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

    - #### BucketInfo

          public BucketInfo()

  - ### 方法详细资料

    - #### getBucket

          public Bucket getBucket()

    - #### setBucket

          public void setBucket(Bucket bucket)

    - #### setComment

          public void setComment(String comment)

    - #### getComment

          public String getComment()

    - #### setDataRedundancyType

          public void setDataRedundancyType(DataRedundancyType dataRedundancyType)

    - #### getDataRedundancyType

          public DataRedundancyType getDataRedundancyType()

    - #### getGrants

          @Deprecated
          public Set<Grant> getGrants()

      已过时。

    - #### grantPermission

          public void grantPermission(Grantee grantee,
                             Permission permission)

    - #### getCannedACL

          public CannedAccessControlList getCannedACL()

    - #### setCannedACL

          public void setCannedACL(CannedAccessControlList cannedACL)

    - #### getServerSideEncryptionConfiguration

          public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration()

    - #### setServerSideEncryptionConfiguration

          public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration sseConfig)

Copyright © 2020. All Rights Reserved.