类 SetObjectAclRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.SetObjectAclRequest
-
public class SetObjectAclRequest extends GenericObjectRequest
Request object containing all the options for setting a Object's Access Control List (ACL).
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 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, String jsonObjectAcl)Constructs a new SetObjectAclRequest object, ready to set the specified jsonObjectAcl 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Grant>getAccessControlList()Gets the accessControlList of Object Acl.CannedAccessControlListgetCannedAcl()Gets the cannedAcl of Object Acl.StringgetJsonObjectAcl()Gets the json format of Object Acl.StringgetxBceGrantFullControl()Gets the xBceGrantFullControl of Object Acl.StringgetxBceGrantRead()Gets the xBceGrantRead of Object Acl.voidsetAccessControlList(List<Grant> accessControlList)Sets the accessControlList of Object Acl.voidsetCannedAcl(CannedAccessControlList cannedAcl)Sets the cannedAcl of Object Acl.voidsetJsonObjectAcl(String jsonObjectAcl)Sets the json format of Object Acl.voidsetxBceGrantFullControl(String xBceGrantFullControl)Sets the xBceGrantFullControl of Object Acl.voidsetxBceGrantRead(String xBceGrantRead)Sets the xBceGrantRead of Object Acl.SetObjectAclRequestwithBucketName(String bucketName)SetObjectAclRequestwithKey(String key)SetObjectAclRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
SetObjectAclRequest
public SetObjectAclRequest()
Constructs a void Constructor for SetObjectAclRequest.
-
SetObjectAclRequest
public 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.- 参数:
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.
-
SetObjectAclRequest
public 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.- 参数:
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.
-
SetObjectAclRequest
public 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.- 参数:
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.
-
-
方法详细资料
-
withRequestCredentials
public SetObjectAclRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public SetObjectAclRequest withBucketName(String bucketName)
- 指定者:
withBucketName在类中GenericBucketRequest
-
withKey
public SetObjectAclRequest withKey(String key)
- 指定者:
withKey在类中GenericObjectRequest
-
getJsonObjectAcl
public String getJsonObjectAcl()
Gets the json format of Object Acl.- 返回:
- the json format of Object Acl.
-
setJsonObjectAcl
public void setJsonObjectAcl(String jsonObjectAcl)
Sets the json format of Object Acl.- 参数:
jsonObjectAcl- The json format of Object Acl.
-
getAccessControlList
public List<Grant> getAccessControlList()
Gets the accessControlList of Object Acl.- 返回:
- the accessControlList of Object Acl.
-
setAccessControlList
public void setAccessControlList(List<Grant> accessControlList)
Sets the accessControlList of Object Acl.- 参数:
accessControlList- The accessControlList of Object Acl.
-
getCannedAcl
public CannedAccessControlList getCannedAcl()
Gets the cannedAcl of Object Acl.- 返回:
- the cannedAcl of Object Acl.
-
setCannedAcl
public void setCannedAcl(CannedAccessControlList cannedAcl)
Sets the cannedAcl of Object Acl.- 参数:
cannedAcl- The cannedAcl of Object Acl.
-
getxBceGrantRead
public String getxBceGrantRead()
Gets the xBceGrantRead of Object Acl.- 返回:
- the xBceGrantRead of Object Acl.
-
setxBceGrantRead
public void setxBceGrantRead(String xBceGrantRead)
Sets the xBceGrantRead of Object Acl.- 参数:
xBceGrantRead- The xBceGrantRead of Object Acl.
-
getxBceGrantFullControl
public String getxBceGrantFullControl()
Gets the xBceGrantFullControl of Object Acl.- 返回:
- the xBceGrantFullControl of Object Acl.
-
setxBceGrantFullControl
public void setxBceGrantFullControl(String xBceGrantFullControl)
Sets the xBceGrantFullControl of Object Acl.- 参数:
xBceGrantFullControl- The xBceGrantRead of Object Acl.
-
-