Interface DescribeForecastResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeForecastResponse.Builder,DescribeForecastResponse>,ForecastResponse.Builder,SdkBuilder<DescribeForecastResponse.Builder,DescribeForecastResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeForecastResponse
public static interface DescribeForecastResponse.Builder extends ForecastResponse.Builder, SdkPojo, CopyableBuilder<DescribeForecastResponse.Builder,DescribeForecastResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DescribeForecastResponse.BuildercreationTime(Instant creationTime)When the forecast creation task was created.DescribeForecastResponse.BuilderdatasetGroupArn(String datasetGroupArn)The ARN of the dataset group that provided the data used to train the predictor.DescribeForecastResponse.BuilderestimatedTimeRemainingInMinutes(Long estimatedTimeRemainingInMinutes)The estimated time remaining in minutes for the forecast job to complete.DescribeForecastResponse.BuilderforecastArn(String forecastArn)The forecast ARN as specified in the request.DescribeForecastResponse.BuilderforecastName(String forecastName)The name of the forecast.DescribeForecastResponse.BuilderforecastTypes(String... forecastTypes)The quantiles at which probabilistic forecasts were generated.DescribeForecastResponse.BuilderforecastTypes(Collection<String> forecastTypes)The quantiles at which probabilistic forecasts were generated.DescribeForecastResponse.BuilderlastModificationTime(Instant lastModificationTime)The last time the resource was modified.DescribeForecastResponse.Buildermessage(String message)If an error occurred, an informational message about the error.DescribeForecastResponse.BuilderpredictorArn(String predictorArn)The ARN of the predictor used to generate the forecast.DescribeForecastResponse.Builderstatus(String status)The status of the forecast.default DescribeForecastResponse.BuildertimeSeriesSelector(Consumer<TimeSeriesSelector.Builder> timeSeriesSelector)The time series to include in the forecast.DescribeForecastResponse.BuildertimeSeriesSelector(TimeSeriesSelector timeSeriesSelector)The time series to include in the forecast.-
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
-
forecastArn
DescribeForecastResponse.Builder forecastArn(String forecastArn)
The forecast ARN as specified in the request.
- Parameters:
forecastArn- The forecast ARN as specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastName
DescribeForecastResponse.Builder forecastName(String forecastName)
The name of the forecast.
- Parameters:
forecastName- The name of the forecast.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastTypes
DescribeForecastResponse.Builder forecastTypes(Collection<String> forecastTypes)
The quantiles at which probabilistic forecasts were generated.
- Parameters:
forecastTypes- The quantiles at which probabilistic forecasts were generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forecastTypes
DescribeForecastResponse.Builder forecastTypes(String... forecastTypes)
The quantiles at which probabilistic forecasts were generated.
- Parameters:
forecastTypes- The quantiles at which probabilistic forecasts were generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predictorArn
DescribeForecastResponse.Builder predictorArn(String predictorArn)
The ARN of the predictor used to generate the forecast.
- Parameters:
predictorArn- The ARN of the predictor used to generate the forecast.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetGroupArn
DescribeForecastResponse.Builder datasetGroupArn(String datasetGroupArn)
The ARN of the dataset group that provided the data used to train the predictor.
- Parameters:
datasetGroupArn- The ARN of the dataset group that provided the data used to train the predictor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedTimeRemainingInMinutes
DescribeForecastResponse.Builder estimatedTimeRemainingInMinutes(Long estimatedTimeRemainingInMinutes)
The estimated time remaining in minutes for the forecast job to complete.
- Parameters:
estimatedTimeRemainingInMinutes- The estimated time remaining in minutes for the forecast job to complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
DescribeForecastResponse.Builder status(String status)
The status of the forecast. States include:
-
ACTIVE -
CREATE_PENDING,CREATE_IN_PROGRESS,CREATE_FAILED -
CREATE_STOPPING,CREATE_STOPPED -
DELETE_PENDING,DELETE_IN_PROGRESS,DELETE_FAILED
The
Statusof the forecast must beACTIVEbefore you can query or export the forecast.- Parameters:
status- The status of the forecast. States include:-
ACTIVE -
CREATE_PENDING,CREATE_IN_PROGRESS,CREATE_FAILED -
CREATE_STOPPING,CREATE_STOPPED -
DELETE_PENDING,DELETE_IN_PROGRESS,DELETE_FAILED
The
Statusof the forecast must beACTIVEbefore you can query or export the forecast.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
message
DescribeForecastResponse.Builder message(String message)
If an error occurred, an informational message about the error.
- Parameters:
message- If an error occurred, an informational message about the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
DescribeForecastResponse.Builder creationTime(Instant creationTime)
When the forecast creation task was created.
- Parameters:
creationTime- When the forecast creation task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModificationTime
DescribeForecastResponse.Builder lastModificationTime(Instant lastModificationTime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING- TheCreationTime. -
CREATE_IN_PROGRESS- The current timestamp. -
CREATE_STOPPING- The current timestamp. -
CREATE_STOPPED- When the job stopped. -
ACTIVEorCREATE_FAILED- When the job finished or failed.
- Parameters:
lastModificationTime- The last time the resource was modified. The timestamp depends on the status of the job:-
CREATE_PENDING- TheCreationTime. -
CREATE_IN_PROGRESS- The current timestamp. -
CREATE_STOPPING- The current timestamp. -
CREATE_STOPPED- When the job stopped. -
ACTIVEorCREATE_FAILED- When the job finished or failed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
timeSeriesSelector
DescribeForecastResponse.Builder timeSeriesSelector(TimeSeriesSelector timeSeriesSelector)
The time series to include in the forecast.
- Parameters:
timeSeriesSelector- The time series to include in the forecast.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeSeriesSelector
default DescribeForecastResponse.Builder timeSeriesSelector(Consumer<TimeSeriesSelector.Builder> timeSeriesSelector)
The time series to include in the forecast.
This is a convenience method that creates an instance of theTimeSeriesSelector.Builderavoiding the need to create one manually viaTimeSeriesSelector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeSeriesSelector(TimeSeriesSelector).- Parameters:
timeSeriesSelector- a consumer that will call methods onTimeSeriesSelector.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeSeriesSelector(TimeSeriesSelector)
-
-