@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListPhoneNumbersOptedOutResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The response from the ListPhoneNumbersOptedOut action.
| Constructor and Description |
|---|
ListPhoneNumbersOptedOutResult() |
| Modifier and Type | Method and Description |
|---|---|
ListPhoneNumbersOptedOutResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
A
NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results. |
List<String> |
getPhoneNumbers()
A list of phone numbers that are opted out of receiving SMS messages.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
A
NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results. |
void |
setPhoneNumbers(Collection<String> phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages.
|
String |
toString()
Returns a string representation of this object.
|
ListPhoneNumbersOptedOutResult |
withNextToken(String nextToken)
A
NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results. |
ListPhoneNumbersOptedOutResult |
withPhoneNumbers(Collection<String> phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages.
|
ListPhoneNumbersOptedOutResult |
withPhoneNumbers(String... phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<String> getPhoneNumbers()
A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.
public void setPhoneNumbers(Collection<String> phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.
phoneNumbers - A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page
can contain up to 100 phone numbers.public ListPhoneNumbersOptedOutResult withPhoneNumbers(String... phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.
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 - A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page
can contain up to 100 phone numbers.public ListPhoneNumbersOptedOutResult withPhoneNumbers(Collection<String> phoneNumbers)
A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page can contain up to 100 phone numbers.
phoneNumbers - A list of phone numbers that are opted out of receiving SMS messages. The list is paginated, and each page
can contain up to 100 phone numbers.public void setNextToken(String nextToken)
A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results.
nextToken - A NextToken string is returned when you call the ListPhoneNumbersOptedOut action
if additional records are available after the first page of results.public String getNextToken()
A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results.
NextToken string is returned when you call the ListPhoneNumbersOptedOut
action if additional records are available after the first page of results.public ListPhoneNumbersOptedOutResult withNextToken(String nextToken)
A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if
additional records are available after the first page of results.
nextToken - A NextToken string is returned when you call the ListPhoneNumbersOptedOut action
if additional records are available after the first page of results.public String toString()
toString in class ObjectObject.toString()public ListPhoneNumbersOptedOutResult clone()