@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListReceivedGrantsForOrganizationResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListReceivedGrantsForOrganizationResult() |
Modifier and Type | Method and Description |
---|---|
ListReceivedGrantsForOrganizationResult |
clone() |
boolean |
equals(Object obj) |
List<Grant> |
getGrants()
Lists the grants the organization has received.
|
String |
getNextToken()
Token for the next set of results.
|
int |
hashCode() |
void |
setGrants(Collection<Grant> grants)
Lists the grants the organization has received.
|
void |
setNextToken(String nextToken)
Token for the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
ListReceivedGrantsForOrganizationResult |
withGrants(Collection<Grant> grants)
Lists the grants the organization has received.
|
ListReceivedGrantsForOrganizationResult |
withGrants(Grant... grants)
Lists the grants the organization has received.
|
ListReceivedGrantsForOrganizationResult |
withNextToken(String nextToken)
Token for the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public ListReceivedGrantsForOrganizationResult()
public List<Grant> getGrants()
Lists the grants the organization has received.
public void setGrants(Collection<Grant> grants)
Lists the grants the organization has received.
grants
- Lists the grants the organization has received.public ListReceivedGrantsForOrganizationResult withGrants(Grant... grants)
Lists the grants the organization has received.
NOTE: This method appends the values to the existing list (if any). Use
setGrants(java.util.Collection)
or withGrants(java.util.Collection)
if you want to override the
existing values.
grants
- Lists the grants the organization has received.public ListReceivedGrantsForOrganizationResult withGrants(Collection<Grant> grants)
Lists the grants the organization has received.
grants
- Lists the grants the organization has received.public void setNextToken(String nextToken)
Token for the next set of results.
nextToken
- Token for the next set of results.public String getNextToken()
Token for the next set of results.
public ListReceivedGrantsForOrganizationResult withNextToken(String nextToken)
Token for the next set of results.
nextToken
- Token for the next set of results.public String toString()
toString
in class Object
Object.toString()
public ListReceivedGrantsForOrganizationResult clone()