Class CfnDomain.EncryptionAtRestOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomain.EncryptionAtRestOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.EncryptionAtRestOptionsProperty>
- Enclosing interface:
CfnDomain.EncryptionAtRestOptionsProperty
@Stability(Stable)
public static final class CfnDomain.EncryptionAtRestOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.EncryptionAtRestOptionsProperty>
A builder for
CfnDomain.EncryptionAtRestOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getEnabled()
Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDomain.EncryptionAtRestOptionsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getEnabled()
- Parameters:
enabled
- Specifytrue
to enable encryption at rest.- Returns:
this
-
enabled
@Stability(Stable) public CfnDomain.EncryptionAtRestOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getEnabled()
- Parameters:
enabled
- Specifytrue
to enable encryption at rest.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnDomain.EncryptionAtRestOptionsProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The KMS key ID. Takes the form1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a
. Required if you enable encryption at rest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.EncryptionAtRestOptionsProperty>
- Returns:
- a new instance of
CfnDomain.EncryptionAtRestOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-