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 Details

    • result

      Condition.Builder result(String 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

      Condition.Builder result(Result 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 the RuleDeclaration.Builder avoiding the need to create one manually via RuleDeclaration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<RuleDeclaration>).

      Parameters:
      rules - a consumer that will call methods on RuleDeclaration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: