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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final Condition.Kind
_kind()
Get the of the kind of variant held by this object.always()
Get thealways
variant value.Get thearray_compare
variant value.compare()
Get thecompare
variant value.boolean
isAlways()
Is this variant instance of kindalways
?boolean
Is this variant instance of kindarray_compare
?boolean
Is this variant instance of kindcompare
?boolean
isNever()
Is this variant instance of kindnever
?boolean
isScript()
Is this variant instance of kindscript
?never()
Get thenever
variant value.static Condition
script()
Get thescript
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Condition
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Condition.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Condition.Kind,
Object>
-
of
-
isAlways
public boolean isAlways()Is this variant instance of kindalways
? -
always
Get thealways
variant value.- Throws:
IllegalStateException
- if the current variant is not of thealways
kind.
-
isArrayCompare
public boolean isArrayCompare()Is this variant instance of kindarray_compare
? -
arrayCompare
Get thearray_compare
variant value.- Throws:
IllegalStateException
- if the current variant is not of thearray_compare
kind.
-
isCompare
public boolean isCompare()Is this variant instance of kindcompare
? -
compare
Get thecompare
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecompare
kind.
-
isNever
public boolean isNever()Is this variant instance of kindnever
? -
never
Get thenever
variant value.- Throws:
IllegalStateException
- if the current variant is not of thenever
kind.
-
isScript
public boolean isScript()Is this variant instance of kindscript
? -
script
Get thescript
variant value.- Throws:
IllegalStateException
- if the current variant is not of thescript
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupConditionDeserializer
-