Interface RequiredCaseRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RequiredCaseRule.Builder,
,RequiredCaseRule> SdkBuilder<RequiredCaseRule.Builder,
,RequiredCaseRule> SdkPojo
- Enclosing class:
RequiredCaseRule
@Mutable
@NotThreadSafe
public static interface RequiredCaseRule.Builder
extends SdkPojo, CopyableBuilder<RequiredCaseRule.Builder,RequiredCaseRule>
-
Method Summary
Modifier and TypeMethodDescriptionconditions
(Collection<BooleanCondition> conditions) List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.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.conditions
(BooleanCondition... conditions) List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.defaultValue
(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 Details
-
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
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
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.Builder
avoiding the need to create one manually viaBooleanCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(List<BooleanCondition>)
.- 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:
-
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.
-