Class Schedule
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Schedule
- All Implemented Interfaces:
TriggerVariant,JsonpSerializable,TaggedUnion<java.lang.Object>,UnionVariant
@JsonpDeserializable public class Schedule extends java.lang.Object implements TaggedUnion<java.lang.Object>, TriggerVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchedule.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Schedule>_DESERIALIZERstatic java.lang.StringCRONstatic java.lang.StringDAILYstatic java.lang.StringHOURLYstatic java.lang.StringINTERVALstatic java.lang.StringMONTHLYstatic java.lang.StringWEEKLYstatic java.lang.StringYEARLY -
Constructor Summary
Constructors Constructor Description Schedule(ScheduleVariant value)Schedule(ObjectBuilder<T> builder)Schedule(java.util.function.Function<Schedule.Builder,Schedule.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.java.lang.String_variantType()Triggervariant typejava.lang.Stringcron()Get thecronvariant value.DailyScheduledaily()Get thedailyvariant value.HourlySchedulehourly()Get thehourlyvariant value.java.lang.Stringinterval()Get theintervalvariant value.java.util.List<TimeOfMonth>monthly()Get themonthlyvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupScheduleDeserializer(DelegatingDeserializer<Schedule.Builder> op)java.util.List<TimeOfWeek>weekly()Get theweeklyvariant value.java.util.List<TimeOfYear>yearly()Get theyearlyvariant value.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
_isMethods inherited from interface co.elastic.clients.elasticsearch.watcher.TriggerVariant
_toTrigger
-
Field Details
-
CRON
public static final java.lang.String CRON- See Also:
- Constant Field Values
-
DAILY
public static final java.lang.String DAILY- See Also:
- Constant Field Values
-
HOURLY
public static final java.lang.String HOURLY- See Also:
- Constant Field Values
-
INTERVAL
public static final java.lang.String INTERVAL- See Also:
- Constant Field Values
-
MONTHLY
public static final java.lang.String MONTHLY- See Also:
- Constant Field Values
-
WEEKLY
public static final java.lang.String WEEKLY- See Also:
- Constant Field Values
-
YEARLY
public static final java.lang.String YEARLY- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Schedule
-
Schedule
-
Schedule
-
-
Method Details
-
_variantType
public java.lang.String _variantType()Triggervariant type- Specified by:
_variantTypein interfaceUnionVariant
-
_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>
-
cron
public java.lang.String cron()Get thecronvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecronkind.
-
daily
Get thedailyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedailykind.
-
hourly
Get thehourlyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehourlykind.
-
interval
public java.lang.String interval()Get theintervalvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theintervalkind.
-
monthly
Get themonthlyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themonthlykind.
-
weekly
Get theweeklyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theweeklykind.
-
yearly
Get theyearlyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theyearlykind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupScheduleDeserializer
-