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