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 ==
.impl StructuralPartialEq for KeyNameConstraintBuilder
Auto Trait Implementations§
impl Freeze for KeyNameConstraintBuilder
impl RefUnwindSafe for KeyNameConstraintBuilder
impl Send for KeyNameConstraintBuilder
impl Sync for KeyNameConstraintBuilder
impl Unpin for KeyNameConstraintBuilder
impl UnwindSafe for KeyNameConstraintBuilder
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