/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the forecastquery-2018-06-26.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.ForecastQueryService.Model; namespace Amazon.ForecastQueryService { /// /// Interface for accessing ForecastQueryService /// /// Provides APIs for creating and managing Amazon Forecast resources. /// public partial interface IAmazonForecastQueryService : IAmazonService, IDisposable { #region QueryForecast /// /// 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. /// /// /// /// Container for the necessary parameters to execute the QueryForecast service method. /// /// The response from the QueryForecast service method, as returned by ForecastQueryService. /// /// The value is invalid or is too long. /// /// /// The token is not valid. Tokens expire after 24 hours. /// /// /// The limit on the number of requests per second has been exceeded. /// /// /// The specified resource is in use. /// /// /// We can't find that resource. Check the information that you've provided and try again. /// /// REST API Reference for QueryForecast Operation QueryForecastResponse QueryForecast(QueryForecastRequest request); /// /// Initiates the asynchronous execution of the QueryForecast operation. /// /// /// Container for the necessary parameters to execute the QueryForecast operation on AmazonForecastQueryServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndQueryForecast /// operation. /// REST API Reference for QueryForecast Operation IAsyncResult BeginQueryForecast(QueryForecastRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the QueryForecast operation. /// /// /// The IAsyncResult returned by the call to BeginQueryForecast. /// /// Returns a QueryForecastResult from ForecastQueryService. /// REST API Reference for QueryForecast Operation QueryForecastResponse EndQueryForecast(IAsyncResult asyncResult); #endregion #region QueryWhatIfForecast /// /// Retrieves a what-if forecast. /// /// Container for the necessary parameters to execute the QueryWhatIfForecast service method. /// /// The response from the QueryWhatIfForecast service method, as returned by ForecastQueryService. /// /// The value is invalid or is too long. /// /// /// The token is not valid. Tokens expire after 24 hours. /// /// /// The limit on the number of requests per second has been exceeded. /// /// /// The specified resource is in use. /// /// /// We can't find that resource. Check the information that you've provided and try again. /// /// REST API Reference for QueryWhatIfForecast Operation QueryWhatIfForecastResponse QueryWhatIfForecast(QueryWhatIfForecastRequest request); /// /// Initiates the asynchronous execution of the QueryWhatIfForecast operation. /// /// /// Container for the necessary parameters to execute the QueryWhatIfForecast operation on AmazonForecastQueryServiceClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndQueryWhatIfForecast /// operation. /// REST API Reference for QueryWhatIfForecast Operation IAsyncResult BeginQueryWhatIfForecast(QueryWhatIfForecastRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the QueryWhatIfForecast operation. /// /// /// The IAsyncResult returned by the call to BeginQueryWhatIfForecast. /// /// Returns a QueryWhatIfForecastResult from ForecastQueryService. /// REST API Reference for QueryWhatIfForecast Operation QueryWhatIfForecastResponse EndQueryWhatIfForecast(IAsyncResult asyncResult); #endregion } }