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 class
Input.Builder
static class
Input.Kind
Input
variant 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.ChainInput
chain()
Get thechain
variant value.HttpInput
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
of(java.util.function.Function<Input.Builder,ObjectBuilder<Input>> fn)
SearchInput
search()
Get thesearch
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupInputDeserializer(ObjectDeserializer<Input.Builder> op)
java.util.Map<java.lang.String,JsonData>
simple()
Get thesimple
variant value.java.lang.String
toString()
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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Input.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<Input.Kind,java.lang.Object>
-
of
-
isChain
public boolean isChain()Is this variant instance of kindchain
? -
chain
Get thechain
variant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if the current variant is not of thesimple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupInputDeserializer
-