#[non_exhaustive]pub struct LifecycleRuleFilterBuilder { /* private fields */ }
Expand description
A builder for LifecycleRuleFilter
.
Implementations§
source§impl LifecycleRuleFilterBuilder
impl LifecycleRuleFilterBuilder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
sourcepub fn and(self, input: LifecycleRuleAndOperator) -> Self
pub fn and(self, input: LifecycleRuleAndOperator) -> Self
The container for the AND
condition for the lifecycle rule.
sourcepub fn set_and(self, input: Option<LifecycleRuleAndOperator>) -> Self
pub fn set_and(self, input: Option<LifecycleRuleAndOperator>) -> Self
The container for the AND
condition for the lifecycle rule.
sourcepub fn get_and(&self) -> &Option<LifecycleRuleAndOperator>
pub fn get_and(&self) -> &Option<LifecycleRuleAndOperator>
The container for the AND
condition for the lifecycle rule.
sourcepub fn object_size_greater_than(self, input: i64) -> Self
pub fn object_size_greater_than(self, input: i64) -> Self
Minimum object size to which the rule applies.
sourcepub fn set_object_size_greater_than(self, input: Option<i64>) -> Self
pub fn set_object_size_greater_than(self, input: Option<i64>) -> Self
Minimum object size to which the rule applies.
sourcepub fn get_object_size_greater_than(&self) -> &Option<i64>
pub fn get_object_size_greater_than(&self) -> &Option<i64>
Minimum object size to which the rule applies.
sourcepub fn object_size_less_than(self, input: i64) -> Self
pub fn object_size_less_than(self, input: i64) -> Self
Maximum object size to which the rule applies.
sourcepub fn set_object_size_less_than(self, input: Option<i64>) -> Self
pub fn set_object_size_less_than(self, input: Option<i64>) -> Self
Maximum object size to which the rule applies.
sourcepub fn get_object_size_less_than(&self) -> &Option<i64>
pub fn get_object_size_less_than(&self) -> &Option<i64>
Maximum object size to which the rule applies.
sourcepub fn build(self) -> LifecycleRuleFilter
pub fn build(self) -> LifecycleRuleFilter
Consumes the builder and constructs a LifecycleRuleFilter
.
Trait Implementations§
source§impl Clone for LifecycleRuleFilterBuilder
impl Clone for LifecycleRuleFilterBuilder
source§fn clone(&self) -> LifecycleRuleFilterBuilder
fn clone(&self) -> LifecycleRuleFilterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecycleRuleFilterBuilder
impl Debug for LifecycleRuleFilterBuilder
source§impl Default for LifecycleRuleFilterBuilder
impl Default for LifecycleRuleFilterBuilder
source§fn default() -> LifecycleRuleFilterBuilder
fn default() -> LifecycleRuleFilterBuilder
source§impl PartialEq for LifecycleRuleFilterBuilder
impl PartialEq for LifecycleRuleFilterBuilder
source§fn eq(&self, other: &LifecycleRuleFilterBuilder) -> bool
fn eq(&self, other: &LifecycleRuleFilterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecycleRuleFilterBuilder
Auto Trait Implementations§
impl Freeze for LifecycleRuleFilterBuilder
impl RefUnwindSafe for LifecycleRuleFilterBuilder
impl Send for LifecycleRuleFilterBuilder
impl Sync for LifecycleRuleFilterBuilder
impl Unpin for LifecycleRuleFilterBuilder
impl UnwindSafe for LifecycleRuleFilterBuilder
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