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:
  • Field Details

  • Method Details

    • of

    • actions

      public final Map<String,Action> actions()
      API name: actions
    • active

      @Nullable public final Boolean active()
      Specify whether the watch is in/active by default

      API name: active

    • condition

      @Nullable public final Condition condition()
      API name: condition
    • id

      public final String id()
      Required - Watch ID

      API name: id

    • ifPrimaryTerm

      @Nullable public final Long ifPrimaryTerm()
      only update the watch if the last operation that has changed the watch has the specified primary term

      API name: if_primary_term

    • ifSeqNo

      @Nullable public final Long ifSeqNo()
      only update the watch if the last operation that has changed the watch has the specified sequence number

      API name: if_seq_no

    • input

      @Nullable public final Input input()
      API name: input
    • metadata

      public final Map<String,JsonData> metadata()
      API name: metadata
    • throttlePeriod

      @Nullable public final String throttlePeriod()
      API name: throttle_period
    • transform

      @Nullable public final Transform transform()
      API name: transform
    • trigger

      @Nullable public final Trigger trigger()
      API name: trigger
    • version

      @Nullable public final Long version()
      Explicit version number for concurrency control

      API name: version

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupPutWatchRequestDeserializer

      protected static void setupPutWatchRequestDeserializer(ObjectDeserializer<PutWatchRequest.Builder> op)