public class ListPhoneNumbersV2Request
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Lists phone numbers claimed to your Amazon Connect instance or traffic
distribution group. If the provided TargetArn is a traffic
distribution group, you can call this API in both Amazon Web Services Regions
associated with traffic distribution group.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
When given an instance ARN, ListPhoneNumbersV2 returns only the
phone numbers claimed to the instance.
When given a traffic distribution group ARN ListPhoneNumbersV2
returns only the phone numbers claimed to the traffic distribution group.
| Constructor and Description |
|---|
ListPhoneNumbersV2Request() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.lang.String |
getPhoneNumberPrefix()
The prefix of the phone number.
|
java.util.List<java.lang.String> |
getPhoneNumberTypes()
The type of phone number.
|
java.lang.String |
getTargetArn()
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to.
|
int |
hashCode() |
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 |
setPhoneNumberPrefix(java.lang.String phoneNumberPrefix)
The prefix of the phone number.
|
void |
setPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
|
void |
setTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListPhoneNumbersV2Request |
withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page.
|
ListPhoneNumbersV2Request |
withNextToken(java.lang.String nextToken)
The token for the next set of results.
|
ListPhoneNumbersV2Request |
withPhoneNumberCountryCodes(java.util.Collection<java.lang.String> phoneNumberCountryCodes)
The ISO country code.
|
ListPhoneNumbersV2Request |
withPhoneNumberCountryCodes(java.lang.String... phoneNumberCountryCodes)
The ISO country code.
|
ListPhoneNumbersV2Request |
withPhoneNumberPrefix(java.lang.String phoneNumberPrefix)
The prefix of the phone number.
|
ListPhoneNumbersV2Request |
withPhoneNumberTypes(java.util.Collection<java.lang.String> phoneNumberTypes)
The type of phone number.
|
ListPhoneNumbersV2Request |
withPhoneNumberTypes(java.lang.String... phoneNumberTypes)
The type of phone number.
|
ListPhoneNumbersV2Request |
withTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getTargetArn()
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to. If
TargetArn input is not provided, this API lists numbers
claimed to all the Amazon Connect instances belonging to your account in
the same Amazon Web Services Region as the request.
The Amazon Resource Name (ARN) for Amazon Connect instances or
traffic distribution groups that phone numbers are claimed to. If
TargetArn input is not provided, this API lists
numbers claimed to all the Amazon Connect instances belonging to
your account in the same Amazon Web Services Region as the
request.
public void setTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to. If
TargetArn input is not provided, this API lists numbers
claimed to all the Amazon Connect instances belonging to your account in
the same Amazon Web Services Region as the request.
targetArn -
The Amazon Resource Name (ARN) for Amazon Connect instances or
traffic distribution groups that phone numbers are claimed to.
If TargetArn input is not provided, this API
lists numbers claimed to all the Amazon Connect instances
belonging to your account in the same Amazon Web Services
Region as the request.
public ListPhoneNumbersV2Request withTargetArn(java.lang.String targetArn)
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to. If
TargetArn input is not provided, this API lists numbers
claimed to all the Amazon Connect instances belonging to your account in
the same Amazon Web Services Region as the request.
Returns a reference to this object so that method calls can be chained together.
targetArn -
The Amazon Resource Name (ARN) for Amazon Connect instances or
traffic distribution groups that phone numbers are claimed to.
If TargetArn input is not provided, this API
lists numbers claimed to all the Amazon Connect instances
belonging to your account in the same Amazon Web Services
Region as the request.
public java.lang.Integer getMaxResults()
The maximum number of results to return per page.
Constraints:
Range: 1 - 1000
The maximum number of results to return per page.
public void setMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page.
Constraints:
Range: 1 - 1000
maxResults - The maximum number of results to return per page.
public ListPhoneNumbersV2Request withMaxResults(java.lang.Integer maxResults)
The maximum number of results to return per page.
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.
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.
Constraints:
Length: 1 - 100000
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.
Constraints:
Length: 1 - 100000
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 ListPhoneNumbersV2Request 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.
Constraints:
Length: 1 - 100000
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.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 ListPhoneNumbersV2Request 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 ListPhoneNumbersV2Request 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.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 ListPhoneNumbersV2Request 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 ListPhoneNumbersV2Request 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.lang.String getPhoneNumberPrefix()
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
Constraints:
Pattern: \\+?[0-9]{1,11}
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
public void setPhoneNumberPrefix(java.lang.String phoneNumberPrefix)
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
Constraints:
Pattern: \\+?[0-9]{1,11}
phoneNumberPrefix -
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
public ListPhoneNumbersV2Request withPhoneNumberPrefix(java.lang.String phoneNumberPrefix)
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: \\+?[0-9]{1,11}
phoneNumberPrefix -
The prefix of the phone number. If provided, it must contain
+ as part of the country code.
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