Class DeleteForecastRequest

    • Constructor Detail

      • DeleteForecastRequest

        public DeleteForecastRequest​(java.lang.String jobId)
        Create a new DeleteForecastRequest for the given Job ID
        Parameters:
        jobId - the jobId of the Job whose forecast(s) to delete
    • Method Detail

      • deleteAllForecasts

        public static DeleteForecastRequest deleteAllForecasts​(java.lang.String jobId)
        Create a new DeleteForecastRequest that explicitly deletes all forecasts
        Parameters:
        jobId - the jobId of the Job whose forecasts to delete
      • getJobId

        public java.lang.String getJobId()
      • getForecastIds

        public java.util.List<java.lang.String> getForecastIds()
      • setForecastIds

        public void setForecastIds​(java.lang.String... forecastIds)
        The forecast IDs to delete. Can be also be ALL to explicitly delete ALL forecasts
        Parameters:
        forecastIds - forecast IDs to delete
      • getAllowNoForecasts

        public java.lang.Boolean getAllowNoForecasts()
      • setAllowNoForecasts

        public void setAllowNoForecasts​(boolean allowNoForecasts)
        Sets the value of "allow_no_forecasts".
        Parameters:
        allowNoForecasts - when true no error is thrown when ALL does not find any forecasts
      • timeout

        public void timeout​(java.lang.String timeout)
        Allows to set the timeout
        Parameters:
        timeout - timeout as a string (e.g. 1s)
      • timeout

        public void timeout​(TimeValue timeout)
        Allows to set the timeout
        Parameters:
        timeout - timeout as a TimeValue
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object