Class PhoneNumberStatus
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.PhoneNumberStatus
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PhoneNumberStatus.Builder,PhoneNumberStatus>
@Generated("software.amazon.awssdk:codegen") public final class PhoneNumberStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PhoneNumberStatus.Builder,PhoneNumberStatus>
The status of the phone number.
-
CLAIMEDmeans the previous ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. -
IN_PROGRESSmeans 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. -
FAILEDindicates 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 theTargetArnvalue you are claiming or updating a phone number to has reached its limit of total claimed numbers. If you received aFAILEDstatus from aClaimPhoneNumberAPI 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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePhoneNumberStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumberStatus.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()The status message.List<SdkField<?>>sdkFields()static Class<? extends PhoneNumberStatus.Builder>serializableBuilderClass()PhoneNumberWorkflowStatusstatus()The status.StringstatusAsString()The status.PhoneNumberStatus.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
status
public final PhoneNumberWorkflowStatus status()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnPhoneNumberWorkflowStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
PhoneNumberWorkflowStatus
-
statusAsString
public final String statusAsString()
The status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnPhoneNumberWorkflowStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status.
- See Also:
PhoneNumberWorkflowStatus
-
message
public final String message()
The status message.
- Returns:
- The status message.
-
toBuilder
public PhoneNumberStatus.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PhoneNumberStatus.Builder,PhoneNumberStatus>
-
builder
public static PhoneNumberStatus.Builder builder()
-
serializableBuilderClass
public static Class<? extends PhoneNumberStatus.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-