@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()
The list of accounts.
|
String |
getNextToken()
The account's user token.
|
int |
hashCode() |
void |
setAccounts(Collection<Account> accounts)
The list of accounts.
|
void |
setNextToken(String nextToken)
The account's user token.
|
String |
toString()
Returns a string representation of this object.
|
ListAccountsResult |
withAccounts(Account... accounts)
The list of accounts.
|
ListAccountsResult |
withAccounts(Collection<Account> accounts)
The list of accounts.
|
ListAccountsResult |
withNextToken(String nextToken)
The account's user token.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setAccounts(Collection<Account> accounts)
The list of accounts.
accounts - The list of accounts.public ListAccountsResult withAccounts(Account... accounts)
The list of accounts.
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 - The list of accounts.public ListAccountsResult withAccounts(Collection<Account> accounts)
The list of accounts.
accounts - The list of accounts.public void setNextToken(String nextToken)
The account's user token.
nextToken - The account's user token.public String getNextToken()
The account's user token.
public ListAccountsResult withNextToken(String nextToken)
The account's user token.
nextToken - The account's user token.public String toString()
toString in class ObjectObject.toString()public ListAccountsResult clone()
Copyright © 2020. All rights reserved.