Class CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.EncryptionConfigurationProperty>
- Enclosing interface:
CfnLifecyclePolicy.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.EncryptionConfigurationProperty>
A builder for
CfnLifecyclePolicy.EncryptionConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getCmkArn()
Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getEncrypted()
encrypted
(IResolvable encrypted) Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getEncrypted()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encrypted
@Stability(Stable) public CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder encrypted(Boolean encrypted) Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getEncrypted()
- Parameters:
encrypted
- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. This parameter is required. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.- Returns:
this
-
encrypted
@Stability(Stable) public CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getEncrypted()
- Parameters:
encrypted
- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. This parameter is required. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.- Returns:
this
-
cmkArn
@Stability(Stable) public CfnLifecyclePolicy.EncryptionConfigurationProperty.Builder cmkArn(String cmkArn) Sets the value ofCfnLifecyclePolicy.EncryptionConfigurationProperty.getCmkArn()
- Parameters:
cmkArn
- The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.EncryptionConfigurationProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.EncryptionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-