Class CfnCaseRule.RequiredCaseRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cases.CfnCaseRule.RequiredCaseRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCaseRule.RequiredCaseRuleProperty>
- Enclosing interface:
CfnCaseRule.RequiredCaseRuleProperty
@Stability(Stable)
public static final class CfnCaseRule.RequiredCaseRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCaseRule.RequiredCaseRuleProperty>
A builder for
CfnCaseRule.RequiredCaseRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getConditions()conditions(IResolvable conditions) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getConditions()defaultValue(Boolean defaultValue) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getDefaultValue()defaultValue(IResolvable defaultValue) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getDefaultValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditions
@Stability(Stable) public CfnCaseRule.RequiredCaseRuleProperty.Builder conditions(IResolvable conditions) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getConditions()- Parameters:
conditions- List of conditions for the required rule;. This parameter is required. the first condition to evaluate to true dictates the value of the rule.- Returns:
this
-
conditions
@Stability(Stable) public CfnCaseRule.RequiredCaseRuleProperty.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getConditions()- Parameters:
conditions- List of conditions for the required rule;. This parameter is required. the first condition to evaluate to true dictates the value of the rule.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnCaseRule.RequiredCaseRuleProperty.Builder defaultValue(Boolean defaultValue) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getDefaultValue()- Parameters:
defaultValue- The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true. This parameter is required.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnCaseRule.RequiredCaseRuleProperty.Builder defaultValue(IResolvable defaultValue) Sets the value ofCfnCaseRule.RequiredCaseRuleProperty.getDefaultValue()- Parameters:
defaultValue- The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCaseRule.RequiredCaseRuleProperty>- Returns:
- a new instance of
CfnCaseRule.RequiredCaseRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-