@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListDistributedGrantsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListDistributedGrantsResult() |
Modifier and Type | Method and Description |
---|---|
ListDistributedGrantsResult |
clone() |
boolean |
equals(Object obj) |
List<Grant> |
getGrants()
Distributed grant details.
|
String |
getNextToken()
Token for the next set of results.
|
int |
hashCode() |
void |
setGrants(Collection<Grant> grants)
Distributed grant details.
|
void |
setNextToken(String nextToken)
Token for the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
ListDistributedGrantsResult |
withGrants(Collection<Grant> grants)
Distributed grant details.
|
ListDistributedGrantsResult |
withGrants(Grant... grants)
Distributed grant details.
|
ListDistributedGrantsResult |
withNextToken(String nextToken)
Token for the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Grant> getGrants()
Distributed grant details.
public void setGrants(Collection<Grant> grants)
Distributed grant details.
grants
- Distributed grant details.public ListDistributedGrantsResult withGrants(Grant... grants)
Distributed grant details.
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
- Distributed grant details.public ListDistributedGrantsResult withGrants(Collection<Grant> grants)
Distributed grant details.
grants
- Distributed grant details.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 ListDistributedGrantsResult 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 ListDistributedGrantsResult clone()