public class SetObjectAclRequest extends GenericObjectRequest
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic 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.public SetObjectAclRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic SetObjectAclRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestpublic SetObjectAclRequest withKey(String key)
withKey in class GenericObjectRequestpublic 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.Copyright © 2021. All rights reserved.