Class CfnTable.EncryptionSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnTable.EncryptionSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.EncryptionSpecificationProperty>
- Enclosing interface:
CfnTable.EncryptionSpecificationProperty
@Stability(Stable)
public static final class CfnTable.EncryptionSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.EncryptionSpecificationProperty>
A builder for
CfnTable.EncryptionSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionType(String encryptionType) Sets the value ofCfnTable.EncryptionSpecificationProperty.getEncryptionType()kmsKeyIdentifier(String kmsKeyIdentifier) Sets the value ofCfnTable.EncryptionSpecificationProperty.getKmsKeyIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionType
@Stability(Stable) public CfnTable.EncryptionSpecificationProperty.Builder encryptionType(String encryptionType) Sets the value ofCfnTable.EncryptionSpecificationProperty.getEncryptionType()- Parameters:
encryptionType- The encryption at rest options for the table. This parameter is required.- AWS owned key (default) -
AWS_OWNED_KMS_KEY - Customer managed key -
CUSTOMER_MANAGED_KMS_KEY
If you choose
CUSTOMER_MANAGED_KMS_KEY, akms_key_identifierin the format of a key ARN is required.Valid values:
CUSTOMER_MANAGED_KMS_KEY|AWS_OWNED_KMS_KEY.- AWS owned key (default) -
- Returns:
this
-
kmsKeyIdentifier
@Stability(Stable) public CfnTable.EncryptionSpecificationProperty.Builder kmsKeyIdentifier(String kmsKeyIdentifier) Sets the value ofCfnTable.EncryptionSpecificationProperty.getKmsKeyIdentifier()- Parameters:
kmsKeyIdentifier- Requires akms_key_identifierin the format of a key ARN.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.EncryptionSpecificationProperty>- Returns:
- a new instance of
CfnTable.EncryptionSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-