Struct aws_sdk_sns::operation::create_sms_sandbox_phone_number::builders::CreateSMSSandboxPhoneNumberFluentBuilder
source · pub struct CreateSMSSandboxPhoneNumberFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSMSSandboxPhoneNumber
.
Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number.
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.
Implementations§
source§impl CreateSMSSandboxPhoneNumberFluentBuilder
impl CreateSMSSandboxPhoneNumberFluentBuilder
sourcepub fn as_input(&self) -> &CreateSmsSandboxPhoneNumberInputBuilder
pub fn as_input(&self) -> &CreateSmsSandboxPhoneNumberInputBuilder
Access the CreateSMSSandboxPhoneNumber as a reference.
sourcepub async fn send(
self
) -> Result<CreateSmsSandboxPhoneNumberOutput, SdkError<CreateSMSSandboxPhoneNumberError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSmsSandboxPhoneNumberOutput, SdkError<CreateSMSSandboxPhoneNumberError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateSmsSandboxPhoneNumberOutput, CreateSMSSandboxPhoneNumberError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateSmsSandboxPhoneNumberOutput, CreateSMSSandboxPhoneNumberError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
sourcepub fn get_phone_number(&self) -> &Option<String>
pub fn get_phone_number(&self) -> &Option<String>
The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
sourcepub fn language_code(self, input: LanguageCodeString) -> Self
pub fn language_code(self, input: LanguageCodeString) -> Self
The language to use for sending the OTP. The default value is en-US
.
sourcepub fn set_language_code(self, input: Option<LanguageCodeString>) -> Self
pub fn set_language_code(self, input: Option<LanguageCodeString>) -> Self
The language to use for sending the OTP. The default value is en-US
.
sourcepub fn get_language_code(&self) -> &Option<LanguageCodeString>
pub fn get_language_code(&self) -> &Option<LanguageCodeString>
The language to use for sending the OTP. The default value is en-US
.
Trait Implementations§
source§impl Clone for CreateSMSSandboxPhoneNumberFluentBuilder
impl Clone for CreateSMSSandboxPhoneNumberFluentBuilder
source§fn clone(&self) -> CreateSMSSandboxPhoneNumberFluentBuilder
fn clone(&self) -> CreateSMSSandboxPhoneNumberFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateSMSSandboxPhoneNumberFluentBuilder
impl !RefUnwindSafe for CreateSMSSandboxPhoneNumberFluentBuilder
impl Send for CreateSMSSandboxPhoneNumberFluentBuilder
impl Sync for CreateSMSSandboxPhoneNumberFluentBuilder
impl Unpin for CreateSMSSandboxPhoneNumberFluentBuilder
impl !UnwindSafe for CreateSMSSandboxPhoneNumberFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more