|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bos.model.Grant
public class Grant
Specifies a grant, consisting of one grantee and one permission.
Constructor Summary | |
---|---|
Grant()
Constructs a void Constructor for Bucket Acl Grant. |
|
Grant(List<Grantee> grantee,
List<Permission> permission)
Constructs a new Grant object using the specified grantee and permission objects. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Condition |
getCondition()
Gets the condition of Bucket Acl. |
List<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. |
int |
hashCode()
|
void |
setCondition(Condition condition)
Sets the condition of Bucket Acl. |
void |
setGrantee(List<Grantee> grantee)
Sets the grantee being granted a permission by this grant. |
void |
setNotResource(List<String> notResource)
Sets notResource of Bucket Acl. |
void |
setPermission(List<Permission> permission)
Sets the permission being granted to the grantee by this grant. |
void |
setResource(List<String> resource)
Sets the resource of Bucket Acl. |
String |
toString()
|
Grant |
withCondition(Condition condition)
Sets the condtion of Bucket Acl. |
Grant |
withGrantee(List<Grantee> grantee)
Sets the grantee being granted a permission by this grant. |
Grant |
withNotResource(List<String> notResource)
Sets notResource of Bucket Acl. |
Grant |
withPermission(List<Permission> permission)
Sets the permission being granted to the grantee by this grant. |
Grant |
withResource(List<String> resource)
Sets the resource of Bucket Acl. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Grant(List<Grantee> grantee, List<Permission> permission)
grantee
- The grantee being granted a permission by this grant.permission
- The permission being granted to the grantee by this grant.public Grant()
Method Detail |
---|
public List<Grantee> getGrantee()
public void setGrantee(List<Grantee> grantee)
grantee
- The grantee being granted a permission by this grant.public Grant withGrantee(List<Grantee> grantee)
grantee
- The grantee being granted a permission by this grant.
public List<Permission> getPermission()
public void setPermission(List<Permission> permission)
permission
- The permission being granted to the grantee by this grant.public Grant withPermission(List<Permission> permission)
permission
- The permission being granted to the grantee by this grant.
public Condition getCondition()
public void setCondition(Condition condition)
condition
- The condtion of Bucket Acl.public Grant withCondition(Condition condition)
condition
- The condtion of Bucket Acl.
public List<String> getResource()
public void setResource(List<String> resource)
resource
- The resource of Bucket Acl.public Grant withResource(List<String> resource)
resource
- The resource of Bucket Acl.
public List<String> getNotResource()
public void setNotResource(List<String> notResource)
notResource
- The notResource if Bucket Acl.public Grant withNotResource(List<String> notResource)
notResource
- The notResource of Bucket Acl.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |