|
||||||||||
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.GenericObjectRequest
com.baidubce.services.bos.model.SetObjectAclRequest
public class SetObjectAclRequest
Request object containing all the options for setting a Object's Access Control List (ACL).
Constructor Summary | |
---|---|
SetObjectAclRequest()
Constructs a void Constructor for SetObjectAclRequest. |
|
SetObjectAclRequest(String bucketName,
String key,
CannedAccessControlList cannedAcl)
Constructs a new SetObjectAclRequest object, ready to set the specified, canned ACL on the specified bucket/object when this request is executed. |
|
SetObjectAclRequest(String bucketName,
String key,
List<Grant> accessControlList)
Constructs a new SetObjectAclRequest object, ready to set the specified ACL on the specified bucket/object when this request is executed. |
|
SetObjectAclRequest(String bucketName,
String key,
String jsonObjectAcl)
Constructs a new SetObjectAclRequest object, ready to set the specified jsonObjectAcl on the specified bucket/object when this request is executed. |
Method Summary | |
---|---|
List<Grant> |
getAccessControlList()
Gets the accessControlList of Object Acl. |
CannedAccessControlList |
getCannedAcl()
Gets the cannedAcl of Object Acl. |
String |
getJsonObjectAcl()
Gets the json format of Object Acl. |
String |
getxBceGrantFullControl()
Gets the xBceGrantFullControl of Object Acl. |
String |
getxBceGrantRead()
Gets the xBceGrantRead of Object Acl. |
void |
setAccessControlList(List<Grant> accessControlList)
Sets the accessControlList of Object Acl. |
void |
setCannedAcl(CannedAccessControlList cannedAcl)
Sets the cannedAcl of Object Acl. |
void |
setJsonObjectAcl(String jsonObjectAcl)
Sets the json format of Object Acl. |
void |
setxBceGrantFullControl(String xBceGrantFullControl)
Sets the xBceGrantFullControl of Object Acl. |
void |
setxBceGrantRead(String xBceGrantRead)
Sets the xBceGrantRead of Object Acl. |
SetObjectAclRequest |
withBucketName(String bucketName)
|
SetObjectAclRequest |
withKey(String key)
|
SetObjectAclRequest |
withRequestCredentials(BceCredentials credentials)
|
Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest |
---|
getKey, setKey |
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 SetObjectAclRequest()
public SetObjectAclRequest(String bucketName, String key, String jsonObjectAcl)
bucketName
- The name of the bucket whose Object will be set Acl by this request.key
- The name of the Object whose ACL will be set by this request.jsonObjectAcl
- The json style of acl to apply to the specified object when this request is executed.public SetObjectAclRequest(String bucketName, String key, List<Grant> accessControlList)
bucketName
- The name of the bucket whose Object acl will be set by this request.key
- The name of the Object whose ACL will be set by this request.accessControlList
- The custom Access Control List containing the access rules to,
apply to the specified bucket/object when this request is executed.public SetObjectAclRequest(String bucketName, String key, CannedAccessControlList cannedAcl)
bucketName
- The name of the bucket whose Object acl will be set by this request.key
- The name of the Object whose ACL will be set by this request.cannedAcl
- The Canned Access Control List to apply to the specified,
bucket/object when this request is executed.Method Detail |
---|
public SetObjectAclRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public SetObjectAclRequest withBucketName(String bucketName)
withBucketName
in class GenericBucketRequest
public SetObjectAclRequest withKey(String key)
withKey
in class GenericObjectRequest
public String getJsonObjectAcl()
public void setJsonObjectAcl(String jsonObjectAcl)
jsonObjectAcl
- The json format of Object Acl.public List<Grant> getAccessControlList()
public void setAccessControlList(List<Grant> accessControlList)
accessControlList
- The accessControlList of Object Acl.public CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The cannedAcl of Object Acl.public String getxBceGrantRead()
public void setxBceGrantRead(String xBceGrantRead)
xBceGrantRead
- The xBceGrantRead of Object Acl.public String getxBceGrantFullControl()
public void setxBceGrantFullControl(String xBceGrantFullControl)
xBceGrantFullControl
- The xBceGrantRead of Object Acl.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |