@Generated(value="software.amazon.awssdk:codegen") public final class PhoneNumberStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PhoneNumberStatus.Builder,PhoneNumberStatus>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PhoneNumberStatus.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PhoneNumberStatus.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
The status message.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PhoneNumberStatus.Builder> |
serializableBuilderClass() |
PhoneNumberWorkflowStatus |
status()
The status.
|
String |
statusAsString()
The status.
|
PhoneNumberStatus.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final PhoneNumberWorkflowStatus status()
The status.
If the service returns an enum value that is not available in the current SDK version, status will
return PhoneNumberWorkflowStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
PhoneNumberWorkflowStatuspublic final String statusAsString()
The status.
If the service returns an enum value that is not available in the current SDK version, status will
return PhoneNumberWorkflowStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
PhoneNumberWorkflowStatuspublic final String message()
The status message.
public PhoneNumberStatus.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PhoneNumberStatus.Builder,PhoneNumberStatus>public static PhoneNumberStatus.Builder builder()
public static Class<? extends PhoneNumberStatus.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.