aws_sdk_costoptimizationhub/operation/get_recommendation/
_get_recommendation_output.rs

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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRecommendationOutput {
    /// <p>The ID for the recommendation.</p>
    pub recommendation_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.</p>
    pub resource_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
    pub resource_arn: ::std::option::Option<::std::string::String>,
    /// <p>The account that the recommendation is for.</p>
    pub account_id: ::std::option::Option<::std::string::String>,
    /// <p>The currency code used for the recommendation.</p>
    pub currency_code: ::std::option::Option<::std::string::String>,
    /// <p>The lookback period that's used to generate the recommendation.</p>
    pub recommendation_lookback_period_in_days: ::std::option::Option<i32>,
    /// <p>The lookback period used to calculate cost impact for a recommendation.</p>
    pub cost_calculation_lookback_period_in_days: ::std::option::Option<i32>,
    /// <p>The estimated savings percentage relative to the total cost over the cost calculation lookback period.</p>
    pub estimated_savings_percentage: ::std::option::Option<f64>,
    /// <p>The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.</p>
    pub estimated_savings_over_cost_calculation_lookback_period: ::std::option::Option<f64>,
    /// <p>The type of resource.</p>
    pub current_resource_type: ::std::option::Option<crate::types::ResourceType>,
    /// <p>The resource type of the recommendation.</p>
    pub recommended_resource_type: ::std::option::Option<crate::types::ResourceType>,
    /// <p>The Amazon Web Services Region of the resource.</p>
    pub region: ::std::option::Option<::std::string::String>,
    /// <p>The source of the recommendation.</p>
    pub source: ::std::option::Option<crate::types::Source>,
    /// <p>The time when the recommendation was last generated.</p>
    pub last_refresh_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The estimated monthly savings amount for the recommendation.</p>
    pub estimated_monthly_savings: ::std::option::Option<f64>,
    /// <p>The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.</p>
    pub estimated_monthly_cost: ::std::option::Option<f64>,
    /// <p>The effort required to implement the recommendation.</p>
    pub implementation_effort: ::std::option::Option<crate::types::ImplementationEffort>,
    /// <p>Whether or not implementing the recommendation requires a restart.</p>
    pub restart_needed: ::std::option::Option<bool>,
    /// <p>The type of action you can take by adopting the recommendation.</p>
    pub action_type: ::std::option::Option<crate::types::ActionType>,
    /// <p>Whether or not implementing the recommendation can be rolled back.</p>
    pub rollback_possible: ::std::option::Option<bool>,
    /// <p>The details for the resource.</p>
    pub current_resource_details: ::std::option::Option<crate::types::ResourceDetails>,
    /// <p>The details about the recommended resource.</p>
    pub recommended_resource_details: ::std::option::Option<crate::types::ResourceDetails>,
    /// <p>A list of tags associated with the resource for which the recommendation exists.</p>
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    _request_id: Option<String>,
}
impl GetRecommendationOutput {
    /// <p>The ID for the recommendation.</p>
    pub fn recommendation_id(&self) -> ::std::option::Option<&str> {
        self.recommendation_id.as_deref()
    }
    /// <p>The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.</p>
    pub fn resource_id(&self) -> ::std::option::Option<&str> {
        self.resource_id.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
    pub fn resource_arn(&self) -> ::std::option::Option<&str> {
        self.resource_arn.as_deref()
    }
    /// <p>The account that the recommendation is for.</p>
    pub fn account_id(&self) -> ::std::option::Option<&str> {
        self.account_id.as_deref()
    }
    /// <p>The currency code used for the recommendation.</p>
    pub fn currency_code(&self) -> ::std::option::Option<&str> {
        self.currency_code.as_deref()
    }
    /// <p>The lookback period that's used to generate the recommendation.</p>
    pub fn recommendation_lookback_period_in_days(&self) -> ::std::option::Option<i32> {
        self.recommendation_lookback_period_in_days
    }
    /// <p>The lookback period used to calculate cost impact for a recommendation.</p>
    pub fn cost_calculation_lookback_period_in_days(&self) -> ::std::option::Option<i32> {
        self.cost_calculation_lookback_period_in_days
    }
    /// <p>The estimated savings percentage relative to the total cost over the cost calculation lookback period.</p>
    pub fn estimated_savings_percentage(&self) -> ::std::option::Option<f64> {
        self.estimated_savings_percentage
    }
    /// <p>The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.</p>
    pub fn estimated_savings_over_cost_calculation_lookback_period(&self) -> ::std::option::Option<f64> {
        self.estimated_savings_over_cost_calculation_lookback_period
    }
    /// <p>The type of resource.</p>
    pub fn current_resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> {
        self.current_resource_type.as_ref()
    }
    /// <p>The resource type of the recommendation.</p>
    pub fn recommended_resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> {
        self.recommended_resource_type.as_ref()
    }
    /// <p>The Amazon Web Services Region of the resource.</p>
    pub fn region(&self) -> ::std::option::Option<&str> {
        self.region.as_deref()
    }
    /// <p>The source of the recommendation.</p>
    pub fn source(&self) -> ::std::option::Option<&crate::types::Source> {
        self.source.as_ref()
    }
    /// <p>The time when the recommendation was last generated.</p>
    pub fn last_refresh_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_refresh_timestamp.as_ref()
    }
    /// <p>The estimated monthly savings amount for the recommendation.</p>
    pub fn estimated_monthly_savings(&self) -> ::std::option::Option<f64> {
        self.estimated_monthly_savings
    }
    /// <p>The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.</p>
    pub fn estimated_monthly_cost(&self) -> ::std::option::Option<f64> {
        self.estimated_monthly_cost
    }
    /// <p>The effort required to implement the recommendation.</p>
    pub fn implementation_effort(&self) -> ::std::option::Option<&crate::types::ImplementationEffort> {
        self.implementation_effort.as_ref()
    }
    /// <p>Whether or not implementing the recommendation requires a restart.</p>
    pub fn restart_needed(&self) -> ::std::option::Option<bool> {
        self.restart_needed
    }
    /// <p>The type of action you can take by adopting the recommendation.</p>
    pub fn action_type(&self) -> ::std::option::Option<&crate::types::ActionType> {
        self.action_type.as_ref()
    }
    /// <p>Whether or not implementing the recommendation can be rolled back.</p>
    pub fn rollback_possible(&self) -> ::std::option::Option<bool> {
        self.rollback_possible
    }
    /// <p>The details for the resource.</p>
    pub fn current_resource_details(&self) -> ::std::option::Option<&crate::types::ResourceDetails> {
        self.current_resource_details.as_ref()
    }
    /// <p>The details about the recommended resource.</p>
    pub fn recommended_resource_details(&self) -> ::std::option::Option<&crate::types::ResourceDetails> {
        self.recommended_resource_details.as_ref()
    }
    /// <p>A list of tags associated with the resource for which the recommendation exists.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
    pub fn tags(&self) -> &[crate::types::Tag] {
        self.tags.as_deref().unwrap_or_default()
    }
}
impl ::aws_types::request_id::RequestId for GetRecommendationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetRecommendationOutput {
    /// Creates a new builder-style object to manufacture [`GetRecommendationOutput`](crate::operation::get_recommendation::GetRecommendationOutput).
    pub fn builder() -> crate::operation::get_recommendation::builders::GetRecommendationOutputBuilder {
        crate::operation::get_recommendation::builders::GetRecommendationOutputBuilder::default()
    }
}

/// A builder for [`GetRecommendationOutput`](crate::operation::get_recommendation::GetRecommendationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRecommendationOutputBuilder {
    pub(crate) recommendation_id: ::std::option::Option<::std::string::String>,
    pub(crate) resource_id: ::std::option::Option<::std::string::String>,
    pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
    pub(crate) account_id: ::std::option::Option<::std::string::String>,
    pub(crate) currency_code: ::std::option::Option<::std::string::String>,
    pub(crate) recommendation_lookback_period_in_days: ::std::option::Option<i32>,
    pub(crate) cost_calculation_lookback_period_in_days: ::std::option::Option<i32>,
    pub(crate) estimated_savings_percentage: ::std::option::Option<f64>,
    pub(crate) estimated_savings_over_cost_calculation_lookback_period: ::std::option::Option<f64>,
    pub(crate) current_resource_type: ::std::option::Option<crate::types::ResourceType>,
    pub(crate) recommended_resource_type: ::std::option::Option<crate::types::ResourceType>,
    pub(crate) region: ::std::option::Option<::std::string::String>,
    pub(crate) source: ::std::option::Option<crate::types::Source>,
    pub(crate) last_refresh_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) estimated_monthly_savings: ::std::option::Option<f64>,
    pub(crate) estimated_monthly_cost: ::std::option::Option<f64>,
    pub(crate) implementation_effort: ::std::option::Option<crate::types::ImplementationEffort>,
    pub(crate) restart_needed: ::std::option::Option<bool>,
    pub(crate) action_type: ::std::option::Option<crate::types::ActionType>,
    pub(crate) rollback_possible: ::std::option::Option<bool>,
    pub(crate) current_resource_details: ::std::option::Option<crate::types::ResourceDetails>,
    pub(crate) recommended_resource_details: ::std::option::Option<crate::types::ResourceDetails>,
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    _request_id: Option<String>,
}
impl GetRecommendationOutputBuilder {
    /// <p>The ID for the recommendation.</p>
    pub fn recommendation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.recommendation_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for the recommendation.</p>
    pub fn set_recommendation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.recommendation_id = input;
        self
    }
    /// <p>The ID for the recommendation.</p>
    pub fn get_recommendation_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.recommendation_id
    }
    /// <p>The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.</p>
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.</p>
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_id = input;
        self
    }
    /// <p>The unique identifier for the resource. This is the same as the Amazon Resource Name (ARN), if available.</p>
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_id
    }
    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_arn
    }
    /// <p>The account that the recommendation is for.</p>
    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The account that the recommendation is for.</p>
    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_id = input;
        self
    }
    /// <p>The account that the recommendation is for.</p>
    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_id
    }
    /// <p>The currency code used for the recommendation.</p>
    pub fn currency_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.currency_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The currency code used for the recommendation.</p>
    pub fn set_currency_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.currency_code = input;
        self
    }
    /// <p>The currency code used for the recommendation.</p>
    pub fn get_currency_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.currency_code
    }
    /// <p>The lookback period that's used to generate the recommendation.</p>
    pub fn recommendation_lookback_period_in_days(mut self, input: i32) -> Self {
        self.recommendation_lookback_period_in_days = ::std::option::Option::Some(input);
        self
    }
    /// <p>The lookback period that's used to generate the recommendation.</p>
    pub fn set_recommendation_lookback_period_in_days(mut self, input: ::std::option::Option<i32>) -> Self {
        self.recommendation_lookback_period_in_days = input;
        self
    }
    /// <p>The lookback period that's used to generate the recommendation.</p>
    pub fn get_recommendation_lookback_period_in_days(&self) -> &::std::option::Option<i32> {
        &self.recommendation_lookback_period_in_days
    }
    /// <p>The lookback period used to calculate cost impact for a recommendation.</p>
    pub fn cost_calculation_lookback_period_in_days(mut self, input: i32) -> Self {
        self.cost_calculation_lookback_period_in_days = ::std::option::Option::Some(input);
        self
    }
    /// <p>The lookback period used to calculate cost impact for a recommendation.</p>
    pub fn set_cost_calculation_lookback_period_in_days(mut self, input: ::std::option::Option<i32>) -> Self {
        self.cost_calculation_lookback_period_in_days = input;
        self
    }
    /// <p>The lookback period used to calculate cost impact for a recommendation.</p>
    pub fn get_cost_calculation_lookback_period_in_days(&self) -> &::std::option::Option<i32> {
        &self.cost_calculation_lookback_period_in_days
    }
    /// <p>The estimated savings percentage relative to the total cost over the cost calculation lookback period.</p>
    pub fn estimated_savings_percentage(mut self, input: f64) -> Self {
        self.estimated_savings_percentage = ::std::option::Option::Some(input);
        self
    }
    /// <p>The estimated savings percentage relative to the total cost over the cost calculation lookback period.</p>
    pub fn set_estimated_savings_percentage(mut self, input: ::std::option::Option<f64>) -> Self {
        self.estimated_savings_percentage = input;
        self
    }
    /// <p>The estimated savings percentage relative to the total cost over the cost calculation lookback period.</p>
    pub fn get_estimated_savings_percentage(&self) -> &::std::option::Option<f64> {
        &self.estimated_savings_percentage
    }
    /// <p>The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.</p>
    pub fn estimated_savings_over_cost_calculation_lookback_period(mut self, input: f64) -> Self {
        self.estimated_savings_over_cost_calculation_lookback_period = ::std::option::Option::Some(input);
        self
    }
    /// <p>The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.</p>
    pub fn set_estimated_savings_over_cost_calculation_lookback_period(mut self, input: ::std::option::Option<f64>) -> Self {
        self.estimated_savings_over_cost_calculation_lookback_period = input;
        self
    }
    /// <p>The estimated savings amount over the lookback period used to calculate cost impact for a recommendation.</p>
    pub fn get_estimated_savings_over_cost_calculation_lookback_period(&self) -> &::std::option::Option<f64> {
        &self.estimated_savings_over_cost_calculation_lookback_period
    }
    /// <p>The type of resource.</p>
    pub fn current_resource_type(mut self, input: crate::types::ResourceType) -> Self {
        self.current_resource_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of resource.</p>
    pub fn set_current_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceType>) -> Self {
        self.current_resource_type = input;
        self
    }
    /// <p>The type of resource.</p>
    pub fn get_current_resource_type(&self) -> &::std::option::Option<crate::types::ResourceType> {
        &self.current_resource_type
    }
    /// <p>The resource type of the recommendation.</p>
    pub fn recommended_resource_type(mut self, input: crate::types::ResourceType) -> Self {
        self.recommended_resource_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The resource type of the recommendation.</p>
    pub fn set_recommended_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceType>) -> Self {
        self.recommended_resource_type = input;
        self
    }
    /// <p>The resource type of the recommendation.</p>
    pub fn get_recommended_resource_type(&self) -> &::std::option::Option<crate::types::ResourceType> {
        &self.recommended_resource_type
    }
    /// <p>The Amazon Web Services Region of the resource.</p>
    pub fn region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.region = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services Region of the resource.</p>
    pub fn set_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.region = input;
        self
    }
    /// <p>The Amazon Web Services Region of the resource.</p>
    pub fn get_region(&self) -> &::std::option::Option<::std::string::String> {
        &self.region
    }
    /// <p>The source of the recommendation.</p>
    pub fn source(mut self, input: crate::types::Source) -> Self {
        self.source = ::std::option::Option::Some(input);
        self
    }
    /// <p>The source of the recommendation.</p>
    pub fn set_source(mut self, input: ::std::option::Option<crate::types::Source>) -> Self {
        self.source = input;
        self
    }
    /// <p>The source of the recommendation.</p>
    pub fn get_source(&self) -> &::std::option::Option<crate::types::Source> {
        &self.source
    }
    /// <p>The time when the recommendation was last generated.</p>
    pub fn last_refresh_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_refresh_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the recommendation was last generated.</p>
    pub fn set_last_refresh_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_refresh_timestamp = input;
        self
    }
    /// <p>The time when the recommendation was last generated.</p>
    pub fn get_last_refresh_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_refresh_timestamp
    }
    /// <p>The estimated monthly savings amount for the recommendation.</p>
    pub fn estimated_monthly_savings(mut self, input: f64) -> Self {
        self.estimated_monthly_savings = ::std::option::Option::Some(input);
        self
    }
    /// <p>The estimated monthly savings amount for the recommendation.</p>
    pub fn set_estimated_monthly_savings(mut self, input: ::std::option::Option<f64>) -> Self {
        self.estimated_monthly_savings = input;
        self
    }
    /// <p>The estimated monthly savings amount for the recommendation.</p>
    pub fn get_estimated_monthly_savings(&self) -> &::std::option::Option<f64> {
        &self.estimated_monthly_savings
    }
    /// <p>The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.</p>
    pub fn estimated_monthly_cost(mut self, input: f64) -> Self {
        self.estimated_monthly_cost = ::std::option::Option::Some(input);
        self
    }
    /// <p>The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.</p>
    pub fn set_estimated_monthly_cost(mut self, input: ::std::option::Option<f64>) -> Self {
        self.estimated_monthly_cost = input;
        self
    }
    /// <p>The estimated monthly cost of the current resource. For Reserved Instances and Savings Plans, it refers to the cost for eligible usage.</p>
    pub fn get_estimated_monthly_cost(&self) -> &::std::option::Option<f64> {
        &self.estimated_monthly_cost
    }
    /// <p>The effort required to implement the recommendation.</p>
    pub fn implementation_effort(mut self, input: crate::types::ImplementationEffort) -> Self {
        self.implementation_effort = ::std::option::Option::Some(input);
        self
    }
    /// <p>The effort required to implement the recommendation.</p>
    pub fn set_implementation_effort(mut self, input: ::std::option::Option<crate::types::ImplementationEffort>) -> Self {
        self.implementation_effort = input;
        self
    }
    /// <p>The effort required to implement the recommendation.</p>
    pub fn get_implementation_effort(&self) -> &::std::option::Option<crate::types::ImplementationEffort> {
        &self.implementation_effort
    }
    /// <p>Whether or not implementing the recommendation requires a restart.</p>
    pub fn restart_needed(mut self, input: bool) -> Self {
        self.restart_needed = ::std::option::Option::Some(input);
        self
    }
    /// <p>Whether or not implementing the recommendation requires a restart.</p>
    pub fn set_restart_needed(mut self, input: ::std::option::Option<bool>) -> Self {
        self.restart_needed = input;
        self
    }
    /// <p>Whether or not implementing the recommendation requires a restart.</p>
    pub fn get_restart_needed(&self) -> &::std::option::Option<bool> {
        &self.restart_needed
    }
    /// <p>The type of action you can take by adopting the recommendation.</p>
    pub fn action_type(mut self, input: crate::types::ActionType) -> Self {
        self.action_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of action you can take by adopting the recommendation.</p>
    pub fn set_action_type(mut self, input: ::std::option::Option<crate::types::ActionType>) -> Self {
        self.action_type = input;
        self
    }
    /// <p>The type of action you can take by adopting the recommendation.</p>
    pub fn get_action_type(&self) -> &::std::option::Option<crate::types::ActionType> {
        &self.action_type
    }
    /// <p>Whether or not implementing the recommendation can be rolled back.</p>
    pub fn rollback_possible(mut self, input: bool) -> Self {
        self.rollback_possible = ::std::option::Option::Some(input);
        self
    }
    /// <p>Whether or not implementing the recommendation can be rolled back.</p>
    pub fn set_rollback_possible(mut self, input: ::std::option::Option<bool>) -> Self {
        self.rollback_possible = input;
        self
    }
    /// <p>Whether or not implementing the recommendation can be rolled back.</p>
    pub fn get_rollback_possible(&self) -> &::std::option::Option<bool> {
        &self.rollback_possible
    }
    /// <p>The details for the resource.</p>
    pub fn current_resource_details(mut self, input: crate::types::ResourceDetails) -> Self {
        self.current_resource_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>The details for the resource.</p>
    pub fn set_current_resource_details(mut self, input: ::std::option::Option<crate::types::ResourceDetails>) -> Self {
        self.current_resource_details = input;
        self
    }
    /// <p>The details for the resource.</p>
    pub fn get_current_resource_details(&self) -> &::std::option::Option<crate::types::ResourceDetails> {
        &self.current_resource_details
    }
    /// <p>The details about the recommended resource.</p>
    pub fn recommended_resource_details(mut self, input: crate::types::ResourceDetails) -> Self {
        self.recommended_resource_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>The details about the recommended resource.</p>
    pub fn set_recommended_resource_details(mut self, input: ::std::option::Option<crate::types::ResourceDetails>) -> Self {
        self.recommended_resource_details = input;
        self
    }
    /// <p>The details about the recommended resource.</p>
    pub fn get_recommended_resource_details(&self) -> &::std::option::Option<crate::types::ResourceDetails> {
        &self.recommended_resource_details
    }
    /// Appends an item to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>A list of tags associated with the resource for which the recommendation exists.</p>
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
        let mut v = self.tags.unwrap_or_default();
        v.push(input);
        self.tags = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of tags associated with the resource for which the recommendation exists.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>A list of tags associated with the resource for which the recommendation exists.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
        &self.tags
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetRecommendationOutput`](crate::operation::get_recommendation::GetRecommendationOutput).
    pub fn build(self) -> crate::operation::get_recommendation::GetRecommendationOutput {
        crate::operation::get_recommendation::GetRecommendationOutput {
            recommendation_id: self.recommendation_id,
            resource_id: self.resource_id,
            resource_arn: self.resource_arn,
            account_id: self.account_id,
            currency_code: self.currency_code,
            recommendation_lookback_period_in_days: self.recommendation_lookback_period_in_days,
            cost_calculation_lookback_period_in_days: self.cost_calculation_lookback_period_in_days,
            estimated_savings_percentage: self.estimated_savings_percentage,
            estimated_savings_over_cost_calculation_lookback_period: self.estimated_savings_over_cost_calculation_lookback_period,
            current_resource_type: self.current_resource_type,
            recommended_resource_type: self.recommended_resource_type,
            region: self.region,
            source: self.source,
            last_refresh_timestamp: self.last_refresh_timestamp,
            estimated_monthly_savings: self.estimated_monthly_savings,
            estimated_monthly_cost: self.estimated_monthly_cost,
            implementation_effort: self.implementation_effort,
            restart_needed: self.restart_needed,
            action_type: self.action_type,
            rollback_possible: self.rollback_possible,
            current_resource_details: self.current_resource_details,
            recommended_resource_details: self.recommended_resource_details,
            tags: self.tags,
            _request_id: self._request_id,
        }
    }
}