Interface GetUsageForecastResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetUsageForecastResponse.Builder,,GetUsageForecastResponse> CostExplorerResponse.Builder,SdkBuilder<GetUsageForecastResponse.Builder,,GetUsageForecastResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetUsageForecastResponse
-
Method Summary
Modifier and TypeMethodDescriptionforecastResultsByTime(Collection<ForecastResult> forecastResultsByTime) The forecasts for your query, in order.forecastResultsByTime(Consumer<ForecastResult.Builder>... forecastResultsByTime) The forecasts for your query, in order.forecastResultsByTime(ForecastResult... forecastResultsByTime) The forecasts for your query, in order.default GetUsageForecastResponse.Buildertotal(Consumer<MetricValue.Builder> total) How much you're forecasted to use over the forecast period.total(MetricValue total) How much you're forecasted to use over the forecast period.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
total
How much you're forecasted to use over the forecast period.
- Parameters:
total- How much you're forecasted to use over the forecast period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
How much you're forecasted to use over the forecast period.
This is a convenience method that creates an instance of theMetricValue.Builderavoiding the need to create one manually viaMetricValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototal(MetricValue).- Parameters:
total- a consumer that will call methods onMetricValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
forecastResultsByTime
GetUsageForecastResponse.Builder forecastResultsByTime(Collection<ForecastResult> forecastResultsByTime) The forecasts for your query, in order. For
DAILYforecasts, this is a list of days. ForMONTHLYforecasts, this is a list of months.- Parameters:
forecastResultsByTime- The forecasts for your query, in order. ForDAILYforecasts, this is a list of days. ForMONTHLYforecasts, this is a list of months.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastResultsByTime
The forecasts for your query, in order. For
DAILYforecasts, this is a list of days. ForMONTHLYforecasts, this is a list of months.- Parameters:
forecastResultsByTime- The forecasts for your query, in order. ForDAILYforecasts, this is a list of days. ForMONTHLYforecasts, this is a list of months.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastResultsByTime
GetUsageForecastResponse.Builder forecastResultsByTime(Consumer<ForecastResult.Builder>... forecastResultsByTime) The forecasts for your query, in order. For
This is a convenience method that creates an instance of theDAILYforecasts, this is a list of days. ForMONTHLYforecasts, this is a list of months.ForecastResult.Builderavoiding the need to create one manually viaForecastResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforecastResultsByTime(List<ForecastResult>).- Parameters:
forecastResultsByTime- a consumer that will call methods onForecastResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-