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 ==
.