Struct aws_sdk_ses::types::builders::MessageTagBuilder
source · #[non_exhaustive]pub struct MessageTagBuilder { /* private fields */ }
Expand description
A builder for MessageTag
.
Implementations§
source§impl MessageTagBuilder
impl MessageTagBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the tag. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the tag. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the tag. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value of the tag. The value must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value of the tag. The value must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
The value of the tag. The value must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 256 characters or fewer.
sourcepub fn build(self) -> Result<MessageTag, BuildError>
pub fn build(self) -> Result<MessageTag, BuildError>
Consumes the builder and constructs a MessageTag
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MessageTagBuilder
impl Clone for MessageTagBuilder
source§fn clone(&self) -> MessageTagBuilder
fn clone(&self) -> MessageTagBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageTagBuilder
impl Debug for MessageTagBuilder
source§impl Default for MessageTagBuilder
impl Default for MessageTagBuilder
source§fn default() -> MessageTagBuilder
fn default() -> MessageTagBuilder
source§impl PartialEq for MessageTagBuilder
impl PartialEq for MessageTagBuilder
source§fn eq(&self, other: &MessageTagBuilder) -> bool
fn eq(&self, other: &MessageTagBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.