Interface ConditionalBehavior.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConditionalBehavior.Builder,,ConditionalBehavior> SdkBuilder<ConditionalBehavior.Builder,,ConditionalBehavior> SdkPojo
- Enclosing class:
ConditionalBehavior
-
Method Summary
Modifier and TypeMethodDescriptiondefaultBehavior(String defaultBehavior) The field behavior that applies when no conditional rule in Rules matches.rules(Collection<ConditionalRule> rules) An ordered list of conditional rules.rules(Consumer<ConditionalRule.Builder>... rules) An ordered list of conditional rules.rules(ConditionalRule... rules) An ordered list of conditional rules.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
-
rules
An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.
- Parameters:
rules- An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.
- Parameters:
rules- An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.
This is a convenience method that creates an instance of theConditionalRule.Builderavoiding the need to create one manually viaConditionalRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<ConditionalRule>).- Parameters:
rules- a consumer that will call methods onConditionalRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultBehavior
The field behavior that applies when no conditional rule in Rules matches. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
- Parameters:
defaultBehavior- The field behavior that applies when no conditional rule in Rules matches. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-