|
||||||||||
| 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()
|
|
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)
|
List<Grantee> |
getGrantee()
Gets the grantee being granted a permission by this grant. |
List<Permission> |
getPermission()
Gets the permission being granted to the grantee by this grant. |
int |
hashCode()
|
void |
setGrantee(List<Grantee> grantee)
Sets the grantee being granted a permission by this grant. |
void |
setPermission(List<Permission> permission)
Sets the permission being granted to the grantee by this grant. |
String |
toString()
|
Grant |
withGrantee(List<Grantee> grantee)
Sets the grantee being granted a permission by this grant. |
Grant |
withPermission(List<Permission> permission)
Sets the permission being granted to the grantee by this grant. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Grant()
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.| 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 int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||