Struct aws_sdk_ses::types::builders::MessageDsnBuilder
source · #[non_exhaustive]pub struct MessageDsnBuilder { /* private fields */ }
Expand description
A builder for MessageDsn
.
Implementations§
source§impl MessageDsnBuilder
impl MessageDsnBuilder
sourcepub fn reporting_mta(self, input: impl Into<String>) -> Self
pub fn reporting_mta(self, input: impl Into<String>) -> Self
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value is dns; inbound-smtp.[region].amazonaws.com
.
sourcepub fn set_reporting_mta(self, input: Option<String>) -> Self
pub fn set_reporting_mta(self, input: Option<String>) -> Self
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value is dns; inbound-smtp.[region].amazonaws.com
.
sourcepub fn get_reporting_mta(&self) -> &Option<String>
pub fn get_reporting_mta(&self) -> &Option<String>
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value is dns; inbound-smtp.[region].amazonaws.com
.
sourcepub fn arrival_date(self, input: DateTime) -> Self
pub fn arrival_date(self, input: DateTime) -> Self
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn set_arrival_date(self, input: Option<DateTime>) -> Self
pub fn set_arrival_date(self, input: Option<DateTime>) -> Self
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn get_arrival_date(&self) -> &Option<DateTime>
pub fn get_arrival_date(&self) -> &Option<DateTime>
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn extension_fields(self, input: ExtensionField) -> Self
pub fn extension_fields(self, input: ExtensionField) -> Self
Appends an item to extension_fields
.
To override the contents of this collection use set_extension_fields
.
Additional X-headers to include in the DSN.
sourcepub fn set_extension_fields(self, input: Option<Vec<ExtensionField>>) -> Self
pub fn set_extension_fields(self, input: Option<Vec<ExtensionField>>) -> Self
Additional X-headers to include in the DSN.
sourcepub fn get_extension_fields(&self) -> &Option<Vec<ExtensionField>>
pub fn get_extension_fields(&self) -> &Option<Vec<ExtensionField>>
Additional X-headers to include in the DSN.
sourcepub fn build(self) -> Result<MessageDsn, BuildError>
pub fn build(self) -> Result<MessageDsn, BuildError>
Consumes the builder and constructs a MessageDsn
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MessageDsnBuilder
impl Clone for MessageDsnBuilder
source§fn clone(&self) -> MessageDsnBuilder
fn clone(&self) -> MessageDsnBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageDsnBuilder
impl Debug for MessageDsnBuilder
source§impl Default for MessageDsnBuilder
impl Default for MessageDsnBuilder
source§fn default() -> MessageDsnBuilder
fn default() -> MessageDsnBuilder
source§impl PartialEq for MessageDsnBuilder
impl PartialEq for MessageDsnBuilder
source§fn eq(&self, other: &MessageDsnBuilder) -> bool
fn eq(&self, other: &MessageDsnBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.