类 CreateBucketRequest

java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.CreateBucketRequest
直接已知子类:
NewBucketRequest

public class CreateBucketRequest extends GenericRequest
Parameters in a bucket creation request
  • 构造器详细资料

    • 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)
    • 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 在类中 GenericRequest
    • getBucketType

      public BucketTypeEnum getBucketType()
    • setBucketType

      public void setBucketType(BucketTypeEnum bucketType)
    • getBucketRedundancy

      public RedundancyTypeEnum getBucketRedundancy()
    • setBucketRedundancy

      public void setBucketRedundancy(RedundancyTypeEnum bucketRedundancy)
    • getFusionAllowUpgrade

      public ActionEnum getFusionAllowUpgrade()
    • setFusionAllowUpgrade

      public void setFusionAllowUpgrade(ActionEnum fusionAllowUpgrade)
    • getFusionAllowAlternative

      public ActionEnum getFusionAllowAlternative()
    • setFusionAllowAlternative

      public void setFusionAllowAlternative(ActionEnum fusionAllowAlternative)