public class DescribePhoneNumberRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Gets details and status of a phone number that’s claimed to your Amazon Connect instance or traffic distribution group.
If the number is claimed to a traffic distribution group, and you are calling
in the Amazon Web Services Region where the traffic distribution group was
created, you can use either a phone number ARN or UUID value for the
PhoneNumberId URI request parameter. However, if the number is
claimed to a traffic distribution group and you are calling this API in the
alternate Amazon Web Services Region associated with the traffic distribution
group, you must provide a full phone number ARN. If a UUID is provided in
this scenario, you will receive a ResourceNotFoundException.
| Constructor and Description |
|---|
DescribePhoneNumberRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPhoneNumberId()
A unique identifier for the phone number.
|
int |
hashCode() |
void |
setPhoneNumberId(java.lang.String phoneNumberId)
A unique identifier for the phone number.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribePhoneNumberRequest |
withPhoneNumberId(java.lang.String phoneNumberId)
A unique identifier for the phone number.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getPhoneNumberId()
A unique identifier for the phone number.
A unique identifier for the phone number.
public void setPhoneNumberId(java.lang.String phoneNumberId)
A unique identifier for the phone number.
phoneNumberId - A unique identifier for the phone number.
public DescribePhoneNumberRequest withPhoneNumberId(java.lang.String phoneNumberId)
A unique identifier for the phone number.
Returns a reference to this object so that method calls can be chained together.
phoneNumberId - A unique identifier for the phone number.
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