#[non_exhaustive]pub struct AccountTakeoverActionTypeBuilder { /* private fields */ }
Expand description
A builder for AccountTakeoverActionType
.
Implementations§
source§impl AccountTakeoverActionTypeBuilder
impl AccountTakeoverActionTypeBuilder
sourcepub fn notify(self, input: bool) -> Self
pub fn notify(self, input: bool) -> Self
Flag specifying whether to send a notification.
This field is required.sourcepub fn set_notify(self, input: Option<bool>) -> Self
pub fn set_notify(self, input: Option<bool>) -> Self
Flag specifying whether to send a notification.
sourcepub fn get_notify(&self) -> &Option<bool>
pub fn get_notify(&self) -> &Option<bool>
Flag specifying whether to send a notification.
sourcepub fn event_action(self, input: AccountTakeoverEventActionType) -> Self
pub fn event_action(self, input: AccountTakeoverEventActionType) -> Self
The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCK
Choosing this action will block the request. -
MFA_IF_CONFIGURED
Present an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIRED
Present an MFA challenge if user has configured it, else block the request. -
NO_ACTION
Allow the user to sign in.
sourcepub fn set_event_action(
self,
input: Option<AccountTakeoverEventActionType>,
) -> Self
pub fn set_event_action( self, input: Option<AccountTakeoverEventActionType>, ) -> Self
The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCK
Choosing this action will block the request. -
MFA_IF_CONFIGURED
Present an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIRED
Present an MFA challenge if user has configured it, else block the request. -
NO_ACTION
Allow the user to sign in.
sourcepub fn get_event_action(&self) -> &Option<AccountTakeoverEventActionType>
pub fn get_event_action(&self) -> &Option<AccountTakeoverEventActionType>
The action to take in response to the account takeover action. Valid values are as follows:
-
BLOCK
Choosing this action will block the request. -
MFA_IF_CONFIGURED
Present an MFA challenge if user has configured it, else allow the request. -
MFA_REQUIRED
Present an MFA challenge if user has configured it, else block the request. -
NO_ACTION
Allow the user to sign in.
sourcepub fn build(self) -> Result<AccountTakeoverActionType, BuildError>
pub fn build(self) -> Result<AccountTakeoverActionType, BuildError>
Consumes the builder and constructs a AccountTakeoverActionType
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccountTakeoverActionTypeBuilder
impl Clone for AccountTakeoverActionTypeBuilder
source§fn clone(&self) -> AccountTakeoverActionTypeBuilder
fn clone(&self) -> AccountTakeoverActionTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AccountTakeoverActionTypeBuilder
impl Default for AccountTakeoverActionTypeBuilder
source§fn default() -> AccountTakeoverActionTypeBuilder
fn default() -> AccountTakeoverActionTypeBuilder
source§impl PartialEq for AccountTakeoverActionTypeBuilder
impl PartialEq for AccountTakeoverActionTypeBuilder
source§fn eq(&self, other: &AccountTakeoverActionTypeBuilder) -> bool
fn eq(&self, other: &AccountTakeoverActionTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccountTakeoverActionTypeBuilder
Auto Trait Implementations§
impl Freeze for AccountTakeoverActionTypeBuilder
impl RefUnwindSafe for AccountTakeoverActionTypeBuilder
impl Send for AccountTakeoverActionTypeBuilder
impl Sync for AccountTakeoverActionTypeBuilder
impl Unpin for AccountTakeoverActionTypeBuilder
impl UnwindSafe for AccountTakeoverActionTypeBuilder
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