Class CfnResiliencyPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResiliencyPolicyProps>
- Enclosing interface:
- CfnResiliencyPolicyProps
@Stability(Stable)
public static final class CfnResiliencyPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResiliencyPolicyProps>
A builder for
CfnResiliencyPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataLocationConstraint(String dataLocationConstraint) Sets the value ofCfnResiliencyPolicyProps.getDataLocationConstraint()Sets the value ofCfnResiliencyPolicyProps.getPolicy()policy(IResolvable policy) Sets the value ofCfnResiliencyPolicyProps.getPolicy()policyDescription(String policyDescription) Sets the value ofCfnResiliencyPolicyProps.getPolicyDescription()policyName(String policyName) Sets the value ofCfnResiliencyPolicyProps.getPolicyName()Sets the value ofCfnResiliencyPolicyProps.getTags()Sets the value ofCfnResiliencyPolicyProps.getTier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnResiliencyPolicyProps.getPolicy()- Parameters:
policy- The resiliency policy. This parameter is required.- Returns:
this
-
policy
@Stability(Stable) public CfnResiliencyPolicyProps.Builder policy(Map<String, ? extends Object> policy) Sets the value ofCfnResiliencyPolicyProps.getPolicy()- Parameters:
policy- The resiliency policy. This parameter is required.- Returns:
this
-
policyName
Sets the value ofCfnResiliencyPolicyProps.getPolicyName()- Parameters:
policyName- The name of the policy. This parameter is required.- Returns:
this
-
tier
Sets the value ofCfnResiliencyPolicyProps.getTier()- Parameters:
tier- The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical). This parameter is required.- Returns:
this
-
dataLocationConstraint
@Stability(Stable) public CfnResiliencyPolicyProps.Builder dataLocationConstraint(String dataLocationConstraint) Sets the value ofCfnResiliencyPolicyProps.getDataLocationConstraint()- Parameters:
dataLocationConstraint- Specifies a high-level geographical location constraint for where your resilience policy data can be stored.- Returns:
this
-
policyDescription
@Stability(Stable) public CfnResiliencyPolicyProps.Builder policyDescription(String policyDescription) Sets the value ofCfnResiliencyPolicyProps.getPolicyDescription()- Parameters:
policyDescription- The description for the policy.- Returns:
this
-
tags
Sets the value ofCfnResiliencyPolicyProps.getTags()- Parameters:
tags- The tags assigned to the resource. A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResiliencyPolicyProps>- Returns:
- a new instance of
CfnResiliencyPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-