public class ListPhoneNumbersRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Provides information about the phone numbers for the specified Amazon Connect instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
The phone number Arn value that is returned from each of the
items in the PhoneNumberSummaryList cannot be used to tag phone number resources. It
will fail with a ResourceNotFoundException. Instead, use the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be
used to tag phone number resources.
| Constructor and Description |
|---|
ListPhoneNumbersRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.Integer |
getMaxResults()
The maximum number of results to return per page.
|
java.lang.String |
getNextToken()
The token for the next set of results.
|
java.util.List<java.lang.String> |
getPhoneNumberCountryCodes()
The ISO country code.
|
java.util.List<java.lang.String> |
getPhoneNumberTypes()
The type of phone number.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page.
|
void |
setNextToken(java.lang.String nextToken)
The token for the next set of results.
|
void |
setPhoneNumberCountryCodes(java.util.Collection<java.lang.String> phoneNumberCountryCodes)
The ISO country code.
|
void |
setPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListPhoneNumbersRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
ListPhoneNumbersRequest |
withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page.
|
ListPhoneNumbersRequest |
withNextToken(java.lang.String nextToken)
The token for the next set of results.
|
ListPhoneNumbersRequest |
withPhoneNumberCountryCodes(java.util.Collection<java.lang.String> phoneNumberCountryCodes)
The ISO country code.
|
ListPhoneNumbersRequest |
withPhoneNumberCountryCodes(java.lang.String... phoneNumberCountryCodes)
The ISO country code.
|
ListPhoneNumbersRequest |
withPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
|
ListPhoneNumbersRequest |
withPhoneNumberTypes(java.lang.String... phoneNumberTypes)
The type of phone number.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public ListPhoneNumbersRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.util.List<java.lang.String> getPhoneNumberTypes()
The type of phone number.
The type of phone number.
public void setPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
phoneNumberTypes - The type of phone number.
public ListPhoneNumbersRequest withPhoneNumberTypes(java.lang.String... phoneNumberTypes)
The type of phone number.
Returns a reference to this object so that method calls can be chained together.
phoneNumberTypes - The type of phone number.
public ListPhoneNumbersRequest withPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
Returns a reference to this object so that method calls can be chained together.
phoneNumberTypes - The type of phone number.
public java.util.List<java.lang.String> getPhoneNumberCountryCodes()
The ISO country code.
The ISO country code.
public void setPhoneNumberCountryCodes(java.util.Collection<java.lang.String> phoneNumberCountryCodes)
The ISO country code.
phoneNumberCountryCodes - The ISO country code.
public ListPhoneNumbersRequest withPhoneNumberCountryCodes(java.lang.String... phoneNumberCountryCodes)
The ISO country code.
Returns a reference to this object so that method calls can be chained together.
phoneNumberCountryCodes - The ISO country code.
public ListPhoneNumbersRequest withPhoneNumberCountryCodes(java.util.Collection<java.lang.String> phoneNumberCountryCodes)
The ISO country code.
Returns a reference to this object so that method calls can be chained together.
phoneNumberCountryCodes - The ISO country code.
public java.lang.String getNextToken()
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
public void setNextToken(java.lang.String nextToken)
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
public ListPhoneNumbersRequest withNextToken(java.lang.String nextToken)
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Returns a reference to this object so that method calls can be chained together.
nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
public java.lang.Integer getMaxResults()
The maximum number of results to return per page. The default MaxResult size is 100.
Constraints:
Range: 1 - 1000
The maximum number of results to return per page. The default MaxResult size is 100.
public void setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page. The default MaxResult size is 100.
Constraints:
Range: 1 - 1000
maxResults - The maximum number of results to return per page. The default MaxResult size is 100.
public ListPhoneNumbersRequest withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page. The default MaxResult size is 100.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1000
maxResults - The maximum number of results to return per page. The default MaxResult size is 100.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object