Class GetWatchResponse

java.lang.Object
co.elastic.clients.elasticsearch.watcher.GetWatchResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class GetWatchResponse
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

      public final boolean found()
      Required - API name: found
    • id

      public final java.lang.String id()
      Required - API name: _id
    • status

      @Nullable public final WatchStatus status()
      API name: status
    • watch

      @Nullable public final Watch watch()
      API name: watch
    • primaryTerm

      @Nullable public final java.lang.Integer primaryTerm()
      API name: _primary_term
    • seqNo

      @Nullable public final java.lang.Long seqNo()
      API name: _seq_no
    • version

      @Nullable public final java.lang.Long version()
      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)
    • setupGetWatchResponseDeserializer

      protected static void setupGetWatchResponseDeserializer​(ObjectDeserializer<GetWatchResponse.Builder> op)