@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GrantItem extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defines a single grant and its configuration.
| Constructor and Description |
|---|
GrantItem() |
| Modifier and Type | Method and Description |
|---|---|
GrantItem |
clone() |
boolean |
equals(Object obj) |
Grant |
getGrant()
The configuration structure for the selected grant.
|
String |
getGrantType()
The type of the selected grant.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setGrant(Grant grant)
The configuration structure for the selected grant.
|
void |
setGrantType(String grantType)
The type of the selected grant.
|
String |
toString()
Returns a string representation of this object.
|
GrantItem |
withGrant(Grant grant)
The configuration structure for the selected grant.
|
GrantItem |
withGrantType(GrantType grantType)
The type of the selected grant.
|
GrantItem |
withGrantType(String grantType)
The type of the selected grant.
|
public void setGrant(Grant grant)
The configuration structure for the selected grant.
grant - The configuration structure for the selected grant.public Grant getGrant()
The configuration structure for the selected grant.
public GrantItem withGrant(Grant grant)
The configuration structure for the selected grant.
grant - The configuration structure for the selected grant.public void setGrantType(String grantType)
The type of the selected grant.
grantType - The type of the selected grant.GrantTypepublic String getGrantType()
The type of the selected grant.
GrantTypepublic GrantItem withGrantType(String grantType)
The type of the selected grant.
grantType - The type of the selected grant.GrantTypepublic GrantItem withGrantType(GrantType grantType)
The type of the selected grant.
grantType - The type of the selected grant.GrantTypepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.