Struct aws_sdk_opsworkscm::types::builders::TagBuilder
source · #[non_exhaustive]pub struct TagBuilder { /* private fields */ }
Expand description
A builder for Tag
.
Implementations§
source§impl TagBuilder
impl TagBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
A tag key, such as Stage
or Name
. A tag key cannot be empty. The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
A tag key, such as Stage
or Name
. A tag key cannot be empty. The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
A tag key, such as Stage
or Name
. A tag key cannot be empty. The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
An optional tag value, such as Production
or test-owcm-server
. The value can be a maximum of 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
An optional tag value, such as Production
or test-owcm-server
. The value can be a maximum of 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /
Trait Implementations§
source§impl Clone for TagBuilder
impl Clone for TagBuilder
source§fn clone(&self) -> TagBuilder
fn clone(&self) -> TagBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TagBuilder
impl Debug for TagBuilder
source§impl Default for TagBuilder
impl Default for TagBuilder
source§fn default() -> TagBuilder
fn default() -> TagBuilder
source§impl PartialEq for TagBuilder
impl PartialEq for TagBuilder
source§fn eq(&self, other: &TagBuilder) -> bool
fn eq(&self, other: &TagBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TagBuilder
Auto Trait Implementations§
impl Freeze for TagBuilder
impl RefUnwindSafe for TagBuilder
impl Send for TagBuilder
impl Sync for TagBuilder
impl Unpin for TagBuilder
impl UnwindSafe for TagBuilder
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