Class TaskStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.tasks.TaskStatus.Builder
- All Implemented Interfaces:
ObjectBuilder<TaskStatus>
- Enclosing class:
- TaskStatus
public static class TaskStatus.Builder extends ObjectBuilderBase implements ObjectBuilder<TaskStatus>
Builder for
TaskStatus.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TaskStatus.Builderbatches(long value)Required - API name:batchesTaskStatusbuild()Builds aTaskStatus.TaskStatus.Buildercanceled(java.lang.String value)API name:canceledTaskStatus.Buildercreated(long value)Required - API name:createdTaskStatus.Builderdeleted(long value)Required - API name:deletedTaskStatus.Builderfailures(java.lang.String value, java.lang.String... values)API name:failuresTaskStatus.Builderfailures(java.util.List<java.lang.String> list)API name:failuresTaskStatus.Buildernoops(long value)Required - API name:noopsTaskStatus.BuilderrequestsPerSecond(float value)Required - API name:requests_per_secondTaskStatus.Builderretries(Retries value)Required - API name:retriesTaskStatus.Builderretries(java.util.function.Function<Retries.Builder,ObjectBuilder<Retries>> fn)Required - API name:retriesTaskStatus.Builderthrottled(Time value)API name:throttledTaskStatus.Builderthrottled(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:throttledTaskStatus.BuilderthrottledMillis(long value)Required - API name:throttled_millisTaskStatus.BuilderthrottledUntil(Time value)API name:throttled_untilTaskStatus.BuilderthrottledUntil(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:throttled_untilTaskStatus.BuilderthrottledUntilMillis(long value)Required - API name:throttled_until_millisTaskStatus.BuildertimedOut(java.lang.Boolean value)API name:timed_outTaskStatus.Buildertook(java.lang.Long value)API name:tookTaskStatus.Buildertotal(long value)Required - API name:totalTaskStatus.Builderupdated(long value)Required - API name:updatedTaskStatus.BuilderversionConflicts(long value)Required - API name:version_conflictsMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batches
Required - API name:batches -
canceled
API name:canceled -
created
Required - API name:created -
deleted
Required - API name:deleted -
noops
Required - API name:noops -
failures
API name:failuresAdds all elements of
listtofailures. -
failures
API name:failuresAdds one or more values to
failures. -
requestsPerSecond
Required - API name:requests_per_second -
retries
Required - API name:retries -
retries
public final TaskStatus.Builder retries(java.util.function.Function<Retries.Builder,ObjectBuilder<Retries>> fn)Required - API name:retries -
throttled
API name:throttled -
throttled
public final TaskStatus.Builder throttled(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:throttled -
throttledMillis
Required - API name:throttled_millis -
throttledUntil
API name:throttled_until -
throttledUntil
public final TaskStatus.Builder throttledUntil(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:throttled_until -
throttledUntilMillis
Required - API name:throttled_until_millis -
timedOut
API name:timed_out -
took
API name:took -
total
Required - API name:total -
updated
Required - API name:updated -
versionConflicts
Required - API name:version_conflicts -
build
Builds aTaskStatus.- Specified by:
buildin interfaceObjectBuilder<TaskStatus>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-