#[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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)