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 MlJobForecastsbuild()Builds aMlJobForecasts.MlJobForecasts.BuilderforecastedJobs(long value)Required - API name:forecasted_jobsprotected MlJobForecasts.Builderself()MlJobForecasts.Buildertotal(long value)Required - API name:totalMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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
-
total
Required - API name:total -
forecastedJobs
Required - API name:forecasted_jobs -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MlJobForecasts.Builder>
-
build
Builds aMlJobForecasts.- Specified by:
buildin interfaceObjectBuilder<MlJobForecasts>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-