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 ==
.impl StructuralPartialEq for EncryptionOptionsBuilder
Auto Trait Implementations§
impl Freeze for EncryptionOptionsBuilder
impl RefUnwindSafe for EncryptionOptionsBuilder
impl Send for EncryptionOptionsBuilder
impl Sync for EncryptionOptionsBuilder
impl Unpin for EncryptionOptionsBuilder
impl UnwindSafe for EncryptionOptionsBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more