public class Grant extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Condition |
getCondition()
Gets the condition of Bucket Acl.
|
String |
getEffect()
Gets effect 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 |
setEffect(String effect)
Sets effect 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 |
withEffect(String effect)
Sets effect 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.
|
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()
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 String getEffect()
public void setEffect(String effect)
effect - public Grant withEffect(String effect)
effect - Copyright © 2023. All rights reserved.