Interface RequiredCaseRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RequiredCaseRule.Builder,RequiredCaseRule>,SdkBuilder<RequiredCaseRule.Builder,RequiredCaseRule>,SdkPojo
- Enclosing class:
- RequiredCaseRule
public static interface RequiredCaseRule.Builder extends SdkPojo, CopyableBuilder<RequiredCaseRule.Builder,RequiredCaseRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequiredCaseRule.Builderconditions(Collection<BooleanCondition> conditions)List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.RequiredCaseRule.Builderconditions(Consumer<BooleanCondition.Builder>... conditions)List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.RequiredCaseRule.Builderconditions(BooleanCondition... conditions)List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.RequiredCaseRule.BuilderdefaultValue(Boolean defaultValue)The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
conditions
RequiredCaseRule.Builder conditions(Collection<BooleanCondition> conditions)
List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
- Parameters:
conditions- List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
RequiredCaseRule.Builder conditions(BooleanCondition... conditions)
List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
- Parameters:
conditions- List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
RequiredCaseRule.Builder conditions(Consumer<BooleanCondition.Builder>... conditions)
List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.
This is a convenience method that creates an instance of theBooleanCondition.Builderavoiding the need to create one manually viaBooleanCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditions(List.) - Parameters:
conditions- a consumer that will call methods onBooleanCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#conditions(java.util.Collection)
-
defaultValue
RequiredCaseRule.Builder defaultValue(Boolean defaultValue)
The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.
- Parameters:
defaultValue- The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-