Class Trigger
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Trigger
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class Trigger extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trigger.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Trigger>
_DESERIALIZER
static java.lang.String
SCHEDULE
-
Constructor Summary
Constructors Constructor Description Trigger(TriggerVariant value)
Trigger(ObjectBuilder<T> builder)
Trigger(java.util.function.Function<Trigger.Builder,Trigger.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.Schedule
schedule()
Get theschedule
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTriggerDeserializer(DelegatingDeserializer<Trigger.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
Trigger
-
Trigger
-
Trigger
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<java.lang.Object>
- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<java.lang.Object>
-
schedule
Get theschedule
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theschedule
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupTriggerDeserializer
-