Class CfnCollection.EncryptionConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnCollection.EncryptionConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollection.EncryptionConfigProperty>
- Enclosing interface:
CfnCollection.EncryptionConfigProperty
@Stability(Stable)
public static final class CfnCollection.EncryptionConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollection.EncryptionConfigProperty>
A builder for
CfnCollection.EncryptionConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsOwnedKey(Boolean awsOwnedKey) Sets the value ofCfnCollection.EncryptionConfigProperty.getAwsOwnedKey()awsOwnedKey(IResolvable awsOwnedKey) Sets the value ofCfnCollection.EncryptionConfigProperty.getAwsOwnedKey()build()Builds the configured instance.Sets the value ofCfnCollection.EncryptionConfigProperty.getKmsKeyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsOwnedKey
@Stability(Stable) public CfnCollection.EncryptionConfigProperty.Builder awsOwnedKey(Boolean awsOwnedKey) Sets the value ofCfnCollection.EncryptionConfigProperty.getAwsOwnedKey()- Parameters:
awsOwnedKey- The configuration to encrypt the collection with AWS owned key.- Returns:
this
-
awsOwnedKey
@Stability(Stable) public CfnCollection.EncryptionConfigProperty.Builder awsOwnedKey(IResolvable awsOwnedKey) Sets the value ofCfnCollection.EncryptionConfigProperty.getAwsOwnedKey()- Parameters:
awsOwnedKey- The configuration to encrypt the collection with AWS owned key.- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnCollection.EncryptionConfigProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnCollection.EncryptionConfigProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the KMS key to encrypt the collection with.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCollection.EncryptionConfigProperty>- Returns:
- a new instance of
CfnCollection.EncryptionConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-