public class CreateBucketRequest extends Object
Constructor and Description |
---|
CreateBucketRequest() |
CreateBucketRequest(String bucketName)
Constructor
|
CreateBucketRequest(String bucketName,
String location)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
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.
|
public CreateBucketRequest()
public CreateBucketRequest(String bucketName)
bucketName
- Bucket namepublic void grantExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum)
domainId
- ID of the domain to which the user belongsextensionPermissionEnum
- OBS extension permissionpublic void withdrawExtensionPermission(String domainId, ExtensionBucketPermissionEnum extensionPermissionEnum)
domainId
- ID of the domain to which the user belongsextensionPermissionEnum
- OBS extension permissionpublic void withdrawExtensionPermissions(String domainId)
domainId
- ID of the domain to which the user belongspublic Set<ExtensionBucketPermissionEnum> getAllGrantPermissions()
public Set<String> getDomainIdsByGrantPermission(ExtensionBucketPermissionEnum extensionPermissionEnum)
public Set<ExtensionBucketPermissionEnum> getGrantPermissionsByDomainId(String domainId)
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- Bucket namepublic String getLocation()
public void setLocation(String location)
location
- Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.public String getEpid()
public void setEpid(String epid)
epid
- Enterprise IDpublic AccessControlList getAcl()
public void setAcl(AccessControlList acl)
acl
- Bucket ACLpublic StorageClassEnum getBucketStorageClass()
public void setBucketStorageClass(StorageClassEnum storageClass)
storageClass
- Bucket storage classpublic AvailableZoneEnum getAvailableZone()
public void setAvailableZone(AvailableZoneEnum availableZone)
availableZone
- Bucket cluster typeCopyright © 2019. All rights reserved.