Class PutWatchRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.PutWatchRequest
All Implemented Interfaces:
ElasticsearchCommonRequest, JsonpSerializable

@JsonpDeserializable
public final class PutWatchRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • id

      public java.lang.String id()
      Watch ID

      API name: id

    • active

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

      API name: active

    • ifPrimaryTerm

      @Nullable public java.lang.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

    • ifSequenceNumber

      @Nullable public java.lang.Long ifSequenceNumber()
      API name: if_sequence_number
    • version

      @Nullable public java.lang.Long version()
      Explicit version number for concurrency control

      API name: version

    • actions

      @Nullable public java.util.Map<java.lang.String,​Action> actions()
      API name: actions
    • condition

      @Nullable public Condition condition()
      API name: condition
    • input

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

      @Nullable public java.util.Map<java.lang.String,​JsonData> metadata()
      API name: metadata
    • throttlePeriod

      @Nullable public java.lang.String throttlePeriod()
      API name: throttle_period
    • transform

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

      @Nullable public Trigger trigger()
      API name: trigger
    • 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​(DelegatingDeserializer<PutWatchRequest.Builder> op)