Class CfnSafetyRulePropsMixin.RuleConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53recoverycontrol.CfnSafetyRulePropsMixin.RuleConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.RuleConfigProperty>
- Enclosing interface:
CfnSafetyRulePropsMixin.RuleConfigProperty
@Stability(Stable)
public static final class CfnSafetyRulePropsMixin.RuleConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSafetyRulePropsMixin.RuleConfigProperty>
A builder for
CfnSafetyRulePropsMixin.RuleConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getInverted()inverted(IResolvable inverted) Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getInverted()Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getThreshold()Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inverted
@Stability(Stable) public CfnSafetyRulePropsMixin.RuleConfigProperty.Builder inverted(Boolean inverted) Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getInverted()- Parameters:
inverted- Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.- Returns:
this
-
inverted
@Stability(Stable) public CfnSafetyRulePropsMixin.RuleConfigProperty.Builder inverted(IResolvable inverted) Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getInverted()- Parameters:
inverted- Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.- Returns:
this
-
threshold
@Stability(Stable) public CfnSafetyRulePropsMixin.RuleConfigProperty.Builder threshold(Number threshold) Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getThreshold()- Parameters:
threshold- The value of N, when you specify anATLEASTrule type. That is,Thresholdis the number of controls that must be set when you specify anATLEASTtype.- Returns:
this
-
type
Sets the value ofCfnSafetyRulePropsMixin.RuleConfigProperty.getType()- Parameters:
type- A rule can be one of the following:ATLEAST,AND, orOR.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSafetyRulePropsMixin.RuleConfigProperty>- Returns:
- a new instance of
CfnSafetyRulePropsMixin.RuleConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-