Class PutWatchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.PutWatchRequest
- All Implemented Interfaces:
JsonpSerializable
Creates a new watch, or updates an existing one.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutWatchRequest>
Json deserializer forPutWatchRequest
static final Endpoint<PutWatchRequest,
PutWatchResponse, ErrorResponse> Endpoint "watcher.put_watch
". -
Method Summary
Modifier and TypeMethodDescriptionactions()
API name:actions
final Boolean
active()
Specify whether the watch is in/active by defaultfinal Condition
API name:condition
final String
id()
Required - Watch IDfinal Long
only update the watch if the last operation that has changed the watch has the specified primary termfinal Long
ifSeqNo()
only update the watch if the last operation that has changed the watch has the specified sequence numberfinal Input
input()
API name:input
metadata()
API name:metadata
static PutWatchRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
API name:throttle_period
final Transform
API name:transform
final Trigger
trigger()
API name:trigger
final Long
version()
Explicit version number for concurrency controlMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutWatchRequest
-
_ENDPOINT
Endpoint "watcher.put_watch
".
-
-
Method Details
-
of
public static PutWatchRequest of(Function<PutWatchRequest.Builder, ObjectBuilder<PutWatchRequest>> fn) -
actions
API name:actions
-
active
Specify whether the watch is in/active by defaultAPI name:
active
-
condition
API name:condition
-
id
Required - Watch IDAPI name:
id
-
ifPrimaryTerm
only update the watch if the last operation that has changed the watch has the specified primary termAPI name:
if_primary_term
-
ifSeqNo
only update the watch if the last operation that has changed the watch has the specified sequence numberAPI name:
if_seq_no
-
input
API name:input
-
metadata
API name:metadata
-
throttlePeriod
API name:throttle_period
-
transform
API name:transform
-
trigger
API name:trigger
-
version
Explicit version number for concurrency controlAPI name:
version
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutWatchRequestDeserializer
protected static void setupPutWatchRequestDeserializer(ObjectDeserializer<PutWatchRequest.Builder> op)
-