Class CfnPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehubv2.CfnPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyProps>
- Enclosing interface:
CfnPolicyProps
@Stability(Stable)
public static final class CfnPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyProps>
A builder for
CfnPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilitySlo(IResolvable availabilitySlo) Sets the value ofCfnPolicyProps.getAvailabilitySlo()availabilitySlo(CfnPolicy.AvailabilitySloProperty availabilitySlo) Sets the value ofCfnPolicyProps.getAvailabilitySlo()build()Builds the configured instance.dataRecovery(IResolvable dataRecovery) Sets the value ofCfnPolicyProps.getDataRecovery()dataRecovery(CfnPolicy.DataRecoveryTargetsProperty dataRecovery) Sets the value ofCfnPolicyProps.getDataRecovery()description(String description) Sets the value ofCfnPolicyProps.getDescription()Sets the value ofCfnPolicyProps.getKmsKeyId()multiAz(IResolvable multiAz) Sets the value ofCfnPolicyProps.getMultiAz()multiAz(CfnPolicy.MultiAzTargetsProperty multiAz) Sets the value ofCfnPolicyProps.getMultiAz()multiRegion(IResolvable multiRegion) Sets the value ofCfnPolicyProps.getMultiRegion()multiRegion(CfnPolicy.MultiRegionTargetsProperty multiRegion) Sets the value ofCfnPolicyProps.getMultiRegion()Sets the value ofCfnPolicyProps.getName()Sets the value ofCfnPolicyProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPolicyProps.getName()- Parameters:
name- The name of the policy. This parameter is required.- Returns:
this
-
availabilitySlo
Sets the value ofCfnPolicyProps.getAvailabilitySlo()- Parameters:
availabilitySlo- the value to be set.- Returns:
this
-
availabilitySlo
@Stability(Stable) public CfnPolicyProps.Builder availabilitySlo(CfnPolicy.AvailabilitySloProperty availabilitySlo) Sets the value ofCfnPolicyProps.getAvailabilitySlo()- Parameters:
availabilitySlo- the value to be set.- Returns:
this
-
dataRecovery
Sets the value ofCfnPolicyProps.getDataRecovery()- Parameters:
dataRecovery- the value to be set.- Returns:
this
-
dataRecovery
@Stability(Stable) public CfnPolicyProps.Builder dataRecovery(CfnPolicy.DataRecoveryTargetsProperty dataRecovery) Sets the value ofCfnPolicyProps.getDataRecovery()- Parameters:
dataRecovery- the value to be set.- Returns:
this
-
description
Sets the value ofCfnPolicyProps.getDescription()- Parameters:
description- The description of the policy.- Returns:
this
-
kmsKeyId
Sets the value ofCfnPolicyProps.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key ID for encrypting policy data.- Returns:
this
-
multiAz
Sets the value ofCfnPolicyProps.getMultiAz()- Parameters:
multiAz- the value to be set.- Returns:
this
-
multiAz
Sets the value ofCfnPolicyProps.getMultiAz()- Parameters:
multiAz- the value to be set.- Returns:
this
-
multiRegion
Sets the value ofCfnPolicyProps.getMultiRegion()- Parameters:
multiRegion- the value to be set.- Returns:
this
-
multiRegion
@Stability(Stable) public CfnPolicyProps.Builder multiRegion(CfnPolicy.MultiRegionTargetsProperty multiRegion) Sets the value ofCfnPolicyProps.getMultiRegion()- Parameters:
multiRegion- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnPolicyProps.getTags()- Parameters:
tags- Tags assigned to the policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyProps>- Returns:
- a new instance of
CfnPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-