Class PendingTasksRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cat.pending_tasks.PendingTasksRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<PendingTasksRecord.Builder,,PendingTasksRecord> MutableBuilder<PendingTasksRecord.Builder,,PendingTasksRecord> ObjectBuilder<PendingTasksRecord>
- Enclosing class:
PendingTasksRecord
public static class PendingTasksRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<PendingTasksRecord.Builder,PendingTasksRecord>
Builder for
PendingTasksRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPendingTasksRecord.copy()Create a new builderCopyableBuilderthat is a copy of this one.insertOrder(String value) The task insertion order.The task priority.The task source.timeInQueue(String value) Indicates how long the task has been in queue.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<PendingTasksRecord.Builder,PendingTasksRecord> - Returns:
- a new builder instance.
-
insertOrder
The task insertion order.API name:
insertOrder -
priority
The task priority.API name:
priority -
source
The task source.API name:
source -
timeInQueue
Indicates how long the task has been in queue.API name:
timeInQueue -
build
Builds aPendingTasksRecord.- Specified by:
buildin interfaceObjectBuilder<PendingTasksRecord>- Throws:
NullPointerException- if some of the required fields are null.
-