Class QueryWatchesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.QueryWatchesRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class QueryWatchesRequest
extends RequestBase
implements JsonpSerializable
Query watches. Get all registered watches in a paginated manner and
 optionally filter watches by a query.
 
 Note that only the _id and metadata.* fields are
 queryable or sortable.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryWatchesRequest>Json deserializer forQueryWatchesRequeststatic final Endpoint<QueryWatchesRequest,QueryWatchesResponse, ErrorResponse> Endpoint "watcher.query_watches".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Integerfrom()The offset from the first result to fetch.static QueryWatchesRequestfinal Queryquery()A query that filters the watches to be returned.final List<FieldValue>Retrieve the next page of hits using a set of sort values from the previous page.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of hits to return.final List<SortOptions>sort()One or more fields used to sort the search results.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forQueryWatchesRequest
- 
_ENDPOINTEndpoint "watcher.query_watches".
 
- 
- 
Method Details- 
ofpublic static QueryWatchesRequest of(Function<QueryWatchesRequest.Builder, ObjectBuilder<QueryWatchesRequest>> fn) 
- 
fromThe offset from the first result to fetch. It must be non-negative.API name: from
- 
queryA query that filters the watches to be returned.API name: query
- 
searchAfterRetrieve the next page of hits using a set of sort values from the previous page.API name: search_after
- 
sizeThe number of hits to return. It must be non-negative.API name: size
- 
sortOne or more fields used to sort the search results.API name: sort
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupQueryWatchesRequestDeserializerprotected static void setupQueryWatchesRequestDeserializer(ObjectDeserializer<QueryWatchesRequest.Builder> op) 
 
-