com.aliyun.oss.model

## 类 CreateBucketRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.GenericRequest
    - - com.aliyun.oss.model.CreateBucketRequest

-     public class CreateBucketRequest
      extends GenericRequest

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `CreateBucketRequest(String bucketName)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `CannedAccessControlList` | `getCannedACL()`
    `DataRedundancyType` | `getDataRedundancyType()` Gets the bucket's data redundancy type.
    `String` | `getLocationConstraint()` Gets the bucket's datacenter
    `StorageClass` | `getStorageClass()`
    `void` | `setCannedACL(CannedAccessControlList cannedACL)`
    `void` | `setDataRedundancyType(DataRedundancyType dataRedundancyType)` Sets the bucket's data redundancy type.
    `void` | `setLocationConstraint(String locationConstraint)` Sets the bucket's datacenter.
    `void` | `setStorageClass(StorageClass storageClass)`
    `CreateBucketRequest` | `withCannedACL(CannedAccessControlList cannedACL)`
    `CreateBucketRequest` | `withDataRedundancyType(DataRedundancyType dataRedundancyType)` Creates the instance with data redundancy type.
    `CreateBucketRequest` | `withLocationConstraint(String locationConstraint)` Creates the instance with datacenter.
    `CreateBucketRequest` | `withStorageType(StorageClass storageClass)`

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

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId`

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

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

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

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

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

    - #### CreateBucketRequest

          public CreateBucketRequest(String bucketName)

  - ### 方法详细资料

    - #### getLocationConstraint

          public String getLocationConstraint()

      Gets the bucket's datacenter
      返回:
        Bucket's datacenter.

    - #### setLocationConstraint

          public void setLocationConstraint(String locationConstraint)

      Sets the bucket's datacenter.
      参数:
        `locationConstraint` - Bucket's datacenter.

    - #### withLocationConstraint

          public CreateBucketRequest withLocationConstraint(String locationConstraint)

      Creates the instance with datacenter.
      参数:
        `locationConstraint` - Bucket datacenter.

    - #### getCannedACL

          public CannedAccessControlList getCannedACL()

    - #### setCannedACL

          public void setCannedACL(CannedAccessControlList cannedACL)

    - #### getStorageClass

          public StorageClass getStorageClass()

    - #### setStorageClass

          public void setStorageClass(StorageClass storageClass)

    - #### withCannedACL

          public CreateBucketRequest withCannedACL(CannedAccessControlList cannedACL)

    - #### withStorageType

          public CreateBucketRequest withStorageType(StorageClass storageClass)

    - #### setDataRedundancyType

          public void setDataRedundancyType(DataRedundancyType dataRedundancyType)

      Sets the bucket's data redundancy type. If the storage class has not been specified, the creating opreation maybe failed.
      参数:
        `dataRedundancyType` - The Bucketdata redundancy type.

    - #### withDataRedundancyType

          public CreateBucketRequest withDataRedundancyType(DataRedundancyType dataRedundancyType)

      Creates the instance with data redundancy type. If the storage class has not been specified, the creating opreation maybe failed.
      参数:
        `dataRedundancyType` - The Bucketdata redundancy type.

    - #### getDataRedundancyType

          public DataRedundancyType getDataRedundancyType()

      Gets the bucket's data redundancy type.

Copyright © 2020. All Rights Reserved.