Class QueryWatchesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<QueryWatchesRequest.Builder>
co.elastic.clients.elasticsearch.watcher.QueryWatchesRequest.Builder
- All Implemented Interfaces:
WithJson<QueryWatchesRequest.Builder>,ObjectBuilder<QueryWatchesRequest>
- Enclosing class:
- QueryWatchesRequest
public static class QueryWatchesRequest.Builder
extends RequestBase.AbstractBuilder<QueryWatchesRequest.Builder>
implements ObjectBuilder<QueryWatchesRequest>
Builder for
QueryWatchesRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryWatchesRequest.The offset from the first result to fetch.A query that filters the watches to be returned.query(QueryVariant value) A query that filters the watches to be returned.A query that filters the watches to be returned.searchAfter(boolean value, boolean... values) Retrieve the next page of hits using a set of sort values from the previous page.searchAfter(double value, double... values) Retrieve the next page of hits using a set of sort values from the previous page.searchAfter(long value, long... values) Retrieve the next page of hits using a set of sort values from the previous page.searchAfter(FieldValue value, FieldValue... values) Retrieve the next page of hits using a set of sort values from the previous page.searchAfter(String value, String... values) Retrieve the next page of hits using a set of sort values from the previous page.Retrieve the next page of hits using a set of sort values from the previous page.searchAfter(List<FieldValue> list) Retrieve the next page of hits using a set of sort values from the previous page.protected QueryWatchesRequest.Builderself()The number of hits to return.sort(SortOptions value, SortOptions... values) One or more fields used to sort the search results.One or more fields used to sort the search results.sort(List<SortOptions> list) One or more fields used to sort the search results.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
The offset from the first result to fetch. It must be non-negative.API name:
from -
query
A query that filters the watches to be returned.API name:
query -
query
A query that filters the watches to be returned.API name:
query -
query
A query that filters the watches to be returned.API name:
query -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds all elements of
listtosearchAfter. -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
public final QueryWatchesRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) Retrieve the next page of hits using a set of sort values from the previous page.API name:
search_afterAdds a value to
searchAfterusing a builder lambda. -
size
The number of hits to return. It must be non-negative.API name:
size -
sort
One or more fields used to sort the search results.API name:
sortAdds all elements of
listtosort. -
sort
One or more fields used to sort the search results.API name:
sortAdds one or more values to
sort. -
sort
public final QueryWatchesRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) One or more fields used to sort the search results.API name:
sortAdds a value to
sortusing a builder lambda. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryWatchesRequest.Builder>
-
build
Builds aQueryWatchesRequest.- Specified by:
buildin interfaceObjectBuilder<QueryWatchesRequest>- Throws:
NullPointerException- if some of the required fields are null.
-