类 Grant


  • public class Grant
    extends Object
    Specifies a grant, consisting of one grantee and one permission.
    • 构造器详细资料

      • Grant

        public Grant​(List<Grantee> grantee,
                     List<Permission> permission)
        Constructs a new Grant object using the specified grantee and permission objects.
        参数:
        grantee - The grantee being granted a permission by this grant.
        permission - The permission being granted to the grantee by this grant.
      • Grant

        public Grant()
        Constructs a void Constructor for Bucket Acl Grant.
    • 方法详细资料

      • getGrantee

        public List<Grantee> getGrantee()
        Gets the grantee being granted a permission by this grant.
        返回:
        The grantee being granted a permission by this grant.
      • setGrantee

        public void setGrantee​(List<Grantee> grantee)
        Sets the grantee being granted a permission by this grant.
        参数:
        grantee - The grantee being granted a permission by this grant.
      • withGrantee

        public Grant withGrantee​(List<Grantee> grantee)
        Sets the grantee being granted a permission by this grant.
        参数:
        grantee - The grantee being granted a permission by this grant.
        返回:
        this object.
      • getPermission

        public List<Permission> getPermission()
        Gets the permission being granted to the grantee by this grant.
        返回:
        The permission being granted to the grantee by this grant.
      • setPermission

        public void setPermission​(List<Permission> permission)
        Sets the permission being granted to the grantee by this grant.
        参数:
        permission - The permission being granted to the grantee by this grant.
      • withPermission

        public Grant withPermission​(List<Permission> permission)
        Sets the permission being granted to the grantee by this grant.
        参数:
        permission - The permission being granted to the grantee by this grant.
        返回:
        this object
      • getCondition

        public Condition getCondition()
        Gets the condition of Bucket Acl.
        返回:
        the condition of Bucket Acl.
      • setCondition

        public void setCondition​(Condition condition)
        Sets the condition of Bucket Acl.
        参数:
        condition - The condtion of Bucket Acl.
      • withCondition

        public Grant withCondition​(Condition condition)
        Sets the condtion of Bucket Acl.
        参数:
        condition - The condtion of Bucket Acl.
        返回:
        this object.
      • getResource

        public List<String> getResource()
        Gets the resource of Bucket Acl.
        返回:
        the resource of Bucket Acl.
      • setResource

        public void setResource​(List<String> resource)
        Sets the resource of Bucket Acl.
        参数:
        resource - The resource of Bucket Acl.
      • withResource

        public Grant withResource​(List<String> resource)
        Sets the resource of Bucket Acl.
        参数:
        resource - The resource of Bucket Acl.
        返回:
        this object.
      • getNotResource

        public List<String> getNotResource()
        Gets notResource of Bucket Acl.
        返回:
        the notResource if Bucket Acl.
      • setNotResource

        public void setNotResource​(List<String> notResource)
        Sets notResource of Bucket Acl.
        参数:
        notResource - The notResource if Bucket Acl.
      • withNotResource

        public Grant withNotResource​(List<String> notResource)
        Sets notResource of Bucket Acl.
        参数:
        notResource - The notResource of Bucket Acl.
        返回:
        this object.
      • getEffect

        public String getEffect()
        Gets effect of Bucket Acl
        返回:
        the effect of Bucket Acl
      • setEffect

        public void setEffect​(String effect)
        Sets effect of Bucket Acl
        参数:
        effect -
      • withEffect

        public Grant withEffect​(String effect)
        Sets effect of Bucket Acl
        参数:
        effect -
        返回:
        this object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object