Struct aws_sdk_cognitoidentityprovider::types::builders::SoftwareTokenMfaSettingsTypeBuilder
source · #[non_exhaustive]pub struct SoftwareTokenMfaSettingsTypeBuilder { /* private fields */ }
Expand description
A builder for SoftwareTokenMfaSettingsType
.
Implementations§
source§impl SoftwareTokenMfaSettingsTypeBuilder
impl SoftwareTokenMfaSettingsTypeBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Specifies whether software token MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether software token MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether software token MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
sourcepub fn preferred_mfa(self, input: bool) -> Self
pub fn preferred_mfa(self, input: bool) -> Self
Specifies whether software token MFA is the preferred MFA method.
sourcepub fn set_preferred_mfa(self, input: Option<bool>) -> Self
pub fn set_preferred_mfa(self, input: Option<bool>) -> Self
Specifies whether software token MFA is the preferred MFA method.
sourcepub fn get_preferred_mfa(&self) -> &Option<bool>
pub fn get_preferred_mfa(&self) -> &Option<bool>
Specifies whether software token MFA is the preferred MFA method.
sourcepub fn build(self) -> SoftwareTokenMfaSettingsType
pub fn build(self) -> SoftwareTokenMfaSettingsType
Consumes the builder and constructs a SoftwareTokenMfaSettingsType
.
Trait Implementations§
source§impl Clone for SoftwareTokenMfaSettingsTypeBuilder
impl Clone for SoftwareTokenMfaSettingsTypeBuilder
source§fn clone(&self) -> SoftwareTokenMfaSettingsTypeBuilder
fn clone(&self) -> SoftwareTokenMfaSettingsTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SoftwareTokenMfaSettingsTypeBuilder
impl Default for SoftwareTokenMfaSettingsTypeBuilder
source§fn default() -> SoftwareTokenMfaSettingsTypeBuilder
fn default() -> SoftwareTokenMfaSettingsTypeBuilder
source§impl PartialEq for SoftwareTokenMfaSettingsTypeBuilder
impl PartialEq for SoftwareTokenMfaSettingsTypeBuilder
source§fn eq(&self, other: &SoftwareTokenMfaSettingsTypeBuilder) -> bool
fn eq(&self, other: &SoftwareTokenMfaSettingsTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SoftwareTokenMfaSettingsTypeBuilder
Auto Trait Implementations§
impl Freeze for SoftwareTokenMfaSettingsTypeBuilder
impl RefUnwindSafe for SoftwareTokenMfaSettingsTypeBuilder
impl Send for SoftwareTokenMfaSettingsTypeBuilder
impl Sync for SoftwareTokenMfaSettingsTypeBuilder
impl Unpin for SoftwareTokenMfaSettingsTypeBuilder
impl UnwindSafe for SoftwareTokenMfaSettingsTypeBuilder
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