public class PhoneNumberStatus
extends java.lang.Object
implements java.io.Serializable
The status of the phone number.
CLAIMED means the previous ClaimedPhoneNumber or UpdatePhoneNumber operation succeeded.
IN_PROGRESS means a ClaimedPhoneNumber or UpdatePhoneNumber 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 ClaimedPhoneNumber 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 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage()
The status message.
|
java.lang.String |
getStatus()
The status.
|
int |
hashCode() |
void |
setMessage(java.lang.String message)
The status message.
|
void |
setStatus(PhoneNumberWorkflowStatus status)
The status.
|
void |
setStatus(java.lang.String status)
The status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PhoneNumberStatus |
withMessage(java.lang.String message)
The status message.
|
PhoneNumberStatus |
withStatus(PhoneNumberWorkflowStatus status)
The status.
|
PhoneNumberStatus |
withStatus(java.lang.String status)
The status.
|
public java.lang.String getStatus()
The status.
Constraints:
Allowed Values: CLAIMED, IN_PROGRESS, FAILED
The status.
PhoneNumberWorkflowStatuspublic void setStatus(java.lang.String status)
The status.
Constraints:
Allowed Values: CLAIMED, IN_PROGRESS, FAILED
status - The status.
PhoneNumberWorkflowStatuspublic PhoneNumberStatus withStatus(java.lang.String status)
The status.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CLAIMED, IN_PROGRESS, FAILED
status - The status.
PhoneNumberWorkflowStatuspublic void setStatus(PhoneNumberWorkflowStatus status)
The status.
Constraints:
Allowed Values: CLAIMED, IN_PROGRESS, FAILED
status - The status.
PhoneNumberWorkflowStatuspublic PhoneNumberStatus withStatus(PhoneNumberWorkflowStatus status)
The status.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CLAIMED, IN_PROGRESS, FAILED
status - The status.
PhoneNumberWorkflowStatuspublic java.lang.String getMessage()
The status message.
Constraints:
Length: 0 - 255
Pattern: ^[\W\S_]*
The status message.
public void setMessage(java.lang.String message)
The status message.
Constraints:
Length: 0 - 255
Pattern: ^[\W\S_]*
message - The status message.
public PhoneNumberStatus withMessage(java.lang.String message)
The status message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
Pattern: ^[\W\S_]*
message - The status message.
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