Package org.elasticsearch.client.ml
Class DeleteForecastRequest
java.lang.Object
org.elasticsearch.client.ml.DeleteForecastRequest
- All Implemented Interfaces:
Validatable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class DeleteForecastRequest
extends Object
implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
POJO for a delete forecast request
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<DeleteForecastRequest,Void>static org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMSFields inherited from interface org.elasticsearch.client.Validatable
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDeleteForecastRequest(String jobId)Create a new DeleteForecastRequest for the given Job ID -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteForecastRequestdeleteAllForecasts(String jobId)Create a newDeleteForecastRequestthat explicitly deletes all forecastsbooleangetJobId()inthashCode()voidsetAllowNoForecasts(boolean allowNoForecasts)Sets the value of "allow_no_forecasts".voidsetForecastIds(String... forecastIds)The forecast IDs to delete.org.elasticsearch.core.TimeValuetimeout()voidAllows to set the timeoutvoidtimeout(org.elasticsearch.core.TimeValue timeout)Allows to set the timeoutorg.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.client.Validatable
validate
-
Field Details
-
FORECAST_ID
public static final org.elasticsearch.common.xcontent.ParseField FORECAST_ID -
ALLOW_NO_FORECASTS
public static final org.elasticsearch.common.xcontent.ParseField ALLOW_NO_FORECASTS -
TIMEOUT
public static final org.elasticsearch.common.xcontent.ParseField TIMEOUT -
ALL
- See Also:
- Constant Field Values
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<DeleteForecastRequest,Void> PARSER
-
-
Constructor Details
-
DeleteForecastRequest
Create a new DeleteForecastRequest for the given Job ID- Parameters:
jobId- the jobId of the Job whose forecast(s) to delete
-
-
Method Details
-
deleteAllForecasts
Create a newDeleteForecastRequestthat explicitly deletes all forecasts- Parameters:
jobId- the jobId of the Job whose forecasts to delete
-
getJobId
-
getForecastIds
-
setForecastIds
The forecast IDs to delete. Can be also beALLto explicitly delete ALL forecasts- Parameters:
forecastIds- forecast IDs to delete
-
getAllowNoForecasts
-
setAllowNoForecasts
public void setAllowNoForecasts(boolean allowNoForecasts)Sets the value of "allow_no_forecasts".- Parameters:
allowNoForecasts- whentrueno error is thrown whenALLdoes not find any forecasts
-
timeout
Allows to set the timeout- Parameters:
timeout- timeout as a string (e.g. 1s)
-
timeout
public void timeout(org.elasticsearch.core.TimeValue timeout)Allows to set the timeout- Parameters:
timeout- timeout as aTimeValue
-
timeout
public org.elasticsearch.core.TimeValue timeout() -
equals
-
hashCode
public int hashCode() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-