Struct aws_sdk_macie2::types::builders::ServerSideEncryptionBuilder
source · #[non_exhaustive]pub struct ServerSideEncryptionBuilder { /* private fields */ }
Expand description
A builder for ServerSideEncryption
.
Implementations§
source§impl ServerSideEncryptionBuilder
impl ServerSideEncryptionBuilder
sourcepub fn encryption_type(self, input: EncryptionType) -> Self
pub fn encryption_type(self, input: EncryptionType) -> Self
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
sourcepub fn set_encryption_type(self, input: Option<EncryptionType>) -> Self
pub fn set_encryption_type(self, input: Option<EncryptionType>) -> Self
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
sourcepub fn get_encryption_type(&self) -> &Option<EncryptionType>
pub fn get_encryption_type(&self) -> &Option<EncryptionType>
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
sourcepub fn kms_master_key_id(self, input: impl Into<String>) -> Self
pub fn kms_master_key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
sourcepub fn set_kms_master_key_id(self, input: Option<String>) -> Self
pub fn set_kms_master_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
sourcepub fn get_kms_master_key_id(&self) -> &Option<String>
pub fn get_kms_master_key_id(&self) -> &Option<String>
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
sourcepub fn build(self) -> ServerSideEncryption
pub fn build(self) -> ServerSideEncryption
Consumes the builder and constructs a ServerSideEncryption
.
Trait Implementations§
source§impl Clone for ServerSideEncryptionBuilder
impl Clone for ServerSideEncryptionBuilder
source§fn clone(&self) -> ServerSideEncryptionBuilder
fn clone(&self) -> ServerSideEncryptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerSideEncryptionBuilder
impl Debug for ServerSideEncryptionBuilder
source§impl Default for ServerSideEncryptionBuilder
impl Default for ServerSideEncryptionBuilder
source§fn default() -> ServerSideEncryptionBuilder
fn default() -> ServerSideEncryptionBuilder
source§impl PartialEq<ServerSideEncryptionBuilder> for ServerSideEncryptionBuilder
impl PartialEq<ServerSideEncryptionBuilder> for ServerSideEncryptionBuilder
source§fn eq(&self, other: &ServerSideEncryptionBuilder) -> bool
fn eq(&self, other: &ServerSideEncryptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.