Class CfnDomain.EncryptionAtRestOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.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
Constructors -
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- Specifytrueto enable encryption at rest. Required if you enable fine-grained access control in AdvancedSecurityOptionsInput .- Returns:
this
-
enabled
@Stability(Stable) public CfnDomain.EncryptionAtRestOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDomain.EncryptionAtRestOptionsProperty.getEnabled()- Parameters:
enabled- Specifytrueto enable encryption at rest. Required if you enable fine-grained access control in AdvancedSecurityOptionsInput .- 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. You can also usekeyAliasas a value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomain.EncryptionAtRestOptionsProperty>- Returns:
- a new instance of
CfnDomain.EncryptionAtRestOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-