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 SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<TaskInfos.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<TaskInfos.Kind,- Object> 
 
- 
of
- 
isFlatpublic boolean isFlat()Is this variant instance of kindflat?
- 
flatGet theflatvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- flatkind.
 
- 
isGroupedpublic boolean isGrouped()Is this variant instance of kindgrouped?
- 
groupedGet thegroupedvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- groupedkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
 
-