Interface Expression.Builder

    • Method Detail

      • attributeCondition

        Expression.Builder attributeCondition​(AttributeCondition attributeCondition)

        An object to specify the predefined attribute condition.

        Parameters:
        attributeCondition - An object to specify the predefined attribute condition.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • andExpression

        Expression.Builder andExpression​(Collection<Expression> andExpression)

        List of routing expressions which will be AND-ed together.

        Parameters:
        andExpression - List of routing expressions which will be AND-ed together.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • andExpression

        Expression.Builder andExpression​(Expression... andExpression)

        List of routing expressions which will be AND-ed together.

        Parameters:
        andExpression - List of routing expressions which will be AND-ed together.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • andExpression

        Expression.Builder andExpression​(Consumer<Expression.Builder>... andExpression)

        List of routing expressions which will be AND-ed together.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #andExpression(List).

        Parameters:
        andExpression - a consumer that will call methods on Expression.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #andExpression(java.util.Collection)
      • orExpression

        Expression.Builder orExpression​(Collection<Expression> orExpression)

        List of routing expressions which will be OR-ed together.

        Parameters:
        orExpression - List of routing expressions which will be OR-ed together.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • orExpression

        Expression.Builder orExpression​(Expression... orExpression)

        List of routing expressions which will be OR-ed together.

        Parameters:
        orExpression - List of routing expressions which will be OR-ed together.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • orExpression

        Expression.Builder orExpression​(Consumer<Expression.Builder>... orExpression)

        List of routing expressions which will be OR-ed together.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #orExpression(List).

        Parameters:
        orExpression - a consumer that will call methods on Expression.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #orExpression(java.util.Collection)