Class SMSSandboxPhoneNumber
- java.lang.Object
-
- software.amazon.awssdk.services.sns.model.SMSSandboxPhoneNumber
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SMSSandboxPhoneNumber.Builder,SMSSandboxPhoneNumber>
@Generated("software.amazon.awssdk:codegen") public final class SMSSandboxPhoneNumber extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SMSSandboxPhoneNumber.Builder,SMSSandboxPhoneNumber>
A verified or pending destination phone number in the SMS sandbox.
When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSMSSandboxPhoneNumber.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMSSandboxPhoneNumber.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringphoneNumber()The destination phone number.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SMSSandboxPhoneNumber.Builder>serializableBuilderClass()SMSSandboxPhoneNumberVerificationStatusstatus()The destination phone number's verification status.StringstatusAsString()The destination phone number's verification status.SMSSandboxPhoneNumber.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
-
phoneNumber
public final String phoneNumber()
The destination phone number.
- Returns:
- The destination phone number.
-
status
public final SMSSandboxPhoneNumberVerificationStatus status()
The destination phone number's verification status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSMSSandboxPhoneNumberVerificationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The destination phone number's verification status.
- See Also:
SMSSandboxPhoneNumberVerificationStatus
-
statusAsString
public final String statusAsString()
The destination phone number's verification status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSMSSandboxPhoneNumberVerificationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The destination phone number's verification status.
- See Also:
SMSSandboxPhoneNumberVerificationStatus
-
toBuilder
public SMSSandboxPhoneNumber.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SMSSandboxPhoneNumber.Builder,SMSSandboxPhoneNumber>
-
builder
public static SMSSandboxPhoneNumber.Builder builder()
-
serializableBuilderClass
public static Class<? extends SMSSandboxPhoneNumber.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-