public class SetBucketAclRequest extends GenericBucketRequest
| Constructor and Description |
|---|
SetBucketAclRequest(String bucketName,
CannedAccessControlList cannedAcl)
Constructs a new SetBucketAclRequest object, ready to set the specified
canned ACL on the specified bucket when this request is executed.
|
SetBucketAclRequest(String bucketName,
List<Grant> accessControlList)
Constructs a new SetBucketAclRequest object, ready to set the specified
ACL on the specified bucket when this request is executed.
|
SetBucketAclRequest(String bucketName,
String jsonAcl)
Constructs a new SetBucketAclRequest object, ready to set the specified
canned ACL on the specified bucket when this request is executed.
|
| Modifier and Type | Method and Description |
|---|---|
List<Grant> |
getAccessControlList()
Returns the custom ACL to be applied to the specified bucket when this
request is executed.
|
CannedAccessControlList |
getCannedAcl()
Returns the canned ACL to be applied to the specified bucket when this
request is executed.
|
String |
getJsonAcl()
Returns the custom json style of ACL to be applied to the specified bucket when this
request is executed.
|
void |
setAccessControlList(List<Grant> accessControlList)
Sets the custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.
|
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the canned ACL to be applied to the specified bucket when this
request is executed.
|
void |
setJsonAcl(String jsonAcl)
Sets the custom json style of ACL containing the access rules to
apply to the specified bucket when this request is executed.
|
SetBucketAclRequest |
withAccessControlList(List<Grant> accessControlList)
Sets the custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.
|
SetBucketAclRequest |
withBucketName(String bucketName) |
SetBucketAclRequest |
withCannedAcl(CannedAccessControlList cannedAcl)
Sets the canned ACL to be applied to the specified bucket when this
request is executed.
|
SetBucketAclRequest |
withJsonAcl(String jsonAcl)
Sets the custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.
|
SetBucketAclRequest |
withRequestCredentials(BceCredentials credentials) |
getBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic SetBucketAclRequest(String bucketName, CannedAccessControlList cannedAcl)
bucketName - The name of the bucket whose ACL will be set by this request.cannedAcl - The Canned Access Control List to apply to the specified
bucket when this request is executed.public SetBucketAclRequest(String bucketName, String jsonAcl)
bucketName - The name of the bucket whose ACL will be set by this request.jsonAcl - The json style of acl to apply to the specified
bucket when this request is executed.public SetBucketAclRequest(String bucketName, List<Grant> accessControlList)
bucketName - The name of the bucket whose ACL will be set by this request.accessControlList - The custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.public SetBucketAclRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic SetBucketAclRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestpublic CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl - The canned ACL to be applied to the specified bucket when this
request is executed.public SetBucketAclRequest withCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl - The canned ACL to be applied to the specified bucket when this
request is executed.public List<Grant> getAccessControlList()
public void setAccessControlList(List<Grant> accessControlList)
accessControlList - The custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.public SetBucketAclRequest withAccessControlList(List<Grant> accessControlList)
accessControlList - The custom Access Control List containing the access rules to
apply to the specified bucket when this request is executed.public String getJsonAcl()
public void setJsonAcl(String jsonAcl)
jsonAcl - The custom json style of acl containing the access rules to
apply to the specified bucket when this request is executed.public SetBucketAclRequest withJsonAcl(String jsonAcl)
jsonAcl - The custom json style of acl containing the access rules to
apply to the specified bucket when this request is executed.Copyright © 2020. All rights reserved.