@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAccountsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ListAccountsResult() |
| Modifier and Type | Method and Description |
|---|---|
ListAccountsResult |
clone() |
boolean |
equals(Object obj) |
List<Account> |
getAccounts()
A list of objects in the organization.
|
String |
getNextToken()
If present, this value indicates that there is more output available than is included in the current response.
|
int |
hashCode() |
void |
setAccounts(Collection<Account> accounts)
A list of objects in the organization.
|
void |
setNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ListAccountsResult |
withAccounts(Account... accounts)
A list of objects in the organization.
|
ListAccountsResult |
withAccounts(Collection<Account> accounts)
A list of objects in the organization.
|
ListAccountsResult |
withNextToken(String nextToken)
If present, this value indicates that there is more output available than is included in the current response.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<Account> getAccounts()
A list of objects in the organization.
public void setAccounts(Collection<Account> accounts)
A list of objects in the organization.
accounts - A list of objects in the organization.public ListAccountsResult withAccounts(Account... accounts)
A list of objects in the organization.
NOTE: This method appends the values to the existing list (if any). Use
setAccounts(java.util.Collection) or withAccounts(java.util.Collection) if you want to override
the existing values.
accounts - A list of objects in the organization.public ListAccountsResult withAccounts(Collection<Account> accounts)
A list of objects in the organization.
accounts - A list of objects in the organization.public void setNextToken(String nextToken)
If present, this value indicates that there is more output 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.
nextToken - If present, this value indicates that there is more output 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.public String getNextToken()
If present, this value indicates that there is more output 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.
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.public ListAccountsResult withNextToken(String nextToken)
If present, this value indicates that there is more output 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.
nextToken - If present, this value indicates that there is more output 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.public String toString()
toString in class ObjectObject.toString()public ListAccountsResult clone()
Copyright © 2018. All rights reserved.