Interface Query.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Query.Builder,Query>, SdkBuilder<Query.Builder,Query>, SdkPojo
Enclosing class:
Query

public static interface Query.Builder extends SdkPojo, CopyableBuilder<Query.Builder,Query>
  • Method Details

    • selectors

      Query.Builder selectors(Collection<Selector> selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      Parameters:
      selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectors

      Query.Builder selectors(Selector... selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

      Parameters:
      selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectors

      Query.Builder selectors(Consumer<Selector.Builder>... selectors)

      List of selectors that define the query. An object must satisfy all of the selectors to match the query.

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

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

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