Interface ConditionalRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConditionalRule.Builder,,ConditionalRule> SdkBuilder<ConditionalRule.Builder,,ConditionalRule> SdkPojo
- Enclosing class:
ConditionalRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConditionalRule.BuilderconditionalValidation(Consumer<ConditionalValidation.Builder> conditionalValidation) Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.conditionalValidation(ConditionalValidation conditionalValidation) Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.conditions(Collection<FieldCondition> conditions) The conditions that must all evaluate to true for this rule to match.conditions(Consumer<FieldCondition.Builder>... conditions) The conditions that must all evaluate to true for this rule to match.conditions(FieldCondition... conditions) The conditions that must all evaluate to true for this rule to match.ruleBehavior(String ruleBehavior) The field behavior that applies when all conditions in this rule match.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
conditions
The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.
- Parameters:
conditions- The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.
- Parameters:
conditions- The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.
This is a convenience method that creates an instance of theFieldCondition.Builderavoiding the need to create one manually viaFieldCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconditions(List<FieldCondition>).- Parameters:
conditions- a consumer that will call methods onFieldCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleBehavior
The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
- Parameters:
ruleBehavior- The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalValidation
Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.
- Parameters:
conditionalValidation- Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalValidation
default ConditionalRule.Builder conditionalValidation(Consumer<ConditionalValidation.Builder> conditionalValidation) Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.
This is a convenience method that creates an instance of theConditionalValidation.Builderavoiding the need to create one manually viaConditionalValidation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconditionalValidation(ConditionalValidation).- Parameters:
conditionalValidation- a consumer that will call methods onConditionalValidation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-