@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Grant extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a grant.
Constructor and Description |
---|
Grant() |
Modifier and Type | Method and Description |
---|---|
Grant |
clone() |
boolean |
equals(Object obj) |
Grantee |
getGrantee()
The grantee.
|
String |
getPermission()
Specifies the permission given to the grantee.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGrantee(Grantee grantee)
The grantee.
|
void |
setPermission(String permission)
Specifies the permission given to the grantee.
|
String |
toString()
Returns a string representation of this object.
|
Grant |
withGrantee(Grantee grantee)
The grantee.
|
Grant |
withPermission(Permission permission)
Specifies the permission given to the grantee.
|
Grant |
withPermission(String permission)
Specifies the permission given to the grantee.
|
public void setGrantee(Grantee grantee)
The grantee.
grantee
- The grantee.public Grantee getGrantee()
The grantee.
public Grant withGrantee(Grantee grantee)
The grantee.
grantee
- The grantee.public void setPermission(String permission)
Specifies the permission given to the grantee.
permission
- Specifies the permission given to the grantee.Permission
public String getPermission()
Specifies the permission given to the grantee.
Permission
public Grant withPermission(String permission)
Specifies the permission given to the grantee.
permission
- Specifies the permission given to the grantee.Permission
public Grant withPermission(Permission permission)
Specifies the permission given to the grantee.
permission
- Specifies the permission given to the grantee.Permission
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.