1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Operation shape for `QueryForecast`.
///
/// This is usually constructed for you using the the fluent builder returned by
/// [`query_forecast`](crate::client::Client::query_forecast).
///
/// See [`crate::client::fluent_builders::QueryForecast`] for more details about the operation.
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct QueryForecast {
    _private: (),
}
impl QueryForecast {
    /// Creates a new builder-style object to manufacture [`QueryForecastInput`](crate::input::QueryForecastInput).
    pub fn builder() -> crate::input::query_forecast_input::Builder {
        crate::input::query_forecast_input::Builder::default()
    }
    /// Creates a new `QueryForecast` operation.
    pub fn new() -> Self {
        Self { _private: () }
    }
}
impl aws_smithy_http::response::ParseStrictResponse for QueryForecast {
    type Output =
        std::result::Result<crate::output::QueryForecastOutput, crate::error::QueryForecastError>;
    fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
        if !response.status().is_success() && response.status().as_u16() != 200 {
            crate::operation_deser::parse_query_forecast_error(response)
        } else {
            crate::operation_deser::parse_query_forecast_response(response)
        }
    }
}

/// Operation shape for `QueryWhatIfForecast`.
///
/// This is usually constructed for you using the the fluent builder returned by
/// [`query_what_if_forecast`](crate::client::Client::query_what_if_forecast).
///
/// See [`crate::client::fluent_builders::QueryWhatIfForecast`] for more details about the operation.
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct QueryWhatIfForecast {
    _private: (),
}
impl QueryWhatIfForecast {
    /// Creates a new builder-style object to manufacture [`QueryWhatIfForecastInput`](crate::input::QueryWhatIfForecastInput).
    pub fn builder() -> crate::input::query_what_if_forecast_input::Builder {
        crate::input::query_what_if_forecast_input::Builder::default()
    }
    /// Creates a new `QueryWhatIfForecast` operation.
    pub fn new() -> Self {
        Self { _private: () }
    }
}
impl aws_smithy_http::response::ParseStrictResponse for QueryWhatIfForecast {
    type Output = std::result::Result<
        crate::output::QueryWhatIfForecastOutput,
        crate::error::QueryWhatIfForecastError,
    >;
    fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
        if !response.status().is_success() && response.status().as_u16() != 200 {
            crate::operation_deser::parse_query_what_if_forecast_error(response)
        } else {
            crate::operation_deser::parse_query_what_if_forecast_response(response)
        }
    }
}

/// Operation customization and supporting types
pub mod customize;