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 interface
SMSSandboxPhoneNumber.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMSSandboxPhoneNumber.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
phoneNumber()
The destination phone number.List<SdkField<?>>
sdkFields()
static Class<? extends SMSSandboxPhoneNumber.Builder>
serializableBuilderClass()
SMSSandboxPhoneNumberVerificationStatus
status()
The destination phone number's verification status.String
statusAsString()
The destination phone number's verification status.SMSSandboxPhoneNumber.Builder
toBuilder()
String
toString()
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,
status
will 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,
status
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-