类 Grant
- java.lang.Object
-
- com.baidubce.services.bos.model.Grant
-
public class Grant extends Object
Specifies a grant, consisting of one grantee and one permission.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)ConditiongetCondition()Gets the condition of Bucket Acl.StringgetEffect()Gets effect of Bucket AclList<Grantee>getGrantee()Gets the grantee being granted a permission by this grant.List<String>getNotResource()Gets notResource of Bucket Acl.List<Permission>getPermission()Gets the permission being granted to the grantee by this grant.List<String>getResource()Gets the resource of Bucket Acl.inthashCode()voidsetCondition(Condition condition)Sets the condition of Bucket Acl.voidsetEffect(String effect)Sets effect of Bucket AclvoidsetGrantee(List<Grantee> grantee)Sets the grantee being granted a permission by this grant.voidsetNotResource(List<String> notResource)Sets notResource of Bucket Acl.voidsetPermission(List<Permission> permission)Sets the permission being granted to the grantee by this grant.voidsetResource(List<String> resource)Sets the resource of Bucket Acl.StringtoString()GrantwithCondition(Condition condition)Sets the condtion of Bucket Acl.GrantwithEffect(String effect)Sets effect of Bucket AclGrantwithGrantee(List<Grantee> grantee)Sets the grantee being granted a permission by this grant.GrantwithNotResource(List<String> notResource)Sets notResource of Bucket Acl.GrantwithPermission(List<Permission> permission)Sets the permission being granted to the grantee by this grant.GrantwithResource(List<String> resource)Sets the resource of Bucket Acl.
-
-
-
构造器详细资料
-
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
-
-