Class TimeOfDay
java.lang.Object
co.elastic.clients.elasticsearch.watcher.TimeOfDay
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<TimeOfDay.Kind,
Object>
@JsonpDeserializable
public class TimeOfDay
extends Object
implements TaggedUnion<TimeOfDay.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final TimeOfDay.Kind
_kind()
Get the of the kind of variant held by this object.Get thehour_minute
variant value.boolean
Is this variant instance of kindhour_minute
?boolean
isText()
Is this variant instance of kindtext
?static TimeOfDay
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) text()
Get thetext
variant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<TimeOfDay.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<TimeOfDay.Kind,
Object>
-
of
-
isText
public boolean isText()Is this variant instance of kindtext
? -
text
Get thetext
variant value.- Throws:
IllegalStateException
- if the current variant is not of thetext
kind.
-
isHourMinute
public boolean isHourMinute()Is this variant instance of kindhour_minute
? -
hourMinute
Get thehour_minute
variant value.- Throws:
IllegalStateException
- if the current variant is not of thehour_minute
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-