@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()
If present, this value indicates that more output is available than is included in the current response.
|
List<Principal> |
getPrincipals()
An array of objects that contain the details about the principals.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
If present, this value indicates that more output is available than is included in the current response.
|
void |
setPrincipals(Collection<Principal> principals)
An array of objects that contain the details about the principals.
|
String |
toString()
Returns a string representation of this object.
|
ListPrincipalsResult |
withNextToken(String nextToken)
If present, this value indicates that more output is available than is included in the current response.
|
ListPrincipalsResult |
withPrincipals(Collection<Principal> principals)
An array of objects that contain the details about the principals.
|
ListPrincipalsResult |
withPrincipals(Principal... principals)
An array of objects that contain the details about the principals.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Principal> getPrincipals()
An array of objects that contain the details about the principals.
public void setPrincipals(Collection<Principal> principals)
An array of objects that contain the details about the principals.
principals
- An array of objects that contain the details about the principals.public ListPrincipalsResult withPrincipals(Principal... principals)
An array of objects that contain the details about 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
- An array of objects that contain the details about the principals.public ListPrincipalsResult withPrincipals(Collection<Principal> principals)
An array of objects that contain the details about the principals.
principals
- An array of objects that contain the details about the principals.public void setNextToken(String nextToken)
If present, this value indicates that more output is available than is included in the current response. Use this
value in the NextToken
request parameter in a subsequent call to the operation to get the next part
of the output. You should repeat this until the NextToken
response element comes back as
null
. This indicates that this is the last page of results.
nextToken
- If present, this value indicates that more output is available than is included in the current response.
Use this value in the NextToken
request parameter in a subsequent call to the operation to
get the next part of the output. You should repeat this until the NextToken
response element
comes back as null
. This indicates that this is the last page of results.public String getNextToken()
If present, this value indicates that more output is available than is included in the current response. Use this
value in the NextToken
request parameter in a subsequent call to the operation to get the next part
of the output. You should repeat this until the NextToken
response element comes back as
null
. This indicates that this is the last page of results.
NextToken
request parameter in a subsequent call to the operation to
get the next part of the output. You should repeat this until the NextToken
response element
comes back as null
. This indicates that this is the last page of results.public ListPrincipalsResult withNextToken(String nextToken)
If present, this value indicates that more output is available than is included in the current response. Use this
value in the NextToken
request parameter in a subsequent call to the operation to get the next part
of the output. You should repeat this until the NextToken
response element comes back as
null
. This indicates that this is the last page of results.
nextToken
- If present, this value indicates that more output is available than is included in the current response.
Use this value in the NextToken
request parameter in a subsequent call to the operation to
get the next part of the output. You should repeat this until the NextToken
response element
comes back as null
. This indicates that this is the last page of results.public String toString()
toString
in class Object
Object.toString()
public ListPrincipalsResult clone()