@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonForecastQuery extends Object implements AmazonForecastQuery
AmazonForecastQuery
. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
QueryForecastResult |
queryForecast(QueryForecastRequest request)
Retrieves a forecast for a single item, filtered by the supplied criteria.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
public QueryForecastResult queryForecast(QueryForecastRequest request)
AmazonForecastQuery
Retrieves a forecast for a single item, filtered by the supplied criteria.
The criteria is a key-value pair. The key is either item_id
(or the equivalent non-timestamp,
non-target field) from the TARGET_TIME_SERIES
dataset, or one of the forecast dimensions specified
as part of the FeaturizationConfig
object.
By default, QueryForecast
returns the complete date range for the filtered forecast. You can request
a specific date range.
To get the full forecast, use the CreateForecastExportJob operation.
The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
queryForecast
in interface AmazonForecastQuery
public void shutdown()
AmazonForecastQuery
shutdown
in interface AmazonForecastQuery
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonForecastQuery
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AmazonForecastQuery
request
- The originally executed request.