aws-sdk-pinpointsmsvoicev2 1.124.0

AWS SDK for Amazon Pinpoint SMS Voice V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct VerifyDestinationNumberInput {
    /// <p>The unique identifier for the verififed destination phone number.</p>
    pub verified_destination_number_id: ::std::option::Option<::std::string::String>,
    /// <p>The verification code that was received by the verified destination phone number.</p>
    pub verification_code: ::std::option::Option<::std::string::String>,
}
impl VerifyDestinationNumberInput {
    /// <p>The unique identifier for the verififed destination phone number.</p>
    pub fn verified_destination_number_id(&self) -> ::std::option::Option<&str> {
        self.verified_destination_number_id.as_deref()
    }
    /// <p>The verification code that was received by the verified destination phone number.</p>
    pub fn verification_code(&self) -> ::std::option::Option<&str> {
        self.verification_code.as_deref()
    }
}
impl VerifyDestinationNumberInput {
    /// Creates a new builder-style object to manufacture [`VerifyDestinationNumberInput`](crate::operation::verify_destination_number::VerifyDestinationNumberInput).
    pub fn builder() -> crate::operation::verify_destination_number::builders::VerifyDestinationNumberInputBuilder {
        crate::operation::verify_destination_number::builders::VerifyDestinationNumberInputBuilder::default()
    }
}

/// A builder for [`VerifyDestinationNumberInput`](crate::operation::verify_destination_number::VerifyDestinationNumberInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct VerifyDestinationNumberInputBuilder {
    pub(crate) verified_destination_number_id: ::std::option::Option<::std::string::String>,
    pub(crate) verification_code: ::std::option::Option<::std::string::String>,
}
impl VerifyDestinationNumberInputBuilder {
    /// <p>The unique identifier for the verififed destination phone number.</p>
    /// This field is required.
    pub fn verified_destination_number_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.verified_destination_number_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the verififed destination phone number.</p>
    pub fn set_verified_destination_number_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.verified_destination_number_id = input;
        self
    }
    /// <p>The unique identifier for the verififed destination phone number.</p>
    pub fn get_verified_destination_number_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.verified_destination_number_id
    }
    /// <p>The verification code that was received by the verified destination phone number.</p>
    /// This field is required.
    pub fn verification_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.verification_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The verification code that was received by the verified destination phone number.</p>
    pub fn set_verification_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.verification_code = input;
        self
    }
    /// <p>The verification code that was received by the verified destination phone number.</p>
    pub fn get_verification_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.verification_code
    }
    /// Consumes the builder and constructs a [`VerifyDestinationNumberInput`](crate::operation::verify_destination_number::VerifyDestinationNumberInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::verify_destination_number::VerifyDestinationNumberInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::verify_destination_number::VerifyDestinationNumberInput {
            verified_destination_number_id: self.verified_destination_number_id,
            verification_code: self.verification_code,
        })
    }
}