Interface QueryWhatIfForecastResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<QueryWhatIfForecastResponse.Builder,
,QueryWhatIfForecastResponse> ForecastqueryResponse.Builder
,SdkBuilder<QueryWhatIfForecastResponse.Builder,
,QueryWhatIfForecastResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
QueryWhatIfForecastResponse
public static interface QueryWhatIfForecastResponse.Builder
extends ForecastqueryResponse.Builder, SdkPojo, CopyableBuilder<QueryWhatIfForecastResponse.Builder,QueryWhatIfForecastResponse>
-
Method Summary
Modifier and TypeMethodDescriptionforecast
(Consumer<Forecast.Builder> forecast) Sets the value of the Forecast property for this object.Sets the value of the Forecast property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.forecastquery.model.ForecastqueryResponse.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 Details
-
forecast
Sets the value of the Forecast property for this object.- Parameters:
forecast
- The new value for the Forecast property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecast
Sets the value of the Forecast property for this object. This is a convenience method that creates an instance of theForecast.Builder
avoiding the need to create one manually viaForecast.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toforecast(Forecast)
.- Parameters:
forecast
- a consumer that will call methods onForecast.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-