java.lang.Object
co.elastic.clients.elasticsearch.watcher.Input
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<Input.Kind,​java.lang.Object>

@JsonpDeserializable
public class Input
extends java.lang.Object
implements TaggedUnion<Input.Kind,​java.lang.Object>, JsonpSerializable
See Also:
API specification
  • Field Details

  • Constructor Details

  • Method Details

    • _kind

      public final Input.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<Input.Kind,​java.lang.Object>
      Returns:
      the variant kind
    • _get

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<Input.Kind,​java.lang.Object>
    • of

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

      public boolean isChain()
      Is this variant instance of kind chain?
    • chain

      public ChainInput chain()
      Get the chain variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the chain kind.
    • isHttp

      public boolean isHttp()
      Is this variant instance of kind http?
    • http

      public HttpInput http()
      Get the http variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the http kind.
    • isSearch

      public boolean isSearch()
      Is this variant instance of kind search?
    • search

      public SearchInput search()
      Get the search variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the search kind.
    • isSimple

      public boolean isSimple()
      Is this variant instance of kind simple?
    • simple

      public java.util.Map<java.lang.String,​JsonData> simple()
      Get the simple variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the simple kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupInputDeserializer

      protected static void setupInputDeserializer​(ObjectDeserializer<Input.Builder> op)