Class Input
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Input.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Input>
_DESERIALIZER
static java.lang.String
CHAIN
static java.lang.String
HTTP
static java.lang.String
SEARCH
static java.lang.String
SIMPLE
-
Constructor Summary
Constructors Constructor Description Input(InputVariant value)
Input(ObjectBuilder<T> builder)
Input(java.util.function.Function<Input.Builder,Input.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.ChainInput
chain()
Get thechain
variant value.HttpInput
http()
Get thehttp
variant value.SearchInput
search()
Get thesearch
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupInputDeserializer(DelegatingDeserializer<Input.Builder> op)
java.util.Map<java.lang.String,JsonData>
simple()
Get thesimple
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CHAIN
public static final java.lang.String CHAIN- See Also:
- Constant Field Values
-
HTTP
public static final java.lang.String HTTP- See Also:
- Constant Field Values
-
SEARCH
public static final java.lang.String SEARCH- See Also:
- Constant Field Values
-
SIMPLE
public static final java.lang.String SIMPLE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Input
-
Input
-
Input
-
-
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 interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
chain
Get thechain
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thechain
kind.
-
http
Get thehttp
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehttp
kind.
-
search
Get thesearch
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesearch
kind.
-
simple
Get thesimple
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesimple
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupInputDeserializer
-