Class Task
java.lang.Object
org.opensearch.client.opensearch.ml.Task
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Task.Builder,Task>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Task
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Task.Builder,Task>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.Builderbuilder()final LongAPI name:create_timebooleanfinal Stringerror()API name:errorfinal FunctionNameAPI name:function_nameinthashCode()final BooleanisAsync()API name:is_asyncfinal LongAPI name:last_update_timefinal StringmodelId()API name:model_idstatic Taskof(Function<Task.Builder, ObjectBuilder<Task>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringstate()Required - API name:statefinal StringtaskId()API name:task_idfinal StringtaskType()Task type.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.API name:worker_nodeMethods 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 forTask
-
-
Method Details
-
of
-
createTime
API name:create_time -
error
API name:error -
functionName
API name:function_name -
isAsync
API name:is_async -
lastUpdateTime
API name:last_update_time -
modelId
API name:model_id -
state
Required - API name:state -
taskId
API name:task_id -
taskType
Task type.API name:
task_type -
workerNode
API name:worker_node -
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<Task.Builder,Task> - Returns:
- a new builder instance.
-
builder
-
setupTaskDeserializer
-
hashCode
public int hashCode() -
equals
-