Interface ForecastResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ForecastResult.Builder,ForecastResult>, SdkBuilder<ForecastResult.Builder,ForecastResult>, SdkPojo
Enclosing class:
ForecastResult

public static interface ForecastResult.Builder extends SdkPojo, CopyableBuilder<ForecastResult.Builder,ForecastResult>
  • Method Details

    • timePeriod

      ForecastResult.Builder timePeriod(DateInterval timePeriod)

      The period of time that the forecast covers.

      Parameters:
      timePeriod - The period of time that the forecast covers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      default ForecastResult.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)

      The period of time that the forecast covers.

      This is a convenience method that creates an instance of the DateInterval.Builder avoiding the need to create one manually via DateInterval.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timePeriod(DateInterval).

      Parameters:
      timePeriod - a consumer that will call methods on DateInterval.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • meanValue

      ForecastResult.Builder meanValue(String meanValue)

      The mean value of the forecast.

      Parameters:
      meanValue - The mean value of the forecast.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • predictionIntervalLowerBound

      ForecastResult.Builder predictionIntervalLowerBound(String predictionIntervalLowerBound)

      The lower limit for the prediction interval.

      Parameters:
      predictionIntervalLowerBound - The lower limit for the prediction interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • predictionIntervalUpperBound

      ForecastResult.Builder predictionIntervalUpperBound(String predictionIntervalUpperBound)

      The upper limit for the prediction interval.

      Parameters:
      predictionIntervalUpperBound - The upper limit for the prediction interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.