Class DeleteForecastRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.DeleteForecastRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<DeleteForecastRequest>
- Enclosing class:
- DeleteForecastRequest
public static class DeleteForecastRequest.Builder extends java.lang.Object implements ObjectBuilder<DeleteForecastRequest>
Builder for
DeleteForecastRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteForecastRequest.Builder
allowNoForecasts(java.lang.Boolean value)
Whether to ignore if_all
matches no forecastsDeleteForecastRequest
build()
Builds aDeleteForecastRequest
.DeleteForecastRequest.Builder
forecastId(java.lang.String value)
The ID of the forecast to delete, can be comma delimited list.DeleteForecastRequest.Builder
jobId(java.lang.String value)
Required - The ID of the job from which to delete forecastsDeleteForecastRequest.Builder
timeout(java.lang.String value)
Controls the time to wait until the forecast(s) are deleted.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
-
jobId
Required - The ID of the job from which to delete forecastsAPI name:
job_id
-
forecastId
The ID of the forecast to delete, can be comma delimited list. Leaving blank implies_all
API name:
forecast_id
-
allowNoForecasts
Whether to ignore if_all
matches no forecastsAPI name:
allow_no_forecasts
-
timeout
Controls the time to wait until the forecast(s) are deleted. Default to 30 secondsAPI name:
timeout
-
build
Builds aDeleteForecastRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteForecastRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-