Class Input
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInput.Builderstatic classInput.KindInputvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Input>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description Input(InputVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()Input.Kind_kind()Get the of the kind of variant held by this object.ChainInputchain()Get thechainvariant value.HttpInputhttp()Get thehttpvariant value.booleanisChain()Is this variant instance of kindchain?booleanisHttp()Is this variant instance of kindhttp?booleanisSearch()Is this variant instance of kindsearch?booleanisSimple()Is this variant instance of kindsimple?static Inputof(java.util.function.Function<Input.Builder,ObjectBuilder<Input>> fn)SearchInputsearch()Get thesearchvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupInputDeserializer(ObjectDeserializer<Input.Builder> op)java.util.Map<java.lang.String,JsonData>simple()Get thesimplevariant value.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Input
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Input.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<Input.Kind,java.lang.Object>
-
of
-
isChain
public boolean isChain()Is this variant instance of kindchain? -
chain
Get thechainvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechainkind.
-
isHttp
public boolean isHttp()Is this variant instance of kindhttp? -
http
Get thehttpvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehttpkind.
-
isSearch
public boolean isSearch()Is this variant instance of kindsearch? -
search
Get thesearchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesearchkind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple? -
simple
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupInputDeserializer
-