@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<AccountInfo> |
getAccountList()
A paginated response with the list of account information and the next token if more results are available.
|
String |
getNextToken()
The page token client that is used to retrieve the list of accounts.
|
int |
hashCode() |
void |
setAccountList(Collection<AccountInfo> accountList)
A paginated response with the list of account information and the next token if more results are available.
|
void |
setNextToken(String nextToken)
The page token client that is used to retrieve the list of accounts.
|
String |
toString()
Returns a string representation of this object.
|
ListAccountsResult |
withAccountList(AccountInfo... accountList)
A paginated response with the list of account information and the next token if more results are available.
|
ListAccountsResult |
withAccountList(Collection<AccountInfo> accountList)
A paginated response with the list of account information and the next token if more results are available.
|
ListAccountsResult |
withNextToken(String nextToken)
The page token client that is used to retrieve the list of accounts.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setNextToken(String nextToken)
The page token client that is used to retrieve the list of accounts.
nextToken - The page token client that is used to retrieve the list of accounts.public String getNextToken()
The page token client that is used to retrieve the list of accounts.
public ListAccountsResult withNextToken(String nextToken)
The page token client that is used to retrieve the list of accounts.
nextToken - The page token client that is used to retrieve the list of accounts.public List<AccountInfo> getAccountList()
A paginated response with the list of account information and the next token if more results are available.
public void setAccountList(Collection<AccountInfo> accountList)
A paginated response with the list of account information and the next token if more results are available.
accountList - A paginated response with the list of account information and the next token if more results are
available.public ListAccountsResult withAccountList(AccountInfo... accountList)
A paginated response with the list of account information and the next token if more results are available.
NOTE: This method appends the values to the existing list (if any). Use
setAccountList(java.util.Collection) or withAccountList(java.util.Collection) if you want to
override the existing values.
accountList - A paginated response with the list of account information and the next token if more results are
available.public ListAccountsResult withAccountList(Collection<AccountInfo> accountList)
A paginated response with the list of account information and the next token if more results are available.
accountList - A paginated response with the list of account information and the next token if more results are
available.public String toString()
toString in class ObjectObject.toString()public ListAccountsResult clone()