Struct aws_sdk_s3::types::builders::ServerSideEncryptionRuleBuilder
source · #[non_exhaustive]pub struct ServerSideEncryptionRuleBuilder { /* private fields */ }
Expand description
A builder for ServerSideEncryptionRule
.
Implementations§
source§impl ServerSideEncryptionRuleBuilder
impl ServerSideEncryptionRuleBuilder
sourcepub fn apply_server_side_encryption_by_default(
self,
input: ServerSideEncryptionByDefault,
) -> Self
pub fn apply_server_side_encryption_by_default( self, input: ServerSideEncryptionByDefault, ) -> Self
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
sourcepub fn set_apply_server_side_encryption_by_default(
self,
input: Option<ServerSideEncryptionByDefault>,
) -> Self
pub fn set_apply_server_side_encryption_by_default( self, input: Option<ServerSideEncryptionByDefault>, ) -> Self
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
sourcepub fn get_apply_server_side_encryption_by_default(
&self,
) -> &Option<ServerSideEncryptionByDefault>
pub fn get_apply_server_side_encryption_by_default( &self, ) -> &Option<ServerSideEncryptionByDefault>
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
sourcepub fn bucket_key_enabled(self, input: bool) -> Self
pub fn bucket_key_enabled(self, input: bool) -> Self
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled
element to true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
sourcepub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
pub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled
element to true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
sourcepub fn get_bucket_key_enabled(&self) -> &Option<bool>
pub fn get_bucket_key_enabled(&self) -> &Option<bool>
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled
element to true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
sourcepub fn build(self) -> ServerSideEncryptionRule
pub fn build(self) -> ServerSideEncryptionRule
Consumes the builder and constructs a ServerSideEncryptionRule
.
Trait Implementations§
source§impl Clone for ServerSideEncryptionRuleBuilder
impl Clone for ServerSideEncryptionRuleBuilder
source§fn clone(&self) -> ServerSideEncryptionRuleBuilder
fn clone(&self) -> ServerSideEncryptionRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServerSideEncryptionRuleBuilder
impl Default for ServerSideEncryptionRuleBuilder
source§fn default() -> ServerSideEncryptionRuleBuilder
fn default() -> ServerSideEncryptionRuleBuilder
source§impl PartialEq for ServerSideEncryptionRuleBuilder
impl PartialEq for ServerSideEncryptionRuleBuilder
source§fn eq(&self, other: &ServerSideEncryptionRuleBuilder) -> bool
fn eq(&self, other: &ServerSideEncryptionRuleBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ServerSideEncryptionRuleBuilder
Auto Trait Implementations§
impl Freeze for ServerSideEncryptionRuleBuilder
impl RefUnwindSafe for ServerSideEncryptionRuleBuilder
impl Send for ServerSideEncryptionRuleBuilder
impl Sync for ServerSideEncryptionRuleBuilder
impl Unpin for ServerSideEncryptionRuleBuilder
impl UnwindSafe for ServerSideEncryptionRuleBuilder
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
)