Class CfnBroker.EncryptionOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amazonmq.CfnBroker.EncryptionOptionsProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnBroker.EncryptionOptionsProperty>
- Enclosing interface:
- CfnBroker.EncryptionOptionsProperty
@Stability(Stable)
public static final class CfnBroker.EncryptionOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBroker.EncryptionOptionsProperty>
A builder for 
CfnBroker.EncryptionOptionsProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBroker.EncryptionOptionsProperty.getKmsKeyId()useAwsOwnedKey(Boolean useAwsOwnedKey) Sets the value ofCfnBroker.EncryptionOptionsProperty.getUseAwsOwnedKey()useAwsOwnedKey(IResolvable useAwsOwnedKey) Sets the value ofCfnBroker.EncryptionOptionsProperty.getUseAwsOwnedKey()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
useAwsOwnedKey@Stability(Stable) public CfnBroker.EncryptionOptionsProperty.Builder useAwsOwnedKey(Boolean useAwsOwnedKey) Sets the value ofCfnBroker.EncryptionOptionsProperty.getUseAwsOwnedKey()- Parameters:
- useAwsOwnedKey- Enables the use of an AWS owned CMK using AWS KMS (KMS). This parameter is required. Set to- trueby default, if no value is provided, for example, for RabbitMQ brokers.
- Returns:
- this
 
- 
useAwsOwnedKey@Stability(Stable) public CfnBroker.EncryptionOptionsProperty.Builder useAwsOwnedKey(IResolvable useAwsOwnedKey) Sets the value ofCfnBroker.EncryptionOptionsProperty.getUseAwsOwnedKey()- Parameters:
- useAwsOwnedKey- Enables the use of an AWS owned CMK using AWS KMS (KMS). This parameter is required. Set to- trueby default, if no value is provided, for example, for RabbitMQ brokers.
- Returns:
- this
 
- 
kmsKeyIdSets the value ofCfnBroker.EncryptionOptionsProperty.getKmsKeyId()- Parameters:
- kmsKeyId- The customer master key (CMK) to use for the A AWS 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.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnBroker.EncryptionOptionsProperty>
- Returns:
- a new instance of CfnBroker.EncryptionOptionsProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-