Struct aws_sdk_macie2::model::server_side_encryption::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ServerSideEncryption
.
Implementations§
source§impl Builder
impl Builder
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 is disabled 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 is disabled 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 build(self) -> ServerSideEncryption
pub fn build(self) -> ServerSideEncryption
Consumes the builder and constructs a ServerSideEncryption
.