Class CfnClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudhsm.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 TypeMethodDescriptionbackupRetentionPolicy(IResolvable backupRetentionPolicy) Sets the value ofCfnClusterProps.getBackupRetentionPolicy()backupRetentionPolicy(CfnCluster.BackupRetentionPolicyProperty backupRetentionPolicy) Sets the value ofCfnClusterProps.getBackupRetentionPolicy()build()Builds the configured instance.Sets the value ofCfnClusterProps.getHsmType()Sets the value ofCfnClusterProps.getMode()networkType(String networkType) Sets the value ofCfnClusterProps.getNetworkType()Sets the value ofCfnClusterProps.getSubnetIds()tags(List<? extends CfnCluster.TagsItemsProperty> tags) Sets the value ofCfnClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hsmType
Sets the value ofCfnClusterProps.getHsmType()- Parameters:
hsmType- The type of HSM to use in the cluster. This parameter is required.- Returns:
this
-
backupRetentionPolicy
@Stability(Stable) public CfnClusterProps.Builder backupRetentionPolicy(IResolvable backupRetentionPolicy) Sets the value ofCfnClusterProps.getBackupRetentionPolicy()- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups.- Returns:
this
-
backupRetentionPolicy
@Stability(Stable) public CfnClusterProps.Builder backupRetentionPolicy(CfnCluster.BackupRetentionPolicyProperty backupRetentionPolicy) Sets the value ofCfnClusterProps.getBackupRetentionPolicy()- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups.- Returns:
this
-
mode
Sets the value ofCfnClusterProps.getMode()- Parameters:
mode- The mode to use in the cluster.- Returns:
this
-
networkType
Sets the value ofCfnClusterProps.getNetworkType()- Parameters:
networkType- The NetworkType to create a cluster with.- Returns:
this
-
subnetIds
Sets the value ofCfnClusterProps.getSubnetIds()- Parameters:
subnetIds- The identifiers (IDs) of the subnets where the cluster is created. You must specify at least one subnet.- Returns:
this
-
tags
@Stability(Stable) public CfnClusterProps.Builder tags(List<? extends CfnCluster.TagsItemsProperty> tags) Sets the value ofCfnClusterProps.getTags()- Parameters:
tags- Tags to apply to the CloudHSM cluster.- 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
-