Class Condition
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Condition
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Condition.Kind,Object>
@JsonpDeserializable
public class Condition
extends Object
implements TaggedUnion<Condition.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Condition.Kind_kind()Get the of the kind of variant held by this object.always()Get thealwaysvariant value.Get thearray_comparevariant value.compare()Get thecomparevariant value.booleanisAlways()Is this variant instance of kindalways?booleanIs this variant instance of kindarray_compare?booleanIs this variant instance of kindcompare?booleanisNever()Is this variant instance of kindnever?booleanisScript()Is this variant instance of kindscript?never()Get thenevervariant value.static Conditionscript()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Condition
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Condition.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Condition.Kind,Object>
-
of
-
isAlways
public boolean isAlways()Is this variant instance of kindalways? -
always
Get thealwaysvariant value.- Throws:
IllegalStateException- if the current variant is not of thealwayskind.
-
isArrayCompare
public boolean isArrayCompare()Is this variant instance of kindarray_compare? -
arrayCompare
Get thearray_comparevariant value.- Throws:
IllegalStateException- if the current variant is not of thearray_comparekind.
-
isCompare
public boolean isCompare()Is this variant instance of kindcompare? -
compare
Get thecomparevariant value.- Throws:
IllegalStateException- if the current variant is not of thecomparekind.
-
isNever
public boolean isNever()Is this variant instance of kindnever? -
never
Get thenevervariant value.- Throws:
IllegalStateException- if the current variant is not of theneverkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not of thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupConditionDeserializer
-