#[non_exhaustive]pub struct AwsS3BucketObjectLockConfigurationBuilder { /* private fields */ }
Expand description
A builder for AwsS3BucketObjectLockConfiguration
.
Implementations§
source§impl AwsS3BucketObjectLockConfigurationBuilder
impl AwsS3BucketObjectLockConfigurationBuilder
sourcepub fn object_lock_enabled(self, input: impl Into<String>) -> Self
pub fn object_lock_enabled(self, input: impl Into<String>) -> Self
Indicates whether the bucket has an Object Lock configuration enabled.
sourcepub fn set_object_lock_enabled(self, input: Option<String>) -> Self
pub fn set_object_lock_enabled(self, input: Option<String>) -> Self
Indicates whether the bucket has an Object Lock configuration enabled.
sourcepub fn get_object_lock_enabled(&self) -> &Option<String>
pub fn get_object_lock_enabled(&self) -> &Option<String>
Indicates whether the bucket has an Object Lock configuration enabled.
sourcepub fn rule(self, input: AwsS3BucketObjectLockConfigurationRuleDetails) -> Self
pub fn rule(self, input: AwsS3BucketObjectLockConfigurationRuleDetails) -> Self
Specifies the Object Lock rule for the specified object.
sourcepub fn set_rule(
self,
input: Option<AwsS3BucketObjectLockConfigurationRuleDetails>
) -> Self
pub fn set_rule( self, input: Option<AwsS3BucketObjectLockConfigurationRuleDetails> ) -> Self
Specifies the Object Lock rule for the specified object.
sourcepub fn get_rule(&self) -> &Option<AwsS3BucketObjectLockConfigurationRuleDetails>
pub fn get_rule(&self) -> &Option<AwsS3BucketObjectLockConfigurationRuleDetails>
Specifies the Object Lock rule for the specified object.
sourcepub fn build(self) -> AwsS3BucketObjectLockConfiguration
pub fn build(self) -> AwsS3BucketObjectLockConfiguration
Consumes the builder and constructs a AwsS3BucketObjectLockConfiguration
.
Trait Implementations§
source§impl Clone for AwsS3BucketObjectLockConfigurationBuilder
impl Clone for AwsS3BucketObjectLockConfigurationBuilder
source§fn clone(&self) -> AwsS3BucketObjectLockConfigurationBuilder
fn clone(&self) -> AwsS3BucketObjectLockConfigurationBuilder
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 AwsS3BucketObjectLockConfigurationBuilder
impl Default for AwsS3BucketObjectLockConfigurationBuilder
source§fn default() -> AwsS3BucketObjectLockConfigurationBuilder
fn default() -> AwsS3BucketObjectLockConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AwsS3BucketObjectLockConfigurationBuilder
impl PartialEq for AwsS3BucketObjectLockConfigurationBuilder
source§fn eq(&self, other: &AwsS3BucketObjectLockConfigurationBuilder) -> bool
fn eq(&self, other: &AwsS3BucketObjectLockConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsS3BucketObjectLockConfigurationBuilder
Auto Trait Implementations§
impl Freeze for AwsS3BucketObjectLockConfigurationBuilder
impl RefUnwindSafe for AwsS3BucketObjectLockConfigurationBuilder
impl Send for AwsS3BucketObjectLockConfigurationBuilder
impl Sync for AwsS3BucketObjectLockConfigurationBuilder
impl Unpin for AwsS3BucketObjectLockConfigurationBuilder
impl UnwindSafe for AwsS3BucketObjectLockConfigurationBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.