Struct aws_sdk_mq::types::builders::EncryptionOptionsBuilder
source · #[non_exhaustive]pub struct EncryptionOptionsBuilder { /* private fields */ }
Expand description
A builder for EncryptionOptions
.
Implementations§
source§impl EncryptionOptionsBuilder
impl EncryptionOptionsBuilder
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
sourcepub fn use_aws_owned_key(self, input: bool) -> Self
pub fn use_aws_owned_key(self, input: bool) -> Self
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
This field is required.sourcepub fn set_use_aws_owned_key(self, input: Option<bool>) -> Self
pub fn set_use_aws_owned_key(self, input: Option<bool>) -> Self
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
sourcepub fn get_use_aws_owned_key(&self) -> &Option<bool>
pub fn get_use_aws_owned_key(&self) -> &Option<bool>
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
sourcepub fn build(self) -> EncryptionOptions
pub fn build(self) -> EncryptionOptions
Consumes the builder and constructs a EncryptionOptions
.
Trait Implementations§
source§impl Clone for EncryptionOptionsBuilder
impl Clone for EncryptionOptionsBuilder
source§fn clone(&self) -> EncryptionOptionsBuilder
fn clone(&self) -> EncryptionOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptionOptionsBuilder
impl Debug for EncryptionOptionsBuilder
source§impl Default for EncryptionOptionsBuilder
impl Default for EncryptionOptionsBuilder
source§fn default() -> EncryptionOptionsBuilder
fn default() -> EncryptionOptionsBuilder
source§impl PartialEq for EncryptionOptionsBuilder
impl PartialEq for EncryptionOptionsBuilder
source§fn eq(&self, other: &EncryptionOptionsBuilder) -> bool
fn eq(&self, other: &EncryptionOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.