Class Input
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Input
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Input.Kind,Object>
@JsonpDeserializable
public class Input
extends Object
implements TaggedUnion<Input.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Input.Kind_kind()Get the of the kind of variant held by this object.chain()Get thechainvariant value.http()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 Inputsearch()Get thesearchvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsimple()Get thesimplevariant value.toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Input.Kind,Object>
-
of
-
isChain
public boolean isChain()Is this variant instance of kindchain? -
chain
Get thechainvariant value.- Throws:
IllegalStateException- if the current variant is not of thechainkind.
-
isHttp
public boolean isHttp()Is this variant instance of kindhttp? -
http
Get thehttpvariant value.- Throws:
IllegalStateException- if the current variant is not of thehttpkind.
-
isSearch
public boolean isSearch()Is this variant instance of kindsearch? -
search
Get thesearchvariant value.- Throws:
IllegalStateException- if the current variant is not of thesearchkind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple? -
simple
Get thesimplevariant value.- Throws:
IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupInputDeserializer
-