Class CfnClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.dsql.CfnClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterProps>
- Enclosing interface:
CfnClusterProps
@Stability(Stable)
public static final class CfnClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterProps>
A builder for
CfnClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnClusterProps.getDeletionProtectionEnabled()deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnClusterProps.getDeletionProtectionEnabled()kmsEncryptionKey(String kmsEncryptionKey) Sets the value ofCfnClusterProps.getKmsEncryptionKey()multiRegionProperties(IResolvable multiRegionProperties) Sets the value ofCfnClusterProps.getMultiRegionProperties()multiRegionProperties(CfnCluster.MultiRegionPropertiesProperty multiRegionProperties) Sets the value ofCfnClusterProps.getMultiRegionProperties()policyDocument(String policyDocument) Sets the value ofCfnClusterProps.getPolicyDocument()Sets the value ofCfnClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionProtectionEnabled
@Stability(Stable) public CfnClusterProps.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnClusterProps.getDeletionProtectionEnabled()- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled on this cluster.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnClusterProps.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnClusterProps.getDeletionProtectionEnabled()- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled on this cluster.- Returns:
this
-
kmsEncryptionKey
Sets the value ofCfnClusterProps.getKmsEncryptionKey()- Parameters:
kmsEncryptionKey- The KMS key that encrypts data on the cluster.- Returns:
this
-
multiRegionProperties
@Stability(Stable) public CfnClusterProps.Builder multiRegionProperties(IResolvable multiRegionProperties) Sets the value ofCfnClusterProps.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 CfnClusterProps.Builder multiRegionProperties(CfnCluster.MultiRegionPropertiesProperty multiRegionProperties) Sets the value ofCfnClusterProps.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 ofCfnClusterProps.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 ofCfnClusterProps.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<CfnClusterProps>- Returns:
- a new instance of
CfnClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-