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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final Input.Kind
_kind()
Get the of the kind of variant held by this object.chain()
Get thechain
variant value.http()
Get thehttp
variant value.boolean
isChain()
Is this variant instance of kindchain
?boolean
isHttp()
Is this variant instance of kindhttp
?boolean
isSearch()
Is this variant instance of kindsearch
?boolean
isSimple()
Is this variant instance of kindsimple
?static Input
search()
Get thesearch
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
simple()
Get thesimple
variant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Input
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Input.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Input.Kind,
Object>
-
of
-
isChain
public boolean isChain()Is this variant instance of kindchain
? -
chain
Get thechain
variant value.- Throws:
IllegalStateException
- if the current variant is not of thechain
kind.
-
isHttp
public boolean isHttp()Is this variant instance of kindhttp
? -
http
Get thehttp
variant value.- Throws:
IllegalStateException
- if the current variant is not of thehttp
kind.
-
isSearch
public boolean isSearch()Is this variant instance of kindsearch
? -
search
Get thesearch
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesearch
kind.
-
isSimple
public boolean isSimple()Is this variant instance of kindsimple
? -
simple
Get thesimple
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesimple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupInputDeserializer
-