Interface GetCostForecastResponse.Builder

    • Method Detail

      • total

        GetCostForecastResponse.Builder total​(MetricValue total)

        How much you are forecasted to spend over the forecast period, in USD.

        Parameters:
        total - How much you are forecasted to spend over the forecast period, in USD.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • forecastResultsByTime

        GetCostForecastResponse.Builder forecastResultsByTime​(Collection<ForecastResult> forecastResultsByTime)

        The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

        Parameters:
        forecastResultsByTime - The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • forecastResultsByTime

        GetCostForecastResponse.Builder forecastResultsByTime​(ForecastResult... forecastResultsByTime)

        The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

        Parameters:
        forecastResultsByTime - The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • forecastResultsByTime

        GetCostForecastResponse.Builder forecastResultsByTime​(Consumer<ForecastResult.Builder>... forecastResultsByTime)

        The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #forecastResultsByTime(List).

        Parameters:
        forecastResultsByTime - a consumer that will call methods on ForecastResult.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #forecastResultsByTime(java.util.Collection)