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

@JsonpDeserializable
public class Input
extends java.lang.Object
implements TaggedUnion<java.lang.Object>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<java.lang.Object>
      Returns:
      the variant type
    • _get

      public java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<java.lang.Object>
    • chain

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

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

      public SearchInput search()
      Get the search variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the search kind.
    • 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​(DelegatingDeserializer<Input.Builder> op)