Class TaskInfos
java.lang.Object
co.elastic.clients.elasticsearch.tasks.TaskInfos
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TaskInfos.Kind,Object>
@JsonpDeserializable
public class TaskInfos
extends Object
implements TaggedUnion<TaskInfos.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TaskInfos.Kind_kind()Get the of the kind of variant held by this object.flat()Get theflatvariant value.grouped()Get thegroupedvariant value.booleanisFlat()Is this variant instance of kindflat?booleanIs this variant instance of kindgrouped?static TaskInfosvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) 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<TaskInfos.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TaskInfos.Kind,Object>
-
of
-
isFlat
public boolean isFlat()Is this variant instance of kindflat? -
flat
Get theflatvariant value.- Throws:
IllegalStateException- if the current variant is not of theflatkind.
-
isGrouped
public boolean isGrouped()Is this variant instance of kindgrouped? -
grouped
Get thegroupedvariant value.- Throws:
IllegalStateException- if the current variant is not of thegroupedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-