@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPhoneNumbersResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListPhoneNumbersResult() |
Modifier and Type | Method and Description |
---|---|
ListPhoneNumbersResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use to retrieve the next page of results.
|
List<PhoneNumber> |
getPhoneNumbers()
The phone number details.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The phone number details.
|
String |
toString()
Returns a string representation of this object.
|
ListPhoneNumbersResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
ListPhoneNumbersResult |
withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The phone number details.
|
ListPhoneNumbersResult |
withPhoneNumbers(PhoneNumber... phoneNumbers)
The phone number details.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<PhoneNumber> getPhoneNumbers()
The phone number details.
public void setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The phone number details.
phoneNumbers
- The phone number details.public ListPhoneNumbersResult withPhoneNumbers(PhoneNumber... phoneNumbers)
The phone number details.
NOTE: This method appends the values to the existing list (if any). Use
setPhoneNumbers(java.util.Collection)
or withPhoneNumbers(java.util.Collection)
if you want to
override the existing values.
phoneNumbers
- The phone number details.public ListPhoneNumbersResult withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
The phone number details.
phoneNumbers
- The phone number 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 ListPhoneNumbersResult 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 ListPhoneNumbersResult clone()