Class PutWatchRequest

All Implemented Interfaces:

public class PutWatchRequest
extends RequestBase
implements JsonpSerializable
Creates a new watch, or updates an existing one.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static PutWatchRequest of​(java.util.function.Function<PutWatchRequest.Builder,​ObjectBuilder<PutWatchRequest>> fn)
    • actions

      public final java.util.Map<java.lang.String,​Action> actions()
      API name: actions
    • active

      @Nullable public final java.lang.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 java.lang.String id()
      Required - Watch ID

      API 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 term

      API 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 number

      API name: if_seq_no

    • input

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

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

      @Nullable public final java.lang.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 java.lang.Long version()
      Explicit version number for concurrency control

      API name: version

    • serialize

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

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupPutWatchRequestDeserializer

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