Class MlJobForecasts.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MlJobForecasts.Builder>
co.elastic.clients.elasticsearch.xpack.usage.MlJobForecasts.Builder
- All Implemented Interfaces:
WithJson<MlJobForecasts.Builder>
,ObjectBuilder<MlJobForecasts>
- Enclosing class:
- MlJobForecasts
public static class MlJobForecasts.Builder extends WithJsonObjectBuilderBase<MlJobForecasts.Builder> implements ObjectBuilder<MlJobForecasts>
Builder for
MlJobForecasts
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MlJobForecasts
build()
Builds aMlJobForecasts
.MlJobForecasts.Builder
forecastedJobs(long value)
Required - API name:forecasted_jobs
protected MlJobForecasts.Builder
self()
MlJobForecasts.Builder
total(long value)
Required - API name:total
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
-
total
Required - API name:total
-
forecastedJobs
Required - API name:forecasted_jobs
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MlJobForecasts.Builder>
-
build
Builds aMlJobForecasts
.- Specified by:
build
in interfaceObjectBuilder<MlJobForecasts>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-