Class PendingTask.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.pending_tasks.PendingTask.Builder
-
- All Implemented Interfaces:
ObjectBuilder<PendingTask>
- Enclosing class:
- PendingTask
public static class PendingTask.Builder extends ObjectBuilderBase implements ObjectBuilder<PendingTask>
Builder forPendingTask
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PendingTask
build()
Builds aPendingTask
.PendingTask.Builder
executing(boolean value)
Required - API name:executing
PendingTask.Builder
insertOrder(int value)
Required - API name:insert_order
PendingTask.Builder
priority(java.lang.String value)
Required - API name:priority
PendingTask.Builder
source(java.lang.String value)
Required - API name:source
PendingTask.Builder
timeInQueue(java.lang.String value)
Required - API name:time_in_queue
PendingTask.Builder
timeInQueueMillis(int value)
Required - API name:time_in_queue_millis
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
executing
public final PendingTask.Builder executing(boolean value)
Required - API name:executing
-
insertOrder
public final PendingTask.Builder insertOrder(int value)
Required - API name:insert_order
-
priority
public final PendingTask.Builder priority(java.lang.String value)
Required - API name:priority
-
source
public final PendingTask.Builder source(java.lang.String value)
Required - API name:source
-
timeInQueue
public final PendingTask.Builder timeInQueue(java.lang.String value)
Required - API name:time_in_queue
-
timeInQueueMillis
public final PendingTask.Builder timeInQueueMillis(int value)
Required - API name:time_in_queue_millis
-
build
public PendingTask build()
Builds aPendingTask
.- Specified by:
build
in interfaceObjectBuilder<PendingTask>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-