|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.SetBucketAclRequest
public class SetBucketAclRequest
Request object containing all the options for setting a bucket's Access Control List (ACL).
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest |
---|
getBucketName, setBucketName |
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public SetBucketAclRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public SetBucketAclRequest withBucketName(String bucketName)
withBucketName
in class GenericBucketRequest
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |