aws_sdk_forecastquery/client/
query_what_if_forecast.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`QueryWhatIfForecast`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`what_if_forecast_arn(impl Into<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::what_if_forecast_arn) / [`set_what_if_forecast_arn(Option<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::set_what_if_forecast_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the what-if forecast to query.</p><br>
7    ///   - [`start_date(impl Into<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::start_date) / [`set_start_date(Option<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::set_start_date):<br>required: **false**<br><p>The start date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00.</p><br>
8    ///   - [`end_date(impl Into<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::end_date) / [`set_end_date(Option<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::set_end_date):<br>required: **false**<br><p>The end date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T20:00:00.</p><br>
9    ///   - [`filters(impl Into<String>, impl Into<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::filters) / [`set_filters(Option<HashMap::<String, String>>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::set_filters):<br>required: **true**<br><p>The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for <code>client_21</code> in the electricity usage dataset, specify the following:</p> <p><code>{"item_id" : "client_21"}</code></p> <p>To get the full what-if forecast, use the <a href="https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateWhatIfForecastExport.html">CreateForecastExportJob</a> operation.</p><br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::set_next_token):<br>required: **false**<br><p>If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.</p><br>
11    /// - On success, responds with [`QueryWhatIfForecastOutput`](crate::operation::query_what_if_forecast::QueryWhatIfForecastOutput) with field(s):
12    ///   - [`forecast(Option<Forecast>)`](crate::operation::query_what_if_forecast::QueryWhatIfForecastOutput::forecast): <p>Provides information about a forecast. Returned as part of the <code>QueryForecast</code> response.</p>
13    /// - On failure, responds with [`SdkError<QueryWhatIfForecastError>`](crate::operation::query_what_if_forecast::QueryWhatIfForecastError)
14    pub fn query_what_if_forecast(&self) -> crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder {
15        crate::operation::query_what_if_forecast::builders::QueryWhatIfForecastFluentBuilder::new(self.handle.clone())
16    }
17}