Class EncryptionAtRestOptions.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.EncryptionAtRestOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EncryptionAtRestOptions>
- Enclosing interface:
- EncryptionAtRestOptions
@Stability(Stable)
public static final class EncryptionAtRestOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EncryptionAtRestOptions>
A builder for
EncryptionAtRestOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEncryptionAtRestOptions.getEnabled()Sets the value ofEncryptionAtRestOptions.getKmsKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofEncryptionAtRestOptions.getEnabled()- Parameters:
enabled- Specify true to enable encryption at rest.- Returns:
this
-
kmsKey
Sets the value ofEncryptionAtRestOptions.getKmsKey()- Parameters:
kmsKey- Supply if using KMS key for encryption at rest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EncryptionAtRestOptions>- Returns:
- a new instance of
EncryptionAtRestOptions - Throws:
NullPointerException- if any required attribute was not provided
-