@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()
List of Amazon Chime accounts and account details.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setAccounts(Collection<Account> accounts)
List of Amazon Chime accounts and account details.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
ListAccountsResult |
withAccounts(Account... accounts)
List of Amazon Chime accounts and account details.
|
ListAccountsResult |
withAccounts(Collection<Account> accounts)
List of Amazon Chime accounts and account details.
|
ListAccountsResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Account> getAccounts()
List of Amazon Chime accounts and account details.
public void setAccounts(Collection<Account> accounts)
List of Amazon Chime accounts and account details.
accounts
- List of Amazon Chime accounts and account details.public ListAccountsResult withAccounts(Account... accounts)
List of Amazon Chime accounts and account details.
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
- List of Amazon Chime accounts and account details.public ListAccountsResult withAccounts(Collection<Account> accounts)
List of Amazon Chime accounts and account details.
accounts
- List of Amazon Chime accounts and account details.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results.
nextToken
- The token to use to retrieve the next page of results.public String getNextToken()
The token to use to retrieve the next page of results.
public ListAccountsResult withNextToken(String nextToken)
The token to use to retrieve the next page of results.
nextToken
- The token to use to retrieve the next page of results.public String toString()
toString
in class Object
Object.toString()
public ListAccountsResult clone()