Interface ListWhatIfForecastsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListWhatIfForecastsResponse.Builder,
,ListWhatIfForecastsResponse> ForecastResponse.Builder
,SdkBuilder<ListWhatIfForecastsResponse.Builder,
,ListWhatIfForecastsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListWhatIfForecastsResponse
public static interface ListWhatIfForecastsResponse.Builder
extends ForecastResponse.Builder, SdkPojo, CopyableBuilder<ListWhatIfForecastsResponse.Builder,ListWhatIfForecastsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf the result of the previous request was truncated, the response includes aNextToken
.whatIfForecasts
(Collection<WhatIfForecastSummary> whatIfForecasts) An array ofWhatIfForecasts
objects that describe the matched forecasts.whatIfForecasts
(Consumer<WhatIfForecastSummary.Builder>... whatIfForecasts) An array ofWhatIfForecasts
objects that describe the matched forecasts.whatIfForecasts
(WhatIfForecastSummary... whatIfForecasts) An array ofWhatIfForecasts
objects that describe the matched forecasts.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.forecast.model.ForecastResponse.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
-
whatIfForecasts
ListWhatIfForecastsResponse.Builder whatIfForecasts(Collection<WhatIfForecastSummary> whatIfForecasts) An array of
WhatIfForecasts
objects that describe the matched forecasts.- Parameters:
whatIfForecasts
- An array ofWhatIfForecasts
objects that describe the matched forecasts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
whatIfForecasts
An array of
WhatIfForecasts
objects that describe the matched forecasts.- Parameters:
whatIfForecasts
- An array ofWhatIfForecasts
objects that describe the matched forecasts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
whatIfForecasts
ListWhatIfForecastsResponse.Builder whatIfForecasts(Consumer<WhatIfForecastSummary.Builder>... whatIfForecasts) An array of
This is a convenience method that creates an instance of theWhatIfForecasts
objects that describe the matched forecasts.WhatIfForecastSummary.Builder
avoiding the need to create one manually viaWhatIfForecastSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towhatIfForecasts(List<WhatIfForecastSummary>)
.- Parameters:
whatIfForecasts
- a consumer that will call methods onWhatIfForecastSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.- Parameters:
nextToken
- If the result of the previous request was truncated, the response includes aNextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-