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 SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<Input.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<Input.Kind,- Object> 
 
- 
of
- 
isChainpublic boolean isChain()Is this variant instance of kindchain?
- 
chainGet thechainvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- chainkind.
 
- 
isHttppublic boolean isHttp()Is this variant instance of kindhttp?
- 
httpGet thehttpvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- httpkind.
 
- 
isSearchpublic boolean isSearch()Is this variant instance of kindsearch?
- 
searchGet thesearchvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- searchkind.
 
- 
isSimplepublic boolean isSimple()Is this variant instance of kindsimple?
- 
simpleGet thesimplevariant value.- Throws:
- IllegalStateException- if the current variant is not of the- simplekind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
- 
setupInputDeserializer
 
-