Class ScheduleTimeOfDay
java.lang.Object
co.elastic.clients.elasticsearch.watcher.ScheduleTimeOfDay
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<ScheduleTimeOfDay.Kind,Object>
@JsonpDeserializable
public class ScheduleTimeOfDay
extends Object
implements TaggedUnion<ScheduleTimeOfDay.Kind,Object>, JsonpSerializable
A time of day, expressed either as
hh:mm, noon,
midnight, or an hour/minutes structure.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final ScheduleTimeOfDay.Kind_kind()Get the of the kind of variant held by this object.Get thehour_minutevariant value.booleanIs this variant instance of kindhour_minute?booleanisText()Is this variant instance of kindtext?static ScheduleTimeOfDayvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) text()Get thetextvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ScheduleTimeOfDay.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ScheduleTimeOfDay.Kind,Object>
-
of
public static ScheduleTimeOfDay of(Function<ScheduleTimeOfDay.Builder, ObjectBuilder<ScheduleTimeOfDay>> fn) -
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
IllegalStateException- if the current variant is not of thetextkind.
-
isHourMinute
public boolean isHourMinute()Is this variant instance of kindhour_minute? -
hourMinute
Get thehour_minutevariant value.- Throws:
IllegalStateException- if the current variant is not of thehour_minutekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-