Struct aws_sdk_backup::types::builders::KeyValueBuilder
source · #[non_exhaustive]pub struct KeyValueBuilder { /* private fields */ }
Expand description
A builder for KeyValue
.
Implementations§
source§impl KeyValueBuilder
impl KeyValueBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?!\[aA\]{1}\[wW\]{1}\[sS\]{1}:)(\[\p{L}\p{Z}\p{N}_.:/=+\-@\]+)$
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?!\[aA\]{1}\[wW\]{1}\[sS\]{1}:)(\[\p{L}\p{Z}\p{N}_.:/=+\-@\]+)$
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?!\[aA\]{1}\[wW\]{1}\[sS\]{1}:)(\[\p{L}\p{Z}\p{N}_.:/=+\-@\]+)$
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^(\[\p{L}\p{Z}\p{N}_.:/=+\-@\]*)$
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^(\[\p{L}\p{Z}\p{N}_.:/=+\-@\]*)$
Trait Implementations§
source§impl Clone for KeyValueBuilder
impl Clone for KeyValueBuilder
source§fn clone(&self) -> KeyValueBuilder
fn clone(&self) -> KeyValueBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyValueBuilder
impl Debug for KeyValueBuilder
source§impl Default for KeyValueBuilder
impl Default for KeyValueBuilder
source§fn default() -> KeyValueBuilder
fn default() -> KeyValueBuilder
source§impl PartialEq for KeyValueBuilder
impl PartialEq for KeyValueBuilder
impl StructuralPartialEq for KeyValueBuilder
Auto Trait Implementations§
impl Freeze for KeyValueBuilder
impl RefUnwindSafe for KeyValueBuilder
impl Send for KeyValueBuilder
impl Sync for KeyValueBuilder
impl Unpin for KeyValueBuilder
impl UnwindSafe for KeyValueBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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