Struct aws_sdk_ses::model::receipt_rule::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ReceiptRule
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the receipt rule. The name must:
-
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Start and end with a letter or number.
-
Contain less than 64 characters.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the receipt rule. The name must:
-
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Start and end with a letter or number.
-
Contain less than 64 characters.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If true
, the receipt rule is active. The default value is false
.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
If true
, the receipt rule is active. The default value is false
.
sourcepub fn tls_policy(self, input: TlsPolicy) -> Self
pub fn tls_policy(self, input: TlsPolicy) -> Self
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require
, Amazon SES will bounce emails that are not received over TLS. The default is Optional
.
sourcepub fn set_tls_policy(self, input: Option<TlsPolicy>) -> Self
pub fn set_tls_policy(self, input: Option<TlsPolicy>) -> Self
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require
, Amazon SES will bounce emails that are not received over TLS. The default is Optional
.
sourcepub fn recipients(self, input: impl Into<String>) -> Self
pub fn recipients(self, input: impl Into<String>) -> Self
Appends an item to recipients
.
To override the contents of this collection use set_recipients
.
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
sourcepub fn set_recipients(self, input: Option<Vec<String>>) -> Self
pub fn set_recipients(self, input: Option<Vec<String>>) -> Self
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
sourcepub fn actions(self, input: ReceiptAction) -> Self
pub fn actions(self, input: ReceiptAction) -> Self
Appends an item to actions
.
To override the contents of this collection use set_actions
.
An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
sourcepub fn set_actions(self, input: Option<Vec<ReceiptAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<ReceiptAction>>) -> Self
An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
sourcepub fn scan_enabled(self, input: bool) -> Self
pub fn scan_enabled(self, input: bool) -> Self
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false
.
sourcepub fn set_scan_enabled(self, input: Option<bool>) -> Self
pub fn set_scan_enabled(self, input: Option<bool>) -> Self
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false
.
sourcepub fn build(self) -> ReceiptRule
pub fn build(self) -> ReceiptRule
Consumes the builder and constructs a ReceiptRule
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more