Interface GetCostForecastResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCostForecastResponse.Builder,GetCostForecastResponse>,CostExplorerResponse.Builder,SdkBuilder<GetCostForecastResponse.Builder,GetCostForecastResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetCostForecastResponse
public static interface GetCostForecastResponse.Builder extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetCostForecastResponse.Builder,GetCostForecastResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetCostForecastResponse.BuilderforecastResultsByTime(Collection<ForecastResult> forecastResultsByTime)The forecasts for your query, in order.GetCostForecastResponse.BuilderforecastResultsByTime(Consumer<ForecastResult.Builder>... forecastResultsByTime)The forecasts for your query, in order.GetCostForecastResponse.BuilderforecastResultsByTime(ForecastResult... forecastResultsByTime)The forecasts for your query, in order.default GetCostForecastResponse.Buildertotal(Consumer<MetricValue.Builder> total)How much you are forecasted to spend over the forecast period, inUSD.GetCostForecastResponse.Buildertotal(MetricValue total)How much you are forecasted to spend over the forecast period, inUSD.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
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, inUSD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
default GetCostForecastResponse.Builder total(Consumer<MetricValue.Builder> total)
How much you are forecasted to spend over the forecast period, in
This is a convenience method that creates an instance of theUSD.MetricValue.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:
total(MetricValue)
-
forecastResultsByTime
GetCostForecastResponse.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
GetCostForecastResponse.Builder forecastResultsByTime(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
GetCostForecastResponse.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 to#forecastResultsByTime(List.) - 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:
#forecastResultsByTime(java.util.Collection)
-
-