@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonForecastQueryClient extends AmazonWebServiceClient implements AmazonForecastQuery
Provides APIs for creating and managing Amazon Forecast resources.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonForecastQueryClientBuilder |
builder() |
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.
|
QueryWhatIfForecastResult |
queryWhatIfForecast(QueryWhatIfForecastRequest request)
Retrieves a what-if forecast.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonForecastQueryClientBuilder builder()
public QueryForecastResult queryForecast(QueryForecastRequest request)
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
queryForecastRequest
- ResourceNotFoundException
- We can't find that resource. Check the information that you've provided and try again.ResourceInUseException
- The specified resource is in use.InvalidInputException
- The value is invalid or is too long.LimitExceededException
- The limit on the number of requests per second has been exceeded.InvalidNextTokenException
- The token is not valid. Tokens expire after 24 hours.public QueryWhatIfForecastResult queryWhatIfForecast(QueryWhatIfForecastRequest request)
Retrieves a what-if forecast.
queryWhatIfForecast
in interface AmazonForecastQuery
queryWhatIfForecastRequest
- ResourceNotFoundException
- We can't find that resource. Check the information that you've provided and try again.ResourceInUseException
- The specified resource is in use.InvalidInputException
- The value is invalid or is too long.LimitExceededException
- The limit on the number of requests per second has been exceeded.InvalidNextTokenException
- The token is not valid. Tokens expire after 24 hours.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 the request.
getCachedResponseMetadata
in interface AmazonForecastQuery
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonForecastQuery
shutdown
in class AmazonWebServiceClient