Struct aws_sdk_mailmanager::types::builders::AddHeaderActionBuilder
source · #[non_exhaustive]pub struct AddHeaderActionBuilder { /* private fields */ }Expand description
A builder for AddHeaderAction.
Implementations§
source§impl AddHeaderActionBuilder
impl AddHeaderActionBuilder
sourcepub fn header_name(self, input: impl Into<String>) -> Self
pub fn header_name(self, input: impl Into<String>) -> Self
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
This field is required.sourcepub fn set_header_name(self, input: Option<String>) -> Self
pub fn set_header_name(self, input: Option<String>) -> Self
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
sourcepub fn get_header_name(&self) -> &Option<String>
pub fn get_header_name(&self) -> &Option<String>
The name of the header to add to an email. The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.
sourcepub fn header_value(self, input: impl Into<String>) -> Self
pub fn header_value(self, input: impl Into<String>) -> Self
The value of the header to add to the email.
This field is required.sourcepub fn set_header_value(self, input: Option<String>) -> Self
pub fn set_header_value(self, input: Option<String>) -> Self
The value of the header to add to the email.
sourcepub fn get_header_value(&self) -> &Option<String>
pub fn get_header_value(&self) -> &Option<String>
The value of the header to add to the email.
sourcepub fn build(self) -> Result<AddHeaderAction, BuildError>
pub fn build(self) -> Result<AddHeaderAction, BuildError>
Consumes the builder and constructs a AddHeaderAction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AddHeaderActionBuilder
impl Clone for AddHeaderActionBuilder
source§fn clone(&self) -> AddHeaderActionBuilder
fn clone(&self) -> AddHeaderActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AddHeaderActionBuilder
impl Debug for AddHeaderActionBuilder
source§impl Default for AddHeaderActionBuilder
impl Default for AddHeaderActionBuilder
source§fn default() -> AddHeaderActionBuilder
fn default() -> AddHeaderActionBuilder
source§impl PartialEq for AddHeaderActionBuilder
impl PartialEq for AddHeaderActionBuilder
source§fn eq(&self, other: &AddHeaderActionBuilder) -> bool
fn eq(&self, other: &AddHeaderActionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AddHeaderActionBuilder
Auto Trait Implementations§
impl Freeze for AddHeaderActionBuilder
impl RefUnwindSafe for AddHeaderActionBuilder
impl Send for AddHeaderActionBuilder
impl Sync for AddHeaderActionBuilder
impl Unpin for AddHeaderActionBuilder
impl UnwindSafe for AddHeaderActionBuilder
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