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 classPutWatchRequest.BuilderBuilder 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>_DESERIALIZERJson deserializer forPutWatchRequeststatic Endpoint<PutWatchRequest,PutWatchResponse,ErrorResponse>_ENDPOINTEndpoint "watcher.put_watch". -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Action>actions()API name:actionsjava.lang.Booleanactive()Specify whether the watch is in/active by defaultConditioncondition()API name:conditionjava.lang.Stringid()Required - Watch IDjava.lang.LongifPrimaryTerm()only update the watch if the last operation that has changed the watch has the specified primary termjava.lang.LongifSeqNo()only update the watch if the last operation that has changed the watch has the specified sequence numberInputinput()API name:inputjava.util.Map<java.lang.String,JsonData>metadata()API name:metadatastatic PutWatchRequestof(java.util.function.Function<PutWatchRequest.Builder,ObjectBuilder<PutWatchRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPutWatchRequestDeserializer(ObjectDeserializer<PutWatchRequest.Builder> op)java.lang.StringthrottlePeriod()API name:throttle_periodTransformtransform()API name:transformTriggertrigger()API name:triggerjava.lang.Longversion()Explicit version number for concurrency controlMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutWatchRequestDeserializer
protected static void setupPutWatchRequestDeserializer(ObjectDeserializer<PutWatchRequest.Builder> op)
-