Class TaskFailure.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.TaskFailure.Builder
- All Implemented Interfaces:
CopyableBuilder<TaskFailure.Builder,,TaskFailure> MutableBuilder<TaskFailure.Builder,,TaskFailure> ObjectBuilder<TaskFailure>
- Enclosing class:
TaskFailure
public static class TaskFailure.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TaskFailure.Builder,TaskFailure>
Builder for
TaskFailure.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTaskFailure.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TaskFailure.BuilderRequired - API name:node_idfinal TaskFailure.BuilderRequired - API name:reasonfinal TaskFailure.Builderreason(ErrorCause value) Required - API name:reasonfinal TaskFailure.BuilderRequired - The status of the failed task.final TaskFailure.BuildertaskId(int value) Required - The ID of the failed task.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<TaskFailure.Builder,TaskFailure> - Returns:
- a new builder instance.
-
nodeId
Required - API name:node_id -
reason
Required - API name:reason -
reason
@Nonnull public final TaskFailure.Builder reason(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Required - API name:reason -
status
Required - The status of the failed task.API name:
status -
taskId
Required - The ID of the failed task.API name:
task_id -
build
Builds aTaskFailure.- Specified by:
buildin interfaceObjectBuilder<TaskFailure>- Throws:
NullPointerException- if some of the required fields are null.
-