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
source§fn eq(&self, other: &KeyValueBuilder) -> bool
fn eq(&self, other: &KeyValueBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.