Class Condition
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Condition
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class Condition extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCondition.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Condition>_DESERIALIZERstatic java.lang.StringALWAYSstatic java.lang.StringARRAY_COMPAREstatic java.lang.StringCOMPAREstatic java.lang.StringNEVERstatic java.lang.StringSCRIPT -
Constructor Summary
Constructors Constructor Description Condition(ConditionVariant value)Condition(ObjectBuilder<T> builder)Condition(java.util.function.Function<Condition.Builder,Condition.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.AlwaysConditionalways()Get thealwaysvariant value.ArrayCompareConditionarrayCompare()Get thearray_comparevariant value.CompareConditioncompare()Get thecomparevariant value.NeverConditionnever()Get thenevervariant value.ScriptConditionscript()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupConditionDeserializer(DelegatingDeserializer<Condition.Builder> op)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
-
ALWAYS
public static final java.lang.String ALWAYS- See Also:
- Constant Field Values
-
ARRAY_COMPARE
public static final java.lang.String ARRAY_COMPARE- See Also:
- Constant Field Values
-
COMPARE
public static final java.lang.String COMPARE- See Also:
- Constant Field Values
-
NEVER
public static final java.lang.String NEVER- See Also:
- Constant Field Values
-
SCRIPT
public static final java.lang.String SCRIPT- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Condition
-
Condition
-
Condition
-
-
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>
-
always
Get thealwaysvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thealwayskind.
-
arrayCompare
Get thearray_comparevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thearray_comparekind.
-
compare
Get thecomparevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecomparekind.
-
never
Get thenevervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theneverkind.
-
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupConditionDeserializer
-