public static final class CfnRuleProps.Builder
extends java.lang.Object
CfnRuleProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRuleProps.Builder |
assertions(java.util.List<? extends CfnRuleAssertion> assertions)
Sets the value of
CfnRuleProps.getAssertions() |
CfnRuleProps |
build()
Builds the configured instance.
|
CfnRuleProps.Builder |
ruleCondition(ICfnConditionExpression ruleCondition)
Sets the value of
CfnRuleProps.getRuleCondition() |
public CfnRuleProps.Builder assertions(java.util.List<? extends CfnRuleAssertion> assertions)
CfnRuleProps.getAssertions()
assertions
- Assertions which define the rule.this
public CfnRuleProps.Builder ruleCondition(ICfnConditionExpression ruleCondition)
CfnRuleProps.getRuleCondition()
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.this
public CfnRuleProps build()
CfnRuleProps
java.lang.NullPointerException
- if any required attribute was not provided