Class CfnClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dsql.CfnClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterMixinProps>
- Enclosing interface:
CfnClusterMixinProps
@Stability(Stable)
public static final class CfnClusterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterMixinProps>
A builder for
CfnClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnClusterMixinProps.getDeletionProtectionEnabled()deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnClusterMixinProps.getDeletionProtectionEnabled()kmsEncryptionKey(String kmsEncryptionKey) Sets the value ofCfnClusterMixinProps.getKmsEncryptionKey()multiRegionProperties(CfnClusterPropsMixin.MultiRegionPropertiesProperty multiRegionProperties) Sets the value ofCfnClusterMixinProps.getMultiRegionProperties()multiRegionProperties(IResolvable multiRegionProperties) Sets the value ofCfnClusterMixinProps.getMultiRegionProperties()policyDocument(String policyDocument) Sets the value ofCfnClusterMixinProps.getPolicyDocument()Sets the value ofCfnClusterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionProtectionEnabled
@Stability(Stable) public CfnClusterMixinProps.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnClusterMixinProps.getDeletionProtectionEnabled()- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled on this cluster.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnClusterMixinProps.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnClusterMixinProps.getDeletionProtectionEnabled()- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled on this cluster.- Returns:
this
-
kmsEncryptionKey
Sets the value ofCfnClusterMixinProps.getKmsEncryptionKey()- Parameters:
kmsEncryptionKey- The KMS key that encrypts data on the cluster.- Returns:
this
-
multiRegionProperties
@Stability(Stable) public CfnClusterMixinProps.Builder multiRegionProperties(IResolvable multiRegionProperties) Sets the value ofCfnClusterMixinProps.getMultiRegionProperties()- Parameters:
multiRegionProperties- Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.- Returns:
this
-
multiRegionProperties
@Stability(Stable) public CfnClusterMixinProps.Builder multiRegionProperties(CfnClusterPropsMixin.MultiRegionPropertiesProperty multiRegionProperties) Sets the value ofCfnClusterMixinProps.getMultiRegionProperties()- Parameters:
multiRegionProperties- Defines the structure for multi-Region cluster configurations, containing the witness Region and peered cluster settings.- Returns:
this
-
policyDocument
Sets the value ofCfnClusterMixinProps.getPolicyDocument()- Parameters:
policyDocument- A resource-based policy document in JSON format. Length constraints: Minimum length of 1. Maximum length of 20480 characters (approximately 20KB).- Returns:
this
-
tags
Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- A map of key and value pairs this cluster is tagged with.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterMixinProps>- Returns:
- a new instance of
CfnClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-