类 SetObjectAclRequest


  • public class SetObjectAclRequest
    extends GenericObjectRequest
    Request object containing all the options for setting a Object's Access Control List (ACL).
    • 构造器详细资料

      • 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.
    • 方法详细资料

      • 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.