Class TriggerEvent
java.lang.Object
co.elastic.clients.elasticsearch.watcher.TriggerEvent
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class TriggerEvent extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTriggerEvent.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TriggerEvent>_DESERIALIZERstatic java.lang.StringSCHEDULE -
Constructor Summary
Constructors Constructor Description TriggerEvent(TriggerEventVariant value)TriggerEvent(ObjectBuilder<T> builder)TriggerEvent(java.util.function.Function<TriggerEvent.Builder,TriggerEvent.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.ScheduleTriggerEventschedule()Get theschedulevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTriggerEventDeserializer(DelegatingDeserializer<TriggerEvent.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
-
SCHEDULE
public static final java.lang.String SCHEDULE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
TriggerEvent
-
TriggerEvent
-
TriggerEvent
-
-
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>
-
schedule
Get theschedulevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theschedulekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupTriggerEventDeserializer
protected static void setupTriggerEventDeserializer(DelegatingDeserializer<TriggerEvent.Builder> op)
-