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 classInput.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Input>_DESERIALIZERstatic java.lang.StringCHAINstatic java.lang.StringHTTPstatic java.lang.StringSEARCHstatic java.lang.StringSIMPLE -
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.ChainInputchain()Get thechainvariant value.HttpInputhttp()Get thehttpvariant value.SearchInputsearch()Get thesearchvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupInputDeserializer(DelegatingDeserializer<Input.Builder> op)java.util.Map<java.lang.String,JsonData>simple()Get thesimplevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
chain
Get thechainvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechainkind.
-
http
Get thehttpvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehttpkind.
-
search
Get thesearchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesearchkind.
-
simple
Get thesimplevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimplekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupInputDeserializer
-