Struct aws_sdk_securityhub::types::builders::AwsS3BucketBucketVersioningConfigurationBuilder
source · #[non_exhaustive]pub struct AwsS3BucketBucketVersioningConfigurationBuilder { /* private fields */ }
Expand description
A builder for AwsS3BucketBucketVersioningConfiguration
.
Implementations§
source§impl AwsS3BucketBucketVersioningConfigurationBuilder
impl AwsS3BucketBucketVersioningConfigurationBuilder
sourcepub fn is_mfa_delete_enabled(self, input: bool) -> Self
pub fn is_mfa_delete_enabled(self, input: bool) -> Self
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
sourcepub fn set_is_mfa_delete_enabled(self, input: Option<bool>) -> Self
pub fn set_is_mfa_delete_enabled(self, input: Option<bool>) -> Self
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
sourcepub fn get_is_mfa_delete_enabled(&self) -> &Option<bool>
pub fn get_is_mfa_delete_enabled(&self) -> &Option<bool>
Specifies whether MFA delete is currently enabled in the S3 bucket versioning configuration. If the S3 bucket was never configured with MFA delete, then this attribute is not included.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The versioning status of the S3 bucket. Valid values are Enabled
or Suspended
.
sourcepub fn build(self) -> AwsS3BucketBucketVersioningConfiguration
pub fn build(self) -> AwsS3BucketBucketVersioningConfiguration
Consumes the builder and constructs a AwsS3BucketBucketVersioningConfiguration
.
Trait Implementations§
source§impl Clone for AwsS3BucketBucketVersioningConfigurationBuilder
impl Clone for AwsS3BucketBucketVersioningConfigurationBuilder
source§fn clone(&self) -> AwsS3BucketBucketVersioningConfigurationBuilder
fn clone(&self) -> AwsS3BucketBucketVersioningConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsS3BucketBucketVersioningConfigurationBuilder
impl Default for AwsS3BucketBucketVersioningConfigurationBuilder
source§fn default() -> AwsS3BucketBucketVersioningConfigurationBuilder
fn default() -> AwsS3BucketBucketVersioningConfigurationBuilder
source§impl PartialEq<AwsS3BucketBucketVersioningConfigurationBuilder> for AwsS3BucketBucketVersioningConfigurationBuilder
impl PartialEq<AwsS3BucketBucketVersioningConfigurationBuilder> for AwsS3BucketBucketVersioningConfigurationBuilder
source§fn eq(&self, other: &AwsS3BucketBucketVersioningConfigurationBuilder) -> bool
fn eq(&self, other: &AwsS3BucketBucketVersioningConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.