Class BulkByScrollTaskStatusOrException
java.lang.Object
org.opensearch.client.opensearch._types.BulkByScrollTaskStatusOrException
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<BulkByScrollTaskStatusOrException.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class BulkByScrollTaskStatusOrException
extends Object
implements TaggedUnion<BulkByScrollTaskStatusOrException.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumBulkByScrollTaskStatusOrExceptionvariant kinds. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<BulkByScrollTaskStatusOrException> -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.builder()booleanGet theexceptionvariant value.inthashCode()booleanIs this variant instance of kindexception?booleanisStatus()Is this variant instance of kindstatus?of(Function<BulkByScrollTaskStatusOrException.Builder, ObjectBuilder<BulkByScrollTaskStatusOrException>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) status()Get thestatusvariant value.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<BulkByScrollTaskStatusOrException.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<BulkByScrollTaskStatusOrException.Kind,Object>
-
of
-
isException
public boolean isException()Is this variant instance of kindexception? -
exception
Get theexceptionvariant value.- Throws:
IllegalStateException- if the current variant is not theexceptionkind.
-
isStatus
public boolean isStatus()Is this variant instance of kindstatus? -
status
Get thestatusvariant value.- Throws:
IllegalStateException- if the current variant is not thestatuskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-