#[non_exhaustive]pub struct CodeDeliveryDetailsTypeBuilder { /* private fields */ }Expand description
A builder for CodeDeliveryDetailsType.
Implementations§
source§impl CodeDeliveryDetailsTypeBuilder
impl CodeDeliveryDetailsTypeBuilder
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The email address or phone number destination where Amazon Cognito sent the code.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The email address or phone number destination where Amazon Cognito sent the code.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The email address or phone number destination where Amazon Cognito sent the code.
sourcepub fn delivery_medium(self, input: DeliveryMediumType) -> Self
pub fn delivery_medium(self, input: DeliveryMediumType) -> Self
The method that Amazon Cognito used to send the code.
sourcepub fn set_delivery_medium(self, input: Option<DeliveryMediumType>) -> Self
pub fn set_delivery_medium(self, input: Option<DeliveryMediumType>) -> Self
The method that Amazon Cognito used to send the code.
sourcepub fn get_delivery_medium(&self) -> &Option<DeliveryMediumType>
pub fn get_delivery_medium(&self) -> &Option<DeliveryMediumType>
The method that Amazon Cognito used to send the code.
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the attribute that Amazon Cognito verifies with the code.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the attribute that Amazon Cognito verifies with the code.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of the attribute that Amazon Cognito verifies with the code.
sourcepub fn build(self) -> CodeDeliveryDetailsType
pub fn build(self) -> CodeDeliveryDetailsType
Consumes the builder and constructs a CodeDeliveryDetailsType.
Trait Implementations§
source§impl Clone for CodeDeliveryDetailsTypeBuilder
impl Clone for CodeDeliveryDetailsTypeBuilder
source§fn clone(&self) -> CodeDeliveryDetailsTypeBuilder
fn clone(&self) -> CodeDeliveryDetailsTypeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for CodeDeliveryDetailsTypeBuilder
impl Default for CodeDeliveryDetailsTypeBuilder
source§fn default() -> CodeDeliveryDetailsTypeBuilder
fn default() -> CodeDeliveryDetailsTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CodeDeliveryDetailsTypeBuilder
impl PartialEq for CodeDeliveryDetailsTypeBuilder
source§fn eq(&self, other: &CodeDeliveryDetailsTypeBuilder) -> bool
fn eq(&self, other: &CodeDeliveryDetailsTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodeDeliveryDetailsTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CodeDeliveryDetailsTypeBuilder
impl Send for CodeDeliveryDetailsTypeBuilder
impl Sync for CodeDeliveryDetailsTypeBuilder
impl Unpin for CodeDeliveryDetailsTypeBuilder
impl UnwindSafe for CodeDeliveryDetailsTypeBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.