类 CreateBucketRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.CreateBucketRequest
- 直接已知子类:
NewBucketRequest
Parameters in a bucket creation request
-
字段概要
字段修饰符和类型字段说明private AccessControlListprivate AvailableZoneEnumprivate RedundancyTypeEnumprivate BucketTypeEnumprivate Stringprivate Map<ExtensionBucketPermissionEnum, Set<String>> private ActionEnumprivate ActionEnumprivate Stringprivate StorageClassEnum从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明CreateBucketRequest(String bucketName) ConstructorCreateBucketRequest(String bucketName, String location) Constructor -
方法概要
修饰符和类型方法说明getAcl()Obtain the bucket cluster type.Obtain the bucket storage class.getDomainIdsByGrantPermission(ExtensionBucketPermissionEnum extensionPermissionEnum) getEpid()Obtain the enterprise ID of a bucket.(专用程序包) Map<ExtensionBucketPermissionEnum, Set<String>> getGrantPermissionsByDomainId(String domainId) Obtain the bucket location.voidgrantExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum) Grant the OBS extension permission to users.voidsetAcl(AccessControlList acl) Set the bucket ACL.voidsetAvailableZone(AvailableZoneEnum availableZone) Set bucket cluster type.voidsetBucketRedundancy(RedundancyTypeEnum bucketRedundancy) voidsetBucketStorageClass(StorageClassEnum storageClass) Set the bucket storage class.voidsetBucketType(BucketTypeEnum bucketType) voidSet the enterprise ID of a bucket.voidsetFusionAllowAlternative(ActionEnum fusionAllowAlternative) voidsetFusionAllowUpgrade(ActionEnum fusionAllowUpgrade) voidsetLocation(String location) Set the bucket location.toString()voidwithdrawExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum) Withdraw the OBS extension permission.voidwithdrawExtensionPermissions(String domainId) Withdraw all OBS extension permissions.从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
location
-
epid
-
storageClass
-
acl
-
extensionPermissionMap
-
availableZone
-
extensionHeaderMap
-
bucketType
-
bucketRedundancy
-
fusionAllowUpgrade
-
fusionAllowAlternative
-
-
构造器详细资料
-
CreateBucketRequest
public CreateBucketRequest() -
CreateBucketRequest
Constructor- 参数:
bucketName- Bucket name
-
CreateBucketRequest
Constructor- 参数:
bucketName- Bucket namelocation- 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 belongsextensionPermissionEnum- 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 belongsextensionPermissionEnum- OBS extension permission
-
withdrawExtensionPermissions
Withdraw all OBS extension permissions.- 参数:
domainId- ID of the domain to which the user belongs
-
getAllGrantPermissions
-
getDomainIdsByGrantPermission
public Set<String> getDomainIdsByGrantPermission(ExtensionBucketPermissionEnum extensionPermissionEnum) -
getGrantPermissionsByDomainId
-
getLocation
Obtain the bucket location.- 返回:
- Bucket location
-
setLocation
Set the bucket location.- 参数:
location- Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.
-
getEpid
Obtain the enterprise ID of a bucket.- 返回:
- Enterprise ID of the bucket
-
setEpid
Set the enterprise ID of a bucket.- 参数:
epid- Enterprise ID
-
getAcl
-
setAcl
Set the bucket ACL.- 参数:
acl- Bucket ACL
-
getBucketStorageClass
Obtain the bucket storage class.- 返回:
- Bucket storage class
-
setBucketStorageClass
Set the bucket storage class.- 参数:
storageClass- Bucket storage class
-
getAvailableZone
Obtain the bucket cluster type.- 返回:
- Bucket cluster type
-
setAvailableZone
Set bucket cluster type.- 参数:
availableZone- Bucket cluster type
-
getExtensionPermissionMap
Map<ExtensionBucketPermissionEnum,Set<String>> getExtensionPermissionMap() -
getExtensionHeaderMap
-
toString
- 覆盖:
toString在类中GenericRequest
-
getBucketType
-
setBucketType
-
getBucketRedundancy
-
setBucketRedundancy
-
getFusionAllowUpgrade
-
setFusionAllowUpgrade
-
getFusionAllowAlternative
-
setFusionAllowAlternative
-