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