Class TaskFailure.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TaskFailure.Builder>
co.elastic.clients.elasticsearch._types.TaskFailure.Builder
- All Implemented Interfaces:
WithJson<TaskFailure.Builder>
,ObjectBuilder<TaskFailure>
- Enclosing class:
- TaskFailure
public static class TaskFailure.Builder extends WithJsonObjectBuilderBase<TaskFailure.Builder> implements ObjectBuilder<TaskFailure>
Builder for
TaskFailure
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TaskFailure
build()
Builds aTaskFailure
.TaskFailure.Builder
nodeId(java.lang.String value)
Required - API name:node_id
TaskFailure.Builder
reason(ErrorCause value)
Required - API name:reason
TaskFailure.Builder
reason(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:reason
protected TaskFailure.Builder
self()
TaskFailure.Builder
status(java.lang.String value)
Required - API name:status
TaskFailure.Builder
taskId(long value)
Required - API name:task_id
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
taskId
Required - API name:task_id
-
nodeId
Required - API name:node_id
-
status
Required - API name:status
-
reason
Required - API name:reason
-
reason
public final TaskFailure.Builder reason(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Required - API name:reason
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TaskFailure.Builder>
-
build
Builds aTaskFailure
.- Specified by:
build
in interfaceObjectBuilder<TaskFailure>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-