Class Schedule
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Schedule
- All Implemented Interfaces:
TriggerVariant,JsonpSerializable,TaggedUnion<Schedule.Kind,Object>
@JsonpDeserializable
public class Schedule
extends Object
implements TaggedUnion<Schedule.Kind,Object>, TriggerVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Schedule.Kind_kind()Get the of the kind of variant held by this object.Trigger variant kind.cron()Get thecronvariant value.daily()Get thedailyvariant value.hourly()Get thehourlyvariant value.interval()Get theintervalvariant value.booleanisCron()Is this variant instance of kindcron?booleanisDaily()Is this variant instance of kinddaily?booleanisHourly()Is this variant instance of kindhourly?booleanIs this variant instance of kindinterval?booleanIs this variant instance of kindmonthly?booleanIs this variant instance of kindtimezone?booleanisWeekly()Is this variant instance of kindweekly?booleanisYearly()Is this variant instance of kindyearly?monthly()Get themonthlyvariant value.static Schedulevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtimezone()Get thetimezonevariant value.toString()weekly()Get theweeklyvariant value.yearly()Get theyearlyvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.watcher.TriggerVariant
_toTrigger
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Schedule
-
-
Method Details
-
_triggerKind
Trigger variant kind.- Specified by:
_triggerKindin interfaceTriggerVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Schedule.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Schedule.Kind,Object>
-
of
-
isTimezone
public boolean isTimezone()Is this variant instance of kindtimezone? -
timezone
Get thetimezonevariant value.- Throws:
IllegalStateException- if the current variant is not of thetimezonekind.
-
isCron
public boolean isCron()Is this variant instance of kindcron? -
cron
Get thecronvariant value.- Throws:
IllegalStateException- if the current variant is not of thecronkind.
-
isDaily
public boolean isDaily()Is this variant instance of kinddaily? -
daily
Get thedailyvariant value.- Throws:
IllegalStateException- if the current variant is not of thedailykind.
-
isHourly
public boolean isHourly()Is this variant instance of kindhourly? -
hourly
Get thehourlyvariant value.- Throws:
IllegalStateException- if the current variant is not of thehourlykind.
-
isInterval
public boolean isInterval()Is this variant instance of kindinterval? -
interval
Get theintervalvariant value.- Throws:
IllegalStateException- if the current variant is not of theintervalkind.
-
isMonthly
public boolean isMonthly()Is this variant instance of kindmonthly? -
monthly
Get themonthlyvariant value.- Throws:
IllegalStateException- if the current variant is not of themonthlykind.
-
isWeekly
public boolean isWeekly()Is this variant instance of kindweekly? -
weekly
Get theweeklyvariant value.- Throws:
IllegalStateException- if the current variant is not of theweeklykind.
-
isYearly
public boolean isYearly()Is this variant instance of kindyearly? -
yearly
Get theyearlyvariant value.- Throws:
IllegalStateException- if the current variant is not of theyearlykind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupScheduleDeserializer
-