Struct aws_sdk_s3control::types::builders::KeyNameConstraintBuilder
source · #[non_exhaustive]pub struct KeyNameConstraintBuilder { /* private fields */ }
Expand description
A builder for KeyNameConstraint
.
Implementations§
source§impl KeyNameConstraintBuilder
impl KeyNameConstraintBuilder
sourcepub fn match_any_prefix(self, input: impl Into<String>) -> Self
pub fn match_any_prefix(self, input: impl Into<String>) -> Self
Appends an item to match_any_prefix
.
To override the contents of this collection use set_match_any_prefix
.
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
sourcepub fn set_match_any_prefix(self, input: Option<Vec<String>>) -> Self
pub fn set_match_any_prefix(self, input: Option<Vec<String>>) -> Self
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
sourcepub fn get_match_any_prefix(&self) -> &Option<Vec<String>>
pub fn get_match_any_prefix(&self) -> &Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
sourcepub fn match_any_suffix(self, input: impl Into<String>) -> Self
pub fn match_any_suffix(self, input: impl Into<String>) -> Self
Appends an item to match_any_suffix
.
To override the contents of this collection use set_match_any_suffix
.
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
sourcepub fn set_match_any_suffix(self, input: Option<Vec<String>>) -> Self
pub fn set_match_any_suffix(self, input: Option<Vec<String>>) -> Self
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
sourcepub fn get_match_any_suffix(&self) -> &Option<Vec<String>>
pub fn get_match_any_suffix(&self) -> &Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
sourcepub fn match_any_substring(self, input: impl Into<String>) -> Self
pub fn match_any_substring(self, input: impl Into<String>) -> Self
Appends an item to match_any_substring
.
To override the contents of this collection use set_match_any_substring
.
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
sourcepub fn set_match_any_substring(self, input: Option<Vec<String>>) -> Self
pub fn set_match_any_substring(self, input: Option<Vec<String>>) -> Self
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
sourcepub fn get_match_any_substring(&self) -> &Option<Vec<String>>
pub fn get_match_any_substring(&self) -> &Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
sourcepub fn build(self) -> KeyNameConstraint
pub fn build(self) -> KeyNameConstraint
Consumes the builder and constructs a KeyNameConstraint
.
Trait Implementations§
source§impl Clone for KeyNameConstraintBuilder
impl Clone for KeyNameConstraintBuilder
source§fn clone(&self) -> KeyNameConstraintBuilder
fn clone(&self) -> KeyNameConstraintBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyNameConstraintBuilder
impl Debug for KeyNameConstraintBuilder
source§impl Default for KeyNameConstraintBuilder
impl Default for KeyNameConstraintBuilder
source§fn default() -> KeyNameConstraintBuilder
fn default() -> KeyNameConstraintBuilder
source§impl PartialEq for KeyNameConstraintBuilder
impl PartialEq for KeyNameConstraintBuilder
source§fn eq(&self, other: &KeyNameConstraintBuilder) -> bool
fn eq(&self, other: &KeyNameConstraintBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.