@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPrincipalsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListPrincipalsResult() |
Modifier and Type | Method and Description |
---|---|
ListPrincipalsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to retrieve the next page of results.
|
List<Principal> |
getPrincipals()
The principals.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setPrincipals(Collection<Principal> principals)
The principals.
|
String |
toString()
Returns a string representation of this object.
|
ListPrincipalsResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
ListPrincipalsResult |
withPrincipals(Collection<Principal> principals)
The principals.
|
ListPrincipalsResult |
withPrincipals(Principal... principals)
The principals.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPrincipals(Collection<Principal> principals)
The principals.
principals
- The principals.public ListPrincipalsResult withPrincipals(Principal... principals)
The principals.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- The principals.public ListPrincipalsResult withPrincipals(Collection<Principal> principals)
The principals.
principals
- The principals.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
null
when there are no
more results to return.public ListPrincipalsResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String toString()
toString
in class Object
Object.toString()
public ListPrincipalsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.