#[non_exhaustive]pub struct NotifyConfigurationTypeBuilder { /* private fields */ }Expand description
A builder for NotifyConfigurationType.
Implementations§
source§impl NotifyConfigurationTypeBuilder
impl NotifyConfigurationTypeBuilder
sourcepub fn from(self, input: impl Into<String>) -> Self
pub fn from(self, input: impl Into<String>) -> Self
The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
sourcepub fn set_from(self, input: Option<String>) -> Self
pub fn set_from(self, input: Option<String>) -> Self
The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
sourcepub fn get_from(&self) -> &Option<String>
pub fn get_from(&self) -> &Option<String>
The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
sourcepub fn reply_to(self, input: impl Into<String>) -> Self
pub fn reply_to(self, input: impl Into<String>) -> Self
The destination to which the receiver of an email should reply to.
sourcepub fn set_reply_to(self, input: Option<String>) -> Self
pub fn set_reply_to(self, input: Option<String>) -> Self
The destination to which the receiver of an email should reply to.
sourcepub fn get_reply_to(&self) -> &Option<String>
pub fn get_reply_to(&self) -> &Option<String>
The destination to which the receiver of an email should reply to.
sourcepub fn source_arn(self, input: impl Into<String>) -> Self
pub fn source_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
sourcepub fn set_source_arn(self, input: Option<String>) -> Self
pub fn set_source_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
sourcepub fn get_source_arn(&self) -> &Option<String>
pub fn get_source_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
sourcepub fn block_email(self, input: NotifyEmailType) -> Self
pub fn block_email(self, input: NotifyEmailType) -> Self
Email template used when a detected risk event is blocked.
sourcepub fn set_block_email(self, input: Option<NotifyEmailType>) -> Self
pub fn set_block_email(self, input: Option<NotifyEmailType>) -> Self
Email template used when a detected risk event is blocked.
sourcepub fn get_block_email(&self) -> &Option<NotifyEmailType>
pub fn get_block_email(&self) -> &Option<NotifyEmailType>
Email template used when a detected risk event is blocked.
sourcepub fn no_action_email(self, input: NotifyEmailType) -> Self
pub fn no_action_email(self, input: NotifyEmailType) -> Self
The email template used when a detected risk event is allowed.
sourcepub fn set_no_action_email(self, input: Option<NotifyEmailType>) -> Self
pub fn set_no_action_email(self, input: Option<NotifyEmailType>) -> Self
The email template used when a detected risk event is allowed.
sourcepub fn get_no_action_email(&self) -> &Option<NotifyEmailType>
pub fn get_no_action_email(&self) -> &Option<NotifyEmailType>
The email template used when a detected risk event is allowed.
sourcepub fn mfa_email(self, input: NotifyEmailType) -> Self
pub fn mfa_email(self, input: NotifyEmailType) -> Self
The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk.
sourcepub fn set_mfa_email(self, input: Option<NotifyEmailType>) -> Self
pub fn set_mfa_email(self, input: Option<NotifyEmailType>) -> Self
The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk.
sourcepub fn get_mfa_email(&self) -> &Option<NotifyEmailType>
pub fn get_mfa_email(&self) -> &Option<NotifyEmailType>
The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk.
sourcepub fn build(self) -> Result<NotifyConfigurationType, BuildError>
pub fn build(self) -> Result<NotifyConfigurationType, BuildError>
Consumes the builder and constructs a NotifyConfigurationType.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NotifyConfigurationTypeBuilder
impl Clone for NotifyConfigurationTypeBuilder
source§fn clone(&self) -> NotifyConfigurationTypeBuilder
fn clone(&self) -> NotifyConfigurationTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for NotifyConfigurationTypeBuilder
impl Default for NotifyConfigurationTypeBuilder
source§fn default() -> NotifyConfigurationTypeBuilder
fn default() -> NotifyConfigurationTypeBuilder
source§impl PartialEq for NotifyConfigurationTypeBuilder
impl PartialEq for NotifyConfigurationTypeBuilder
source§fn eq(&self, other: &NotifyConfigurationTypeBuilder) -> bool
fn eq(&self, other: &NotifyConfigurationTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.