@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumberStatus extends Object implements Serializable, Cloneable, StructuredPojo
The status of the phone number.
CLAIMED means the previous ClaimPhoneNumber or UpdatePhoneNumber
operation succeeded.
IN_PROGRESS means a ClaimPhoneNumber, UpdatePhoneNumber, or
UpdatePhoneNumberMetadata operation is still in progress and has not yet completed. You can call DescribePhoneNumber
at a later time to verify if the previous operation has completed.
FAILED indicates that the previous ClaimPhoneNumber or UpdatePhoneNumber
operation has failed. It will include a message indicating the failure reason. A common reason for a failure may be
that the TargetArn value you are claiming or updating a phone number to has reached its limit of total
claimed numbers. If you received a FAILED status from a ClaimPhoneNumber API call, you have
one day to retry claiming the phone number before the number is released back to the inventory for other customers to
claim.
| Constructor and Description |
|---|
PhoneNumberStatus() |
| Modifier and Type | Method and Description |
|---|---|
PhoneNumberStatus |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
The status message.
|
String |
getStatus()
The status.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMessage(String message)
The status message.
|
void |
setStatus(String status)
The status.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumberStatus |
withMessage(String message)
The status message.
|
PhoneNumberStatus |
withStatus(PhoneNumberWorkflowStatus status)
The status.
|
PhoneNumberStatus |
withStatus(String status)
The status.
|
public void setStatus(String status)
The status.
status - The status.PhoneNumberWorkflowStatuspublic String getStatus()
The status.
PhoneNumberWorkflowStatuspublic PhoneNumberStatus withStatus(String status)
The status.
status - The status.PhoneNumberWorkflowStatuspublic PhoneNumberStatus withStatus(PhoneNumberWorkflowStatus status)
The status.
status - The status.PhoneNumberWorkflowStatuspublic void setMessage(String message)
The status message.
message - The status message.public String getMessage()
The status message.
public PhoneNumberStatus withMessage(String message)
The status message.
message - The status message.public String toString()
toString in class ObjectObject.toString()public PhoneNumberStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.