Interface OrStatement.Builder

    • Method Detail

      • statements

        OrStatement.Builder statements​(Collection<Statement> statements)

        The statements to combine with OR logic. You can use any statements that can be nested.

        Parameters:
        statements - The statements to combine with OR logic. You can use any statements that can be nested.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statements

        OrStatement.Builder statements​(Statement... statements)

        The statements to combine with OR logic. You can use any statements that can be nested.

        Parameters:
        statements - The statements to combine with OR logic. You can use any statements that can be nested.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statements

        OrStatement.Builder statements​(Consumer<Statement.Builder>... statements)

        The statements to combine with OR logic. You can use any statements that can be nested.

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

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

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