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 ofWhatIfForecastsobjects that describe the matched forecasts.whatIfForecasts(Consumer<WhatIfForecastSummary.Builder>... whatIfForecasts) An array ofWhatIfForecastsobjects that describe the matched forecasts.whatIfForecasts(WhatIfForecastSummary... whatIfForecasts) An array ofWhatIfForecastsobjects that describe the matched forecasts.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.forecast.model.ForecastResponse.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
-
whatIfForecasts
ListWhatIfForecastsResponse.Builder whatIfForecasts(Collection<WhatIfForecastSummary> whatIfForecasts) An array of
WhatIfForecastsobjects that describe the matched forecasts.- Parameters:
whatIfForecasts- An array ofWhatIfForecastsobjects that describe the matched forecasts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
whatIfForecasts
An array of
WhatIfForecastsobjects that describe the matched forecasts.- Parameters:
whatIfForecasts- An array ofWhatIfForecastsobjects 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 theWhatIfForecastsobjects that describe the matched forecasts.WhatIfForecastSummary.Builderavoiding the need to create one manually viaWhatIfForecastSummary.builder().When the
Consumercompletes,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.
-