#[non_exhaustive]pub struct BucketLifecycleConfigurationBuilder { /* private fields */ }
Expand description
A builder for BucketLifecycleConfiguration
.
Implementations§
source§impl BucketLifecycleConfigurationBuilder
impl BucketLifecycleConfigurationBuilder
sourcepub fn rules(self, input: LifecycleRule) -> Self
pub fn rules(self, input: LifecycleRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
A lifecycle rule for individual objects in an Amazon S3 bucket.
sourcepub fn set_rules(self, input: Option<Vec<LifecycleRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<LifecycleRule>>) -> Self
A lifecycle rule for individual objects in an Amazon S3 bucket.
sourcepub fn get_rules(&self) -> &Option<Vec<LifecycleRule>>
pub fn get_rules(&self) -> &Option<Vec<LifecycleRule>>
A lifecycle rule for individual objects in an Amazon S3 bucket.
sourcepub fn build(self) -> Result<BucketLifecycleConfiguration, BuildError>
pub fn build(self) -> Result<BucketLifecycleConfiguration, BuildError>
Consumes the builder and constructs a BucketLifecycleConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BucketLifecycleConfigurationBuilder
impl Clone for BucketLifecycleConfigurationBuilder
source§fn clone(&self) -> BucketLifecycleConfigurationBuilder
fn clone(&self) -> BucketLifecycleConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for BucketLifecycleConfigurationBuilder
impl Default for BucketLifecycleConfigurationBuilder
source§fn default() -> BucketLifecycleConfigurationBuilder
fn default() -> BucketLifecycleConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BucketLifecycleConfigurationBuilder
impl PartialEq for BucketLifecycleConfigurationBuilder
source§fn eq(&self, other: &BucketLifecycleConfigurationBuilder) -> bool
fn eq(&self, other: &BucketLifecycleConfigurationBuilder) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for BucketLifecycleConfigurationBuilder
Auto Trait Implementations§
impl Freeze for BucketLifecycleConfigurationBuilder
impl RefUnwindSafe for BucketLifecycleConfigurationBuilder
impl Send for BucketLifecycleConfigurationBuilder
impl Sync for BucketLifecycleConfigurationBuilder
impl Unpin for BucketLifecycleConfigurationBuilder
impl UnwindSafe for BucketLifecycleConfigurationBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
Creates a shared type from an unshared type.