Package software.amazon.awscdk.core
Class CfnRuleProps.Builder
java.lang.Object
software.amazon.awscdk.core.CfnRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleProps>
- Enclosing interface:
CfnRuleProps
@Stability(Stable)
public static final class CfnRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleProps>
A builder for
CfnRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassertions
(List<? extends CfnRuleAssertion> assertions) Sets the value ofCfnRuleProps.getAssertions()
build()
Builds the configured instance.ruleCondition
(ICfnConditionExpression ruleCondition) Sets the value ofCfnRuleProps.getRuleCondition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assertions
@Stability(Stable) public CfnRuleProps.Builder assertions(List<? extends CfnRuleAssertion> assertions) Sets the value ofCfnRuleProps.getAssertions()
- Parameters:
assertions
- Assertions which define the rule.- Returns:
this
-
ruleCondition
Sets the value ofCfnRuleProps.getRuleCondition()
- Parameters:
ruleCondition
- If the rule condition evaluates to false, the rule doesn't take effect. If the function in the rule condition evaluates to true, expressions in each assert are evaluated and applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleProps>
- Returns:
- a new instance of
CfnRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-