Class CfnResiliencyPolicy.FailurePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy.FailurePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResiliencyPolicy.FailurePolicyProperty>
- Enclosing interface:
CfnResiliencyPolicy.FailurePolicyProperty
@Stability(Stable)
public static final class CfnResiliencyPolicy.FailurePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResiliencyPolicy.FailurePolicyProperty>
A builder for
CfnResiliencyPolicy.FailurePolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResiliencyPolicy.FailurePolicyProperty.getRpoInSecs()
Sets the value ofCfnResiliencyPolicy.FailurePolicyProperty.getRtoInSecs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rpoInSecs
@Stability(Stable) public CfnResiliencyPolicy.FailurePolicyProperty.Builder rpoInSecs(Number rpoInSecs) Sets the value ofCfnResiliencyPolicy.FailurePolicyProperty.getRpoInSecs()
- Parameters:
rpoInSecs
- The Recovery Point Objective (RPO), in seconds. This parameter is required.- Returns:
this
-
rtoInSecs
@Stability(Stable) public CfnResiliencyPolicy.FailurePolicyProperty.Builder rtoInSecs(Number rtoInSecs) Sets the value ofCfnResiliencyPolicy.FailurePolicyProperty.getRtoInSecs()
- Parameters:
rtoInSecs
- The Recovery Time Objective (RTO), in seconds. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResiliencyPolicy.FailurePolicyProperty>
- Returns:
- a new instance of
CfnResiliencyPolicy.FailurePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-