Class CfnClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudhsm.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 TypeMethodDescriptionbackupRetentionPolicy(CfnClusterPropsMixin.BackupRetentionPolicyProperty backupRetentionPolicy) Sets the value ofCfnClusterMixinProps.getBackupRetentionPolicy()backupRetentionPolicy(IResolvable backupRetentionPolicy) Sets the value ofCfnClusterMixinProps.getBackupRetentionPolicy()build()Builds the configured instance.Sets the value ofCfnClusterMixinProps.getHsmType()Sets the value ofCfnClusterMixinProps.getMode()networkType(String networkType) Sets the value ofCfnClusterMixinProps.getNetworkType()Sets the value ofCfnClusterMixinProps.getSubnetIds()tags(List<? extends CfnClusterPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnClusterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupRetentionPolicy
@Stability(Stable) public CfnClusterMixinProps.Builder backupRetentionPolicy(IResolvable backupRetentionPolicy) Sets the value ofCfnClusterMixinProps.getBackupRetentionPolicy()- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups.- Returns:
this
-
backupRetentionPolicy
@Stability(Stable) public CfnClusterMixinProps.Builder backupRetentionPolicy(CfnClusterPropsMixin.BackupRetentionPolicyProperty backupRetentionPolicy) Sets the value ofCfnClusterMixinProps.getBackupRetentionPolicy()- Parameters:
backupRetentionPolicy- A policy that defines how the service retains backups.- Returns:
this
-
hsmType
Sets the value ofCfnClusterMixinProps.getHsmType()- Parameters:
hsmType- The type of HSM to use in the cluster.- Returns:
this
-
mode
Sets the value ofCfnClusterMixinProps.getMode()- Parameters:
mode- The mode to use in the cluster.- Returns:
this
-
networkType
Sets the value ofCfnClusterMixinProps.getNetworkType()- Parameters:
networkType- The NetworkType to create a cluster with.- Returns:
this
-
subnetIds
Sets the value ofCfnClusterMixinProps.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 CfnClusterMixinProps.Builder tags(List<? extends CfnClusterPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- Tags to apply to the CloudHSM cluster.- 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
-