Class TaskFailure
java.lang.Object
org.opensearch.client.opensearch._types.TaskFailure
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TaskFailure.Builder,TaskFailure>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TaskFailure
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TaskFailure.Builder,TaskFailure>
The details of a task failure.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TaskFailure> Json deserializer forTaskFailure -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskFailure.Builderbuilder()booleaninthashCode()final StringnodeId()Required - API name:node_idstatic TaskFailurefinal ErrorCausereason()Required - API name:reasonvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringstatus()Required - The status of the failed task.final inttaskId()Required - The ID of the failed task.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTaskFailure
-
-
Method Details
-
of
-
nodeId
Required - API name:node_id -
reason
Required - API name:reason -
status
Required - The status of the failed task.API name:
status -
taskId
public final int taskId()Required - The ID of the failed task.API name:
task_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TaskFailure.Builder,TaskFailure> - Returns:
- a new builder instance.
-
builder
-
setupTaskFailureDeserializer
-
hashCode
public int hashCode() -
equals
-