Struct aws_sdk_s3control::operation::put_bucket_lifecycle_configuration::builders::PutBucketLifecycleConfigurationInputBuilder
source · #[non_exhaustive]pub struct PutBucketLifecycleConfigurationInputBuilder { /* private fields */ }Expand description
A builder for PutBucketLifecycleConfigurationInput.
Implementations§
source§impl PutBucketLifecycleConfigurationInputBuilder
impl PutBucketLifecycleConfigurationInputBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the Outposts bucket.
This field is required.sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the Outposts bucket.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the Outposts bucket.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the bucket for which to set the configuration.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the bucket for which to set the configuration.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket for which to set the configuration.
sourcepub fn lifecycle_configuration(self, input: LifecycleConfiguration) -> Self
pub fn lifecycle_configuration(self, input: LifecycleConfiguration) -> Self
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn set_lifecycle_configuration(
self,
input: Option<LifecycleConfiguration>
) -> Self
pub fn set_lifecycle_configuration( self, input: Option<LifecycleConfiguration> ) -> Self
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn get_lifecycle_configuration(&self) -> &Option<LifecycleConfiguration>
pub fn get_lifecycle_configuration(&self) -> &Option<LifecycleConfiguration>
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn build(self) -> Result<PutBucketLifecycleConfigurationInput, BuildError>
pub fn build(self) -> Result<PutBucketLifecycleConfigurationInput, BuildError>
Consumes the builder and constructs a PutBucketLifecycleConfigurationInput.
source§impl PutBucketLifecycleConfigurationInputBuilder
impl PutBucketLifecycleConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutBucketLifecycleConfigurationOutput, SdkError<PutBucketLifecycleConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutBucketLifecycleConfigurationOutput, SdkError<PutBucketLifecycleConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutBucketLifecycleConfigurationInputBuilder
impl Clone for PutBucketLifecycleConfigurationInputBuilder
source§fn clone(&self) -> PutBucketLifecycleConfigurationInputBuilder
fn clone(&self) -> PutBucketLifecycleConfigurationInputBuilder
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 PutBucketLifecycleConfigurationInputBuilder
impl Default for PutBucketLifecycleConfigurationInputBuilder
source§fn default() -> PutBucketLifecycleConfigurationInputBuilder
fn default() -> PutBucketLifecycleConfigurationInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PutBucketLifecycleConfigurationInputBuilder
impl PartialEq for PutBucketLifecycleConfigurationInputBuilder
source§fn eq(&self, other: &PutBucketLifecycleConfigurationInputBuilder) -> bool
fn eq(&self, other: &PutBucketLifecycleConfigurationInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PutBucketLifecycleConfigurationInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PutBucketLifecycleConfigurationInputBuilder
impl Send for PutBucketLifecycleConfigurationInputBuilder
impl Sync for PutBucketLifecycleConfigurationInputBuilder
impl Unpin for PutBucketLifecycleConfigurationInputBuilder
impl UnwindSafe for PutBucketLifecycleConfigurationInputBuilder
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> 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.