Struct aws_sdk_securityhub::types::builders::AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
source · #[non_exhaustive]pub struct AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder { /* private fields */ }Expand description
Implementations§
source§impl AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
sourcepub fn days(self, input: i32) -> Self
pub fn days(self, input: i32) -> Self
The number of days that you want to specify for the default retention period.
sourcepub fn set_days(self, input: Option<i32>) -> Self
pub fn set_days(self, input: Option<i32>) -> Self
The number of days that you want to specify for the default retention period.
sourcepub fn get_days(&self) -> &Option<i32>
pub fn get_days(&self) -> &Option<i32>
The number of days that you want to specify for the default retention period.
sourcepub fn mode(self, input: impl Into<String>) -> Self
pub fn mode(self, input: impl Into<String>) -> Self
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
sourcepub fn set_mode(self, input: Option<String>) -> Self
pub fn set_mode(self, input: Option<String>) -> Self
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
sourcepub fn get_mode(&self) -> &Option<String>
pub fn get_mode(&self) -> &Option<String>
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
sourcepub fn years(self, input: i32) -> Self
pub fn years(self, input: i32) -> Self
The number of years that you want to specify for the default retention period.
sourcepub fn set_years(self, input: Option<i32>) -> Self
pub fn set_years(self, input: Option<i32>) -> Self
The number of years that you want to specify for the default retention period.
sourcepub fn get_years(&self) -> &Option<i32>
pub fn get_years(&self) -> &Option<i32>
The number of years that you want to specify for the default retention period.
sourcepub fn build(
self,
) -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails
pub fn build( self, ) -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails
Consumes the builder and constructs a AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails.
Trait Implementations§
source§impl Clone for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl Clone for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
source§fn clone(
&self,
) -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
fn clone( &self, ) -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl Default for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
source§fn default() -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
fn default() -> AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
source§impl PartialEq for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl PartialEq for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
source§fn eq(
&self,
other: &AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder,
) -> bool
fn eq( &self, other: &AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder, ) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl RefUnwindSafe for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl Send for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl Sync for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl Unpin for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
impl UnwindSafe for AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetailsBuilder
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> 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)
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>
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