aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
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
559
560
561
562
563
564
565
566
567
568
569
570
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Output for GetPlanRecommendation. The recommendation is at the top level; `costs`, `alternatives`, `planOptions` and `analysis` hold what backs it. `summary` and `details` are always returned.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetPlanRecommendationOutput {
    /// The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
    pub pricing_model: crate::types::PricingModel,
    /// Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
    pub recommended_price: ::std::option::Option<crate::types::Price>,
    /// Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
    pub recommended_price_range: ::std::option::Option<crate::types::PriceRange>,
    /// Price per use of each action, for PER_USE and PER_USE_SPLIT.
    pub unit_prices: ::std::option::Option<::std::vec::Vec<crate::types::UnitPrice>>,
    /// The recommended plans. To create them, map each `actionName` to the app's metric ID.
    pub plans: ::std::vec::Vec<crate::types::RecommendedPlan>,
    /// One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
    pub credit_packs: ::std::vec::Vec<crate::types::RecommendedCreditPack>,
    /// Viability verdict.
    pub verdict: crate::types::RecommendationVerdict,
    /// Confidence in the recommendation.
    pub confidence: crate::types::RecommendationConfidence,
    /// Why the confidence is what it is.
    pub confidence_reason: ::std::string::String,
    /// What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
    pub basis: ::std::string::String,
    /// How the recommended price relates to cost to serve.
    pub costs: ::std::option::Option<crate::types::CostOutcome>,
    /// Which comparable apps were used and which were not.
    pub alternatives: ::std::option::Option<crate::types::AlternativesOutcome>,
    /// What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
    pub plan_options: ::std::option::Option<crate::types::PlanOptionsOutcome>,
    /// How the recommendation compares with other pricing models.
    pub analysis: ::std::option::Option<crate::types::PricingAnalysis>,
    /// Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
    pub recommendation_version: ::std::string::String,
    /// The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
    pub summary: ::std::string::String,
    /// The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
    pub details: ::std::string::String,
    _request_id: Option<String>,
}
impl GetPlanRecommendationOutput {
    /// The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
    pub fn pricing_model(&self) -> &crate::types::PricingModel {
        &self.pricing_model
    }
    /// Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
    pub fn recommended_price(&self) -> ::std::option::Option<&crate::types::Price> {
        self.recommended_price.as_ref()
    }
    /// Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
    pub fn recommended_price_range(&self) -> ::std::option::Option<&crate::types::PriceRange> {
        self.recommended_price_range.as_ref()
    }
    /// Price per use of each action, for PER_USE and PER_USE_SPLIT.
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.unit_prices.is_none()`.
    pub fn unit_prices(&self) -> &[crate::types::UnitPrice] {
        self.unit_prices.as_deref().unwrap_or_default()
    }
    /// The recommended plans. To create them, map each `actionName` to the app's metric ID.
    pub fn plans(&self) -> &[crate::types::RecommendedPlan] {
        use std::ops::Deref;
        self.plans.deref()
    }
    /// One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
    pub fn credit_packs(&self) -> &[crate::types::RecommendedCreditPack] {
        use std::ops::Deref;
        self.credit_packs.deref()
    }
    /// Viability verdict.
    pub fn verdict(&self) -> &crate::types::RecommendationVerdict {
        &self.verdict
    }
    /// Confidence in the recommendation.
    pub fn confidence(&self) -> &crate::types::RecommendationConfidence {
        &self.confidence
    }
    /// Why the confidence is what it is.
    pub fn confidence_reason(&self) -> &str {
        use std::ops::Deref;
        self.confidence_reason.deref()
    }
    /// What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
    pub fn basis(&self) -> &str {
        use std::ops::Deref;
        self.basis.deref()
    }
    /// How the recommended price relates to cost to serve.
    pub fn costs(&self) -> ::std::option::Option<&crate::types::CostOutcome> {
        self.costs.as_ref()
    }
    /// Which comparable apps were used and which were not.
    pub fn alternatives(&self) -> ::std::option::Option<&crate::types::AlternativesOutcome> {
        self.alternatives.as_ref()
    }
    /// What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
    pub fn plan_options(&self) -> ::std::option::Option<&crate::types::PlanOptionsOutcome> {
        self.plan_options.as_ref()
    }
    /// How the recommendation compares with other pricing models.
    pub fn analysis(&self) -> ::std::option::Option<&crate::types::PricingAnalysis> {
        self.analysis.as_ref()
    }
    /// Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
    pub fn recommendation_version(&self) -> &str {
        use std::ops::Deref;
        self.recommendation_version.deref()
    }
    /// The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
    pub fn summary(&self) -> &str {
        use std::ops::Deref;
        self.summary.deref()
    }
    /// The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
    pub fn details(&self) -> &str {
        use std::ops::Deref;
        self.details.deref()
    }
}
impl ::std::fmt::Debug for GetPlanRecommendationOutput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetPlanRecommendationOutput");
        formatter.field("pricing_model", &self.pricing_model);
        formatter.field("recommended_price", &self.recommended_price);
        formatter.field("recommended_price_range", &self.recommended_price_range);
        formatter.field("unit_prices", &self.unit_prices);
        formatter.field("plans", &self.plans);
        formatter.field("credit_packs", &self.credit_packs);
        formatter.field("verdict", &self.verdict);
        formatter.field("confidence", &self.confidence);
        formatter.field("confidence_reason", &"*** Sensitive Data Redacted ***");
        formatter.field("basis", &"*** Sensitive Data Redacted ***");
        formatter.field("costs", &"*** Sensitive Data Redacted ***");
        formatter.field("alternatives", &"*** Sensitive Data Redacted ***");
        formatter.field("plan_options", &"*** Sensitive Data Redacted ***");
        formatter.field("analysis", &"*** Sensitive Data Redacted ***");
        formatter.field("recommendation_version", &self.recommendation_version);
        formatter.field("summary", &"*** Sensitive Data Redacted ***");
        formatter.field("details", &"*** Sensitive Data Redacted ***");
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}
impl ::aws_types::request_id::RequestId for GetPlanRecommendationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetPlanRecommendationOutput {
    /// Creates a new builder-style object to manufacture [`GetPlanRecommendationOutput`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput).
    pub fn builder() -> crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder {
        crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::default()
    }
}

/// A builder for [`GetPlanRecommendationOutput`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetPlanRecommendationOutputBuilder {
    pub(crate) pricing_model: ::std::option::Option<crate::types::PricingModel>,
    pub(crate) recommended_price: ::std::option::Option<crate::types::Price>,
    pub(crate) recommended_price_range: ::std::option::Option<crate::types::PriceRange>,
    pub(crate) unit_prices: ::std::option::Option<::std::vec::Vec<crate::types::UnitPrice>>,
    pub(crate) plans: ::std::option::Option<::std::vec::Vec<crate::types::RecommendedPlan>>,
    pub(crate) credit_packs: ::std::option::Option<::std::vec::Vec<crate::types::RecommendedCreditPack>>,
    pub(crate) verdict: ::std::option::Option<crate::types::RecommendationVerdict>,
    pub(crate) confidence: ::std::option::Option<crate::types::RecommendationConfidence>,
    pub(crate) confidence_reason: ::std::option::Option<::std::string::String>,
    pub(crate) basis: ::std::option::Option<::std::string::String>,
    pub(crate) costs: ::std::option::Option<crate::types::CostOutcome>,
    pub(crate) alternatives: ::std::option::Option<crate::types::AlternativesOutcome>,
    pub(crate) plan_options: ::std::option::Option<crate::types::PlanOptionsOutcome>,
    pub(crate) analysis: ::std::option::Option<crate::types::PricingAnalysis>,
    pub(crate) recommendation_version: ::std::option::Option<::std::string::String>,
    pub(crate) summary: ::std::option::Option<::std::string::String>,
    pub(crate) details: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetPlanRecommendationOutputBuilder {
    /// The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
    /// This field is required.
    pub fn pricing_model(mut self, input: crate::types::PricingModel) -> Self {
        self.pricing_model = ::std::option::Option::Some(input);
        self
    }
    /// The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
    pub fn set_pricing_model(mut self, input: ::std::option::Option<crate::types::PricingModel>) -> Self {
        self.pricing_model = input;
        self
    }
    /// The recommended pricing model. Equals the request's `planOptions.pricingModelPreference` when `planOptions.preferenceOutcome` is HONORED.
    pub fn get_pricing_model(&self) -> &::std::option::Option<crate::types::PricingModel> {
        &self.pricing_model
    }
    /// Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
    pub fn recommended_price(mut self, input: crate::types::Price) -> Self {
        self.recommended_price = ::std::option::Option::Some(input);
        self
    }
    /// Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
    pub fn set_recommended_price(mut self, input: ::std::option::Option<crate::types::Price>) -> Self {
        self.recommended_price = input;
        self
    }
    /// Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in `plans` with `billingCycle` ANNUAL; this is still the monthly price.
    pub fn get_recommended_price(&self) -> &::std::option::Option<crate::types::Price> {
        &self.recommended_price
    }
    /// Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
    pub fn recommended_price_range(mut self, input: crate::types::PriceRange) -> Self {
        self.recommended_price_range = ::std::option::Option::Some(input);
        self
    }
    /// Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
    pub fn set_recommended_price_range(mut self, input: ::std::option::Option<crate::types::PriceRange>) -> Self {
        self.recommended_price_range = input;
        self
    }
    /// Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. `recommendedPrice` is the middle of this range.
    pub fn get_recommended_price_range(&self) -> &::std::option::Option<crate::types::PriceRange> {
        &self.recommended_price_range
    }
    /// Appends an item to `unit_prices`.
    ///
    /// To override the contents of this collection use [`set_unit_prices`](Self::set_unit_prices).
    ///
    /// Price per use of each action, for PER_USE and PER_USE_SPLIT.
    pub fn unit_prices(mut self, input: crate::types::UnitPrice) -> Self {
        let mut v = self.unit_prices.unwrap_or_default();
        v.push(input);
        self.unit_prices = ::std::option::Option::Some(v);
        self
    }
    /// Price per use of each action, for PER_USE and PER_USE_SPLIT.
    pub fn set_unit_prices(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::UnitPrice>>) -> Self {
        self.unit_prices = input;
        self
    }
    /// Price per use of each action, for PER_USE and PER_USE_SPLIT.
    pub fn get_unit_prices(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::UnitPrice>> {
        &self.unit_prices
    }
    /// Appends an item to `plans`.
    ///
    /// To override the contents of this collection use [`set_plans`](Self::set_plans).
    ///
    /// The recommended plans. To create them, map each `actionName` to the app's metric ID.
    pub fn plans(mut self, input: crate::types::RecommendedPlan) -> Self {
        let mut v = self.plans.unwrap_or_default();
        v.push(input);
        self.plans = ::std::option::Option::Some(v);
        self
    }
    /// The recommended plans. To create them, map each `actionName` to the app's metric ID.
    pub fn set_plans(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RecommendedPlan>>) -> Self {
        self.plans = input;
        self
    }
    /// The recommended plans. To create them, map each `actionName` to the app's metric ID.
    pub fn get_plans(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RecommendedPlan>> {
        &self.plans
    }
    /// Appends an item to `credit_packs`.
    ///
    /// To override the contents of this collection use [`set_credit_packs`](Self::set_credit_packs).
    ///
    /// One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
    pub fn credit_packs(mut self, input: crate::types::RecommendedCreditPack) -> Self {
        let mut v = self.credit_packs.unwrap_or_default();
        v.push(input);
        self.credit_packs = ::std::option::Option::Some(v);
        self
    }
    /// One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
    pub fn set_credit_packs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RecommendedCreditPack>>) -> Self {
        self.credit_packs = input;
        self
    }
    /// One-time credit packs sold alongside the plans. Empty unless the request's `planOptions.creditPackInclusion` was INCLUDE.
    pub fn get_credit_packs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RecommendedCreditPack>> {
        &self.credit_packs
    }
    /// Viability verdict.
    /// This field is required.
    pub fn verdict(mut self, input: crate::types::RecommendationVerdict) -> Self {
        self.verdict = ::std::option::Option::Some(input);
        self
    }
    /// Viability verdict.
    pub fn set_verdict(mut self, input: ::std::option::Option<crate::types::RecommendationVerdict>) -> Self {
        self.verdict = input;
        self
    }
    /// Viability verdict.
    pub fn get_verdict(&self) -> &::std::option::Option<crate::types::RecommendationVerdict> {
        &self.verdict
    }
    /// Confidence in the recommendation.
    /// This field is required.
    pub fn confidence(mut self, input: crate::types::RecommendationConfidence) -> Self {
        self.confidence = ::std::option::Option::Some(input);
        self
    }
    /// Confidence in the recommendation.
    pub fn set_confidence(mut self, input: ::std::option::Option<crate::types::RecommendationConfidence>) -> Self {
        self.confidence = input;
        self
    }
    /// Confidence in the recommendation.
    pub fn get_confidence(&self) -> &::std::option::Option<crate::types::RecommendationConfidence> {
        &self.confidence
    }
    /// Why the confidence is what it is.
    /// This field is required.
    pub fn confidence_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.confidence_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// Why the confidence is what it is.
    pub fn set_confidence_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.confidence_reason = input;
        self
    }
    /// Why the confidence is what it is.
    pub fn get_confidence_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.confidence_reason
    }
    /// What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
    /// This field is required.
    pub fn basis(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.basis = ::std::option::Option::Some(input.into());
        self
    }
    /// What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
    pub fn set_basis(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.basis = input;
        self
    }
    /// What the price is based on: modeled demand, or, without a value estimate, cost or comparables.
    pub fn get_basis(&self) -> &::std::option::Option<::std::string::String> {
        &self.basis
    }
    /// How the recommended price relates to cost to serve.
    /// This field is required.
    pub fn costs(mut self, input: crate::types::CostOutcome) -> Self {
        self.costs = ::std::option::Option::Some(input);
        self
    }
    /// How the recommended price relates to cost to serve.
    pub fn set_costs(mut self, input: ::std::option::Option<crate::types::CostOutcome>) -> Self {
        self.costs = input;
        self
    }
    /// How the recommended price relates to cost to serve.
    pub fn get_costs(&self) -> &::std::option::Option<crate::types::CostOutcome> {
        &self.costs
    }
    /// Which comparable apps were used and which were not.
    /// This field is required.
    pub fn alternatives(mut self, input: crate::types::AlternativesOutcome) -> Self {
        self.alternatives = ::std::option::Option::Some(input);
        self
    }
    /// Which comparable apps were used and which were not.
    pub fn set_alternatives(mut self, input: ::std::option::Option<crate::types::AlternativesOutcome>) -> Self {
        self.alternatives = input;
        self
    }
    /// Which comparable apps were used and which were not.
    pub fn get_alternatives(&self) -> &::std::option::Option<crate::types::AlternativesOutcome> {
        &self.alternatives
    }
    /// What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
    /// This field is required.
    pub fn plan_options(mut self, input: crate::types::PlanOptionsOutcome) -> Self {
        self.plan_options = ::std::option::Option::Some(input);
        self
    }
    /// What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
    pub fn set_plan_options(mut self, input: ::std::option::Option<crate::types::PlanOptionsOutcome>) -> Self {
        self.plan_options = input;
        self
    }
    /// What became of the request's `planOptions`: the pricing-model preference, the Free and Max plans and the evaluated plan prices.
    pub fn get_plan_options(&self) -> &::std::option::Option<crate::types::PlanOptionsOutcome> {
        &self.plan_options
    }
    /// How the recommendation compares with other pricing models.
    /// This field is required.
    pub fn analysis(mut self, input: crate::types::PricingAnalysis) -> Self {
        self.analysis = ::std::option::Option::Some(input);
        self
    }
    /// How the recommendation compares with other pricing models.
    pub fn set_analysis(mut self, input: ::std::option::Option<crate::types::PricingAnalysis>) -> Self {
        self.analysis = input;
        self
    }
    /// How the recommendation compares with other pricing models.
    pub fn get_analysis(&self) -> &::std::option::Option<crate::types::PricingAnalysis> {
        &self.analysis
    }
    /// Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
    /// This field is required.
    pub fn recommendation_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.recommendation_version = ::std::option::Option::Some(input.into());
        self
    }
    /// Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
    pub fn set_recommendation_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.recommendation_version = input;
        self
    }
    /// Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.
    pub fn get_recommendation_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.recommendation_version
    }
    /// The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
    /// This field is required.
    pub fn summary(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.summary = ::std::option::Option::Some(input.into());
        self
    }
    /// The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
    pub fn set_summary(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.summary = input;
        self
    }
    /// The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.
    pub fn get_summary(&self) -> &::std::option::Option<::std::string::String> {
        &self.summary
    }
    /// The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
    /// This field is required.
    pub fn details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.details = ::std::option::Option::Some(input.into());
        self
    }
    /// The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
    pub fn set_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.details = input;
        self
    }
    /// The same text as `summary` with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in `summary` and `details`.
    pub fn get_details(&self) -> &::std::option::Option<::std::string::String> {
        &self.details
    }
    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 [`GetPlanRecommendationOutput`](crate::operation::get_plan_recommendation::GetPlanRecommendationOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`pricing_model`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::pricing_model)
    /// - [`plans`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::plans)
    /// - [`credit_packs`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::credit_packs)
    /// - [`verdict`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::verdict)
    /// - [`confidence`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::confidence)
    /// - [`confidence_reason`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::confidence_reason)
    /// - [`basis`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::basis)
    /// - [`recommendation_version`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::recommendation_version)
    /// - [`summary`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::summary)
    /// - [`details`](crate::operation::get_plan_recommendation::builders::GetPlanRecommendationOutputBuilder::details)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_plan_recommendation::GetPlanRecommendationOutput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_plan_recommendation::GetPlanRecommendationOutput {
            pricing_model: self.pricing_model.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "pricing_model",
                    "pricing_model was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            recommended_price: self.recommended_price,
            recommended_price_range: self.recommended_price_range,
            unit_prices: self.unit_prices,
            plans: self.plans.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "plans",
                    "plans was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            credit_packs: self.credit_packs.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "credit_packs",
                    "credit_packs was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            verdict: self.verdict.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "verdict",
                    "verdict was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            confidence: self.confidence.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "confidence",
                    "confidence was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            confidence_reason: self.confidence_reason.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "confidence_reason",
                    "confidence_reason was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            basis: self.basis.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "basis",
                    "basis was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            costs: self.costs,
            alternatives: self.alternatives,
            plan_options: self.plan_options,
            analysis: self.analysis,
            recommendation_version: self.recommendation_version.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "recommendation_version",
                    "recommendation_version was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            summary: self.summary.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "summary",
                    "summary was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            details: self.details.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "details",
                    "details was not specified but it is required when building GetPlanRecommendationOutput",
                )
            })?,
            _request_id: self._request_id,
        })
    }
}
impl ::std::fmt::Debug for GetPlanRecommendationOutputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetPlanRecommendationOutputBuilder");
        formatter.field("pricing_model", &self.pricing_model);
        formatter.field("recommended_price", &self.recommended_price);
        formatter.field("recommended_price_range", &self.recommended_price_range);
        formatter.field("unit_prices", &self.unit_prices);
        formatter.field("plans", &self.plans);
        formatter.field("credit_packs", &self.credit_packs);
        formatter.field("verdict", &self.verdict);
        formatter.field("confidence", &self.confidence);
        formatter.field("confidence_reason", &"*** Sensitive Data Redacted ***");
        formatter.field("basis", &"*** Sensitive Data Redacted ***");
        formatter.field("costs", &"*** Sensitive Data Redacted ***");
        formatter.field("alternatives", &"*** Sensitive Data Redacted ***");
        formatter.field("plan_options", &"*** Sensitive Data Redacted ***");
        formatter.field("analysis", &"*** Sensitive Data Redacted ***");
        formatter.field("recommendation_version", &self.recommendation_version);
        formatter.field("summary", &"*** Sensitive Data Redacted ***");
        formatter.field("details", &"*** Sensitive Data Redacted ***");
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}