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

    • conditions

      Condition.Builder conditions(Collection<SimpleCondition> conditions)

      The conditions to evaluate for the activity.

      Parameters:
      conditions - The conditions to evaluate for the activity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Condition.Builder conditions(SimpleCondition... conditions)

      The conditions to evaluate for the activity.

      Parameters:
      conditions - The conditions to evaluate for the activity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      The conditions to evaluate for the activity.

      This is a convenience method that creates an instance of the SimpleCondition.Builder avoiding the need to create one manually via SimpleCondition.builder().

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

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

      Condition.Builder operator(String operator)

      Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.

      Parameters:
      operator - Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operator

      Condition.Builder operator(Operator operator)

      Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.

      Parameters:
      operator - Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: