Class CfnCluster.BackupRetentionPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudhsm.CfnCluster.BackupRetentionPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.BackupRetentionPolicyProperty>
- Enclosing interface:
CfnCluster.BackupRetentionPolicyProperty
@Stability(Stable)
public static final class CfnCluster.BackupRetentionPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.BackupRetentionPolicyProperty>
A builder for
CfnCluster.BackupRetentionPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.BackupRetentionPolicyProperty.getType()Sets the value ofCfnCluster.BackupRetentionPolicyProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnCluster.BackupRetentionPolicyProperty.getType()- Parameters:
type- The type of backup retention policy.- Returns:
this
-
value
Sets the value ofCfnCluster.BackupRetentionPolicyProperty.getValue()- Parameters:
value- Use a value between 7 - 379.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.BackupRetentionPolicyProperty>- Returns:
- a new instance of
CfnCluster.BackupRetentionPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-