Class TaskInfos
java.lang.Object
org.opensearch.client.opensearch.tasks.TaskInfos
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TaskInfos.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TaskInfos
extends Object
implements TaggedUnion<TaskInfos.Kind,Object>, PlainJsonSerializable
-
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.static TaskInfos.Builderbuilder()booleanGet thegrouped_by_nonevariant value.Get thegrouped_by_parentsvariant value.inthashCode()booleanIs this variant instance of kindgrouped_by_none?booleanIs this variant instance of kindgrouped_by_parents?static TaskInfosvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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
-
isGroupedByNone
public boolean isGroupedByNone()Is this variant instance of kindgrouped_by_none? -
groupedByNone
Get thegrouped_by_nonevariant value.- Throws:
IllegalStateException- if the current variant is not thegrouped_by_nonekind.
-
isGroupedByParents
public boolean isGroupedByParents()Is this variant instance of kindgrouped_by_parents? -
groupedByParents
Get thegrouped_by_parentsvariant value.- Throws:
IllegalStateException- if the current variant is not thegrouped_by_parentskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-