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 ==.