Interface ListForecastsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListForecastsResponse.Builder,
,ListForecastsResponse> ForecastResponse.Builder
,SdkBuilder<ListForecastsResponse.Builder,
,ListForecastsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListForecastsResponse
public static interface ListForecastsResponse.Builder
extends ForecastResponse.Builder, SdkPojo, CopyableBuilder<ListForecastsResponse.Builder,ListForecastsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionforecasts
(Collection<ForecastSummary> forecasts) An array of objects that summarize each forecast's properties.forecasts
(Consumer<ForecastSummary.Builder>... forecasts) An array of objects that summarize each forecast's properties.forecasts
(ForecastSummary... forecasts) An array of objects that summarize each forecast's properties.If the response is truncated, Amazon Forecast returns this token.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
-
forecasts
An array of objects that summarize each forecast's properties.
- Parameters:
forecasts
- An array of objects that summarize each forecast's properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecasts
An array of objects that summarize each forecast's properties.
- Parameters:
forecasts
- An array of objects that summarize each forecast's properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecasts
An array of objects that summarize each forecast's properties.
This is a convenience method that creates an instance of theForecastSummary.Builder
avoiding the need to create one manually viaForecastSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toforecasts(List<ForecastSummary>)
.- Parameters:
forecasts
- a consumer that will call methods onForecastSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
- Parameters:
nextToken
- If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-