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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The forecast computation configuration.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ForecastComputation {
    /// <p>The ID for a computation.</p>
    pub computation_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of a computation.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The time field that is used in a computation.</p>
    pub time: ::std::option::Option<crate::types::DimensionField>,
    /// <p>The value field that is used in a computation.</p>
    pub value: ::std::option::Option<crate::types::MeasureField>,
    /// <p>The periods forward setup of a forecast computation.</p>
    pub periods_forward: ::std::option::Option<i32>,
    /// <p>The periods backward setup of a forecast computation.</p>
    pub periods_backward: ::std::option::Option<i32>,
    /// <p>The upper boundary setup of a forecast computation.</p>
    pub upper_boundary: ::std::option::Option<f64>,
    /// <p>The lower boundary setup of a forecast computation.</p>
    pub lower_boundary: ::std::option::Option<f64>,
    /// <p>The prediction interval setup of a forecast computation.</p>
    pub prediction_interval: ::std::option::Option<i32>,
    /// <p>The seasonality setup of a forecast computation. Choose one of the following options:</p>
    /// <ul>
    /// <li> <p> <code>AUTOMATIC</code> </p> </li>
    /// <li> <p> <code>CUSTOM</code>: Checks the custom seasonality value.</p> </li>
    /// </ul>
    pub seasonality: ::std::option::Option<crate::types::ForecastComputationSeasonality>,
    /// <p>The custom seasonality value setup of a forecast computation.</p>
    pub custom_seasonality_value: ::std::option::Option<i32>,
}
impl ForecastComputation {
    /// <p>The ID for a computation.</p>
    pub fn computation_id(&self) -> ::std::option::Option<&str> {
        self.computation_id.as_deref()
    }
    /// <p>The name of a computation.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The time field that is used in a computation.</p>
    pub fn time(&self) -> ::std::option::Option<&crate::types::DimensionField> {
        self.time.as_ref()
    }
    /// <p>The value field that is used in a computation.</p>
    pub fn value(&self) -> ::std::option::Option<&crate::types::MeasureField> {
        self.value.as_ref()
    }
    /// <p>The periods forward setup of a forecast computation.</p>
    pub fn periods_forward(&self) -> ::std::option::Option<i32> {
        self.periods_forward
    }
    /// <p>The periods backward setup of a forecast computation.</p>
    pub fn periods_backward(&self) -> ::std::option::Option<i32> {
        self.periods_backward
    }
    /// <p>The upper boundary setup of a forecast computation.</p>
    pub fn upper_boundary(&self) -> ::std::option::Option<f64> {
        self.upper_boundary
    }
    /// <p>The lower boundary setup of a forecast computation.</p>
    pub fn lower_boundary(&self) -> ::std::option::Option<f64> {
        self.lower_boundary
    }
    /// <p>The prediction interval setup of a forecast computation.</p>
    pub fn prediction_interval(&self) -> ::std::option::Option<i32> {
        self.prediction_interval
    }
    /// <p>The seasonality setup of a forecast computation. Choose one of the following options:</p>
    /// <ul>
    /// <li> <p> <code>AUTOMATIC</code> </p> </li>
    /// <li> <p> <code>CUSTOM</code>: Checks the custom seasonality value.</p> </li>
    /// </ul>
    pub fn seasonality(&self) -> ::std::option::Option<&crate::types::ForecastComputationSeasonality> {
        self.seasonality.as_ref()
    }
    /// <p>The custom seasonality value setup of a forecast computation.</p>
    pub fn custom_seasonality_value(&self) -> ::std::option::Option<i32> {
        self.custom_seasonality_value
    }
}
impl ForecastComputation {
    /// Creates a new builder-style object to manufacture [`ForecastComputation`](crate::types::ForecastComputation).
    pub fn builder() -> crate::types::builders::ForecastComputationBuilder {
        crate::types::builders::ForecastComputationBuilder::default()
    }
}

/// A builder for [`ForecastComputation`](crate::types::ForecastComputation).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ForecastComputationBuilder {
    pub(crate) computation_id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) time: ::std::option::Option<crate::types::DimensionField>,
    pub(crate) value: ::std::option::Option<crate::types::MeasureField>,
    pub(crate) periods_forward: ::std::option::Option<i32>,
    pub(crate) periods_backward: ::std::option::Option<i32>,
    pub(crate) upper_boundary: ::std::option::Option<f64>,
    pub(crate) lower_boundary: ::std::option::Option<f64>,
    pub(crate) prediction_interval: ::std::option::Option<i32>,
    pub(crate) seasonality: ::std::option::Option<crate::types::ForecastComputationSeasonality>,
    pub(crate) custom_seasonality_value: ::std::option::Option<i32>,
}
impl ForecastComputationBuilder {
    /// <p>The ID for a computation.</p>
    pub fn computation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.computation_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for a computation.</p>
    pub fn set_computation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.computation_id = input;
        self
    }
    /// <p>The ID for a computation.</p>
    pub fn get_computation_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.computation_id
    }
    /// <p>The name of a computation.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a computation.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of a computation.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The time field that is used in a computation.</p>
    pub fn time(mut self, input: crate::types::DimensionField) -> Self {
        self.time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time field that is used in a computation.</p>
    pub fn set_time(mut self, input: ::std::option::Option<crate::types::DimensionField>) -> Self {
        self.time = input;
        self
    }
    /// <p>The time field that is used in a computation.</p>
    pub fn get_time(&self) -> &::std::option::Option<crate::types::DimensionField> {
        &self.time
    }
    /// <p>The value field that is used in a computation.</p>
    pub fn value(mut self, input: crate::types::MeasureField) -> Self {
        self.value = ::std::option::Option::Some(input);
        self
    }
    /// <p>The value field that is used in a computation.</p>
    pub fn set_value(mut self, input: ::std::option::Option<crate::types::MeasureField>) -> Self {
        self.value = input;
        self
    }
    /// <p>The value field that is used in a computation.</p>
    pub fn get_value(&self) -> &::std::option::Option<crate::types::MeasureField> {
        &self.value
    }
    /// <p>The periods forward setup of a forecast computation.</p>
    pub fn periods_forward(mut self, input: i32) -> Self {
        self.periods_forward = ::std::option::Option::Some(input);
        self
    }
    /// <p>The periods forward setup of a forecast computation.</p>
    pub fn set_periods_forward(mut self, input: ::std::option::Option<i32>) -> Self {
        self.periods_forward = input;
        self
    }
    /// <p>The periods forward setup of a forecast computation.</p>
    pub fn get_periods_forward(&self) -> &::std::option::Option<i32> {
        &self.periods_forward
    }
    /// <p>The periods backward setup of a forecast computation.</p>
    pub fn periods_backward(mut self, input: i32) -> Self {
        self.periods_backward = ::std::option::Option::Some(input);
        self
    }
    /// <p>The periods backward setup of a forecast computation.</p>
    pub fn set_periods_backward(mut self, input: ::std::option::Option<i32>) -> Self {
        self.periods_backward = input;
        self
    }
    /// <p>The periods backward setup of a forecast computation.</p>
    pub fn get_periods_backward(&self) -> &::std::option::Option<i32> {
        &self.periods_backward
    }
    /// <p>The upper boundary setup of a forecast computation.</p>
    pub fn upper_boundary(mut self, input: f64) -> Self {
        self.upper_boundary = ::std::option::Option::Some(input);
        self
    }
    /// <p>The upper boundary setup of a forecast computation.</p>
    pub fn set_upper_boundary(mut self, input: ::std::option::Option<f64>) -> Self {
        self.upper_boundary = input;
        self
    }
    /// <p>The upper boundary setup of a forecast computation.</p>
    pub fn get_upper_boundary(&self) -> &::std::option::Option<f64> {
        &self.upper_boundary
    }
    /// <p>The lower boundary setup of a forecast computation.</p>
    pub fn lower_boundary(mut self, input: f64) -> Self {
        self.lower_boundary = ::std::option::Option::Some(input);
        self
    }
    /// <p>The lower boundary setup of a forecast computation.</p>
    pub fn set_lower_boundary(mut self, input: ::std::option::Option<f64>) -> Self {
        self.lower_boundary = input;
        self
    }
    /// <p>The lower boundary setup of a forecast computation.</p>
    pub fn get_lower_boundary(&self) -> &::std::option::Option<f64> {
        &self.lower_boundary
    }
    /// <p>The prediction interval setup of a forecast computation.</p>
    pub fn prediction_interval(mut self, input: i32) -> Self {
        self.prediction_interval = ::std::option::Option::Some(input);
        self
    }
    /// <p>The prediction interval setup of a forecast computation.</p>
    pub fn set_prediction_interval(mut self, input: ::std::option::Option<i32>) -> Self {
        self.prediction_interval = input;
        self
    }
    /// <p>The prediction interval setup of a forecast computation.</p>
    pub fn get_prediction_interval(&self) -> &::std::option::Option<i32> {
        &self.prediction_interval
    }
    /// <p>The seasonality setup of a forecast computation. Choose one of the following options:</p>
    /// <ul>
    /// <li> <p> <code>AUTOMATIC</code> </p> </li>
    /// <li> <p> <code>CUSTOM</code>: Checks the custom seasonality value.</p> </li>
    /// </ul>
    pub fn seasonality(mut self, input: crate::types::ForecastComputationSeasonality) -> Self {
        self.seasonality = ::std::option::Option::Some(input);
        self
    }
    /// <p>The seasonality setup of a forecast computation. Choose one of the following options:</p>
    /// <ul>
    /// <li> <p> <code>AUTOMATIC</code> </p> </li>
    /// <li> <p> <code>CUSTOM</code>: Checks the custom seasonality value.</p> </li>
    /// </ul>
    pub fn set_seasonality(mut self, input: ::std::option::Option<crate::types::ForecastComputationSeasonality>) -> Self {
        self.seasonality = input;
        self
    }
    /// <p>The seasonality setup of a forecast computation. Choose one of the following options:</p>
    /// <ul>
    /// <li> <p> <code>AUTOMATIC</code> </p> </li>
    /// <li> <p> <code>CUSTOM</code>: Checks the custom seasonality value.</p> </li>
    /// </ul>
    pub fn get_seasonality(&self) -> &::std::option::Option<crate::types::ForecastComputationSeasonality> {
        &self.seasonality
    }
    /// <p>The custom seasonality value setup of a forecast computation.</p>
    pub fn custom_seasonality_value(mut self, input: i32) -> Self {
        self.custom_seasonality_value = ::std::option::Option::Some(input);
        self
    }
    /// <p>The custom seasonality value setup of a forecast computation.</p>
    pub fn set_custom_seasonality_value(mut self, input: ::std::option::Option<i32>) -> Self {
        self.custom_seasonality_value = input;
        self
    }
    /// <p>The custom seasonality value setup of a forecast computation.</p>
    pub fn get_custom_seasonality_value(&self) -> &::std::option::Option<i32> {
        &self.custom_seasonality_value
    }
    /// Consumes the builder and constructs a [`ForecastComputation`](crate::types::ForecastComputation).
    pub fn build(self) -> crate::types::ForecastComputation {
        crate::types::ForecastComputation {
            computation_id: self.computation_id,
            name: self.name,
            time: self.time,
            value: self.value,
            periods_forward: self.periods_forward,
            periods_backward: self.periods_backward,
            upper_boundary: self.upper_boundary,
            lower_boundary: self.lower_boundary,
            prediction_interval: self.prediction_interval,
            seasonality: self.seasonality,
            custom_seasonality_value: self.custom_seasonality_value,
        }
    }
}