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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListForecastsResponse.Builderforecasts(Collection<ForecastSummary> forecasts)An array of objects that summarize each forecast's properties.ListForecastsResponse.Builderforecasts(Consumer<ForecastSummary.Builder>... forecasts)An array of objects that summarize each forecast's properties.ListForecastsResponse.Builderforecasts(ForecastSummary... forecasts)An array of objects that summarize each forecast's properties.ListForecastsResponse.BuildernextToken(String nextToken)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 Detail
-
forecasts
ListForecastsResponse.Builder forecasts(Collection<ForecastSummary> 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
ListForecastsResponse.Builder forecasts(ForecastSummary... 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
ListForecastsResponse.Builder forecasts(Consumer<ForecastSummary.Builder>... forecasts)
An array of objects that summarize each forecast's properties.
This is a convenience method that creates an instance of theForecastSummary.Builderavoiding the need to create one manually viaForecastSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#forecasts(List.) - 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:
#forecasts(java.util.Collection)
-
nextToken
ListForecastsResponse.Builder nextToken(String 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.
-
-