Interface Condition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Condition.Builder,
,Condition> SdkBuilder<Condition.Builder,
,Condition> SdkPojo
- Enclosing class:
Condition
public static interface Condition.Builder
extends SdkPojo, CopyableBuilder<Condition.Builder,Condition>
-
Method Summary
Modifier and TypeMethodDescriptionThe action to be done when the condition is met.The action to be done when the condition is met.rules
(Collection<RuleDeclaration> rules) The rules that make up the condition.rules
(Consumer<RuleDeclaration.Builder>... rules) The rules that make up the condition.rules
(RuleDeclaration... rules) The rules that make up the condition.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, sdkFields
-
Method Details
-
result
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
- Parameters:
result
- The action to be done when the condition is met. For example, rolling back an execution for a failure condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
result
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
- Parameters:
result
- The action to be done when the condition is met. For example, rolling back an execution for a failure condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
The rules that make up the condition.
- Parameters:
rules
- The rules that make up the condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The rules that make up the condition.
- Parameters:
rules
- The rules that make up the condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The rules that make up the condition.
This is a convenience method that creates an instance of theRuleDeclaration.Builder
avoiding the need to create one manually viaRuleDeclaration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<RuleDeclaration>)
.- Parameters:
rules
- a consumer that will call methods onRuleDeclaration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-