Class PutWatchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.PutWatchRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PutWatchRequest extends RequestBase implements JsonpSerializable
Creates a new watch, or updates an existing one.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutWatchRequest.Builder
Builder forPutWatchRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutWatchRequest>
_DESERIALIZER
Json deserializer forPutWatchRequest
static Endpoint<PutWatchRequest,PutWatchResponse,ErrorResponse>
_ENDPOINT
Endpoint "watcher.put_watch
". -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Action>
actions()
API name:actions
java.lang.Boolean
active()
Specify whether the watch is in/active by defaultCondition
condition()
API name:condition
java.lang.String
id()
Required - Watch IDjava.lang.Long
ifPrimaryTerm()
only update the watch if the last operation that has changed the watch has the specified primary termjava.lang.Long
ifSeqNo()
only update the watch if the last operation that has changed the watch has the specified sequence numberInput
input()
API name:input
java.util.Map<java.lang.String,JsonData>
metadata()
API name:metadata
static PutWatchRequest
of(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn)
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
setupPutWatchRequestDeserializer(ObjectDeserializer<PutWatchRequest.Builder> op)
java.lang.String
throttlePeriod()
API name:throttle_period
Transform
transform()
API name:transform
Trigger
trigger()
API name:trigger
java.lang.Long
version()
Explicit version number for concurrency controlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPutWatchRequest
-
_ENDPOINT
Endpoint "watcher.put_watch
".
-
-
Method Details
-
of
public static PutWatchRequest of(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn) -
actions
API name:actions
-
active
@Nullable public final java.lang.Boolean active()Specify whether the watch is in/active by defaultAPI name:
active
-
condition
API name:condition
-
id
public final java.lang.String id()Required - Watch IDAPI name:
id
-
ifPrimaryTerm
@Nullable public final java.lang.Long ifPrimaryTerm()only update the watch if the last operation that has changed the watch has the specified primary termAPI name:
if_primary_term
-
ifSeqNo
@Nullable public final java.lang.Long 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
@Nullable public final java.lang.String throttlePeriod()API name:throttle_period
-
transform
API name:transform
-
trigger
API name:trigger
-
version
@Nullable public final java.lang.Long 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)
-