com.obs.services.model

## 类 CreateBucketRequest

- java.lang.Object
- - com.obs.services.model.CreateBucketRequest

- 直接已知子类:
    NewBucketRequest

      public class CreateBucketRequest
      extends Object

  Parameters in a bucket creation request

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `AccessControlList` | `getAcl()`
    `Set<ExtensionBucketPermissionEnum>` | `getAllGrantPermissions()`
    `AvailableZoneEnum` | `getAvailableZone()` Obtain the bucket cluster type.
    `String` | `getBucketName()` Obtain the bucket name.
    `StorageClassEnum` | `getBucketStorageClass()` Obtain the bucket storage class.
    `BucketTypeEnum` | `getBucketType()`
    `Set<String>` | `getDomainIdsByGrantPermission(ExtensionBucketPermissionEnum extensionPermissionEnum)`
    `String` | `getEpid()` Obtain the enterprise ID of a bucket.
    `Map<String,String>` | `getExtensionHeaderMap()`
    `Set<ExtensionBucketPermissionEnum>` | `getGrantPermissionsByDomainId(String domainId)`
    `String` | `getLocation()` Obtain the bucket location.
    `void` | `grantExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum)` Grant the OBS extension permission to users.
    `void` | `setAcl(AccessControlList acl)` Set the bucket ACL.
    `void` | `setAvailableZone(AvailableZoneEnum availableZone)` Set bucket cluster type.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setBucketStorageClass(StorageClassEnum storageClass)` Set the bucket storage class.
    `void` | `setBucketType(BucketTypeEnum bucketType)`
    `void` | `setEpid(String epid)` Set the enterprise ID of a bucket.
    `void` | `setLocation(String location)` Set the bucket location.
    `String` | `toString()`
    `void` | `withdrawExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum)` Withdraw the OBS extension permission.
    `void` | `withdrawExtensionPermissions(String domainId)` Withdraw all OBS extension permissions.

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

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

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

    - #### CreateBucketRequest

          public CreateBucketRequest()

    - #### CreateBucketRequest

          public CreateBucketRequest(String bucketName)

      Constructor
      参数:
        `bucketName` - Bucket name

    - #### CreateBucketRequest

          public CreateBucketRequest(String bucketName,
                                     String location)

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

  - ### 方法详细资料

    - #### grantExtensionPermission

          public void grantExtensionPermission(String domainId,
                                               ExtensionBucketPermissionEnum extensionPermissionEnum)

      Grant the OBS extension permission to users.
      参数:
        `domainId` - ID of the domain to which the user belongs
        `extensionPermissionEnum` - OBS extension permission

    - #### withdrawExtensionPermission

          public void withdrawExtensionPermission(String domainId,
                                                  ExtensionBucketPermissionEnum extensionPermissionEnum)

      Withdraw the OBS extension permission.
      参数:
        `domainId` - ID of the domain to which the user belongs
        `extensionPermissionEnum` - OBS extension permission

    - #### withdrawExtensionPermissions

          public void withdrawExtensionPermissions(String domainId)

      Withdraw all OBS extension permissions.
      参数:
        `domainId` - ID of the domain to which the user belongs

    - #### getAllGrantPermissions

          public Set<ExtensionBucketPermissionEnum> getAllGrantPermissions()

    - #### getDomainIdsByGrantPermission

          public Set<String> getDomainIdsByGrantPermission(ExtensionBucketPermissionEnum extensionPermissionEnum)

    - #### getGrantPermissionsByDomainId

          public Set<ExtensionBucketPermissionEnum> getGrantPermissionsByDomainId(String domainId)

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name. The value can contain only lowercase letters, digits, hyphens (-), and periods (.).
      参数:
        `bucketName` - Bucket name

    - #### getLocation

          public String getLocation()

      Obtain the bucket location.
      返回:
        Bucket location

    - #### setLocation

          public void setLocation(String location)

      Set the bucket location.
      参数:
        `location` - Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.

    - #### getEpid

          public String getEpid()

      Obtain the enterprise ID of a bucket.
      返回:
        Enterprise ID of the bucket

    - #### setEpid

          public void setEpid(String epid)

      Set the enterprise ID of a bucket.
      参数:
        `epid` - Enterprise ID

    - #### getAcl

          public AccessControlList getAcl()

    - #### setAcl

          public void setAcl(AccessControlList acl)

      Set the bucket ACL.
      参数:
        `acl` - Bucket ACL

    - #### getBucketStorageClass

          public StorageClassEnum getBucketStorageClass()

      Obtain the bucket storage class.
      返回:
        Bucket storage class

    - #### setBucketStorageClass

          public void setBucketStorageClass(StorageClassEnum storageClass)

      Set the bucket storage class.
      参数:
        `storageClass` - Bucket storage class

    - #### getAvailableZone

          public AvailableZoneEnum getAvailableZone()

      Obtain the bucket cluster type.
      返回:
        Bucket cluster type

    - #### setAvailableZone

          public void setAvailableZone(AvailableZoneEnum availableZone)

      Set bucket cluster type.
      参数:
        `availableZone` - Bucket cluster type

    - #### getExtensionHeaderMap

          public Map<String,String> getExtensionHeaderMap()

    - #### toString

          public String toString()

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

    - #### getBucketType

          public BucketTypeEnum getBucketType()

    - #### setBucketType

          public void setBucketType(BucketTypeEnum bucketType)

Copyright © 2021. All rights reserved.