AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetPlanRecommendationResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/AlternativesOutcome.h>
9#include <aws/appmonetization/model/CostOutcome.h>
10#include <aws/appmonetization/model/PlanOptionsOutcome.h>
11#include <aws/appmonetization/model/Price.h>
12#include <aws/appmonetization/model/PriceRange.h>
13#include <aws/appmonetization/model/PricingAnalysis.h>
14#include <aws/appmonetization/model/PricingModel.h>
15#include <aws/appmonetization/model/RecommendationConfidence.h>
16#include <aws/appmonetization/model/RecommendationVerdict.h>
17#include <aws/appmonetization/model/RecommendedCreditPack.h>
18#include <aws/appmonetization/model/RecommendedPlan.h>
19#include <aws/appmonetization/model/UnitPrice.h>
20#include <aws/core/http/HttpResponse.h>
21#include <aws/core/utils/memory/stl/AWSString.h>
22#include <aws/core/utils/memory/stl/AWSVector.h>
23
24#include <utility>
25
26namespace Aws {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace AppMonetization {
36namespace Model {
46 public:
47 AWS_APPMONETIZATION_API GetPlanRecommendationResult() = default;
50
52
57 inline PricingModel GetPricingModel() const { return m_pricingModel; }
58 inline void SetPricingModel(PricingModel value) {
59 m_pricingModelHasBeenSet = true;
60 m_pricingModel = value;
61 }
63 SetPricingModel(value);
64 return *this;
65 }
67
69
74 inline const Price& GetRecommendedPrice() const { return m_recommendedPrice; }
75 template <typename RecommendedPriceT = Price>
76 void SetRecommendedPrice(RecommendedPriceT&& value) {
77 m_recommendedPriceHasBeenSet = true;
78 m_recommendedPrice = std::forward<RecommendedPriceT>(value);
79 }
80 template <typename RecommendedPriceT = Price>
82 SetRecommendedPrice(std::forward<RecommendedPriceT>(value));
83 return *this;
84 }
86
88
93 inline const PriceRange& GetRecommendedPriceRange() const { return m_recommendedPriceRange; }
94 template <typename RecommendedPriceRangeT = PriceRange>
95 void SetRecommendedPriceRange(RecommendedPriceRangeT&& value) {
96 m_recommendedPriceRangeHasBeenSet = true;
97 m_recommendedPriceRange = std::forward<RecommendedPriceRangeT>(value);
98 }
99 template <typename RecommendedPriceRangeT = PriceRange>
101 SetRecommendedPriceRange(std::forward<RecommendedPriceRangeT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<UnitPrice>& GetUnitPrices() const { return m_unitPrices; }
111 template <typename UnitPricesT = Aws::Vector<UnitPrice>>
112 void SetUnitPrices(UnitPricesT&& value) {
113 m_unitPricesHasBeenSet = true;
114 m_unitPrices = std::forward<UnitPricesT>(value);
115 }
116 template <typename UnitPricesT = Aws::Vector<UnitPrice>>
118 SetUnitPrices(std::forward<UnitPricesT>(value));
119 return *this;
120 }
121 template <typename UnitPricesT = UnitPrice>
123 m_unitPricesHasBeenSet = true;
124 m_unitPrices.emplace_back(std::forward<UnitPricesT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<RecommendedPlan>& GetPlans() const { return m_plans; }
135 template <typename PlansT = Aws::Vector<RecommendedPlan>>
136 void SetPlans(PlansT&& value) {
137 m_plansHasBeenSet = true;
138 m_plans = std::forward<PlansT>(value);
139 }
140 template <typename PlansT = Aws::Vector<RecommendedPlan>>
142 SetPlans(std::forward<PlansT>(value));
143 return *this;
144 }
145 template <typename PlansT = RecommendedPlan>
147 m_plansHasBeenSet = true;
148 m_plans.emplace_back(std::forward<PlansT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Vector<RecommendedCreditPack>& GetCreditPacks() const { return m_creditPacks; }
159 template <typename CreditPacksT = Aws::Vector<RecommendedCreditPack>>
160 void SetCreditPacks(CreditPacksT&& value) {
161 m_creditPacksHasBeenSet = true;
162 m_creditPacks = std::forward<CreditPacksT>(value);
163 }
164 template <typename CreditPacksT = Aws::Vector<RecommendedCreditPack>>
166 SetCreditPacks(std::forward<CreditPacksT>(value));
167 return *this;
168 }
169 template <typename CreditPacksT = RecommendedCreditPack>
171 m_creditPacksHasBeenSet = true;
172 m_creditPacks.emplace_back(std::forward<CreditPacksT>(value));
173 return *this;
174 }
176
178
181 inline RecommendationVerdict GetVerdict() const { return m_verdict; }
183 m_verdictHasBeenSet = true;
184 m_verdict = value;
185 }
187 SetVerdict(value);
188 return *this;
189 }
191
193
196 inline RecommendationConfidence GetConfidence() const { return m_confidence; }
198 m_confidenceHasBeenSet = true;
199 m_confidence = value;
200 }
202 SetConfidence(value);
203 return *this;
204 }
206
208
211 inline const Aws::String& GetConfidenceReason() const { return m_confidenceReason; }
212 template <typename ConfidenceReasonT = Aws::String>
213 void SetConfidenceReason(ConfidenceReasonT&& value) {
214 m_confidenceReasonHasBeenSet = true;
215 m_confidenceReason = std::forward<ConfidenceReasonT>(value);
216 }
217 template <typename ConfidenceReasonT = Aws::String>
219 SetConfidenceReason(std::forward<ConfidenceReasonT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetBasis() const { return m_basis; }
230 template <typename BasisT = Aws::String>
231 void SetBasis(BasisT&& value) {
232 m_basisHasBeenSet = true;
233 m_basis = std::forward<BasisT>(value);
234 }
235 template <typename BasisT = Aws::String>
237 SetBasis(std::forward<BasisT>(value));
238 return *this;
239 }
241
243
246 inline const CostOutcome& GetCosts() const { return m_costs; }
247 template <typename CostsT = CostOutcome>
248 void SetCosts(CostsT&& value) {
249 m_costsHasBeenSet = true;
250 m_costs = std::forward<CostsT>(value);
251 }
252 template <typename CostsT = CostOutcome>
254 SetCosts(std::forward<CostsT>(value));
255 return *this;
256 }
258
260
263 inline const AlternativesOutcome& GetAlternatives() const { return m_alternatives; }
264 template <typename AlternativesT = AlternativesOutcome>
265 void SetAlternatives(AlternativesT&& value) {
266 m_alternativesHasBeenSet = true;
267 m_alternatives = std::forward<AlternativesT>(value);
268 }
269 template <typename AlternativesT = AlternativesOutcome>
271 SetAlternatives(std::forward<AlternativesT>(value));
272 return *this;
273 }
275
277
281 inline const PlanOptionsOutcome& GetPlanOptions() const { return m_planOptions; }
282 template <typename PlanOptionsT = PlanOptionsOutcome>
283 void SetPlanOptions(PlanOptionsT&& value) {
284 m_planOptionsHasBeenSet = true;
285 m_planOptions = std::forward<PlanOptionsT>(value);
286 }
287 template <typename PlanOptionsT = PlanOptionsOutcome>
289 SetPlanOptions(std::forward<PlanOptionsT>(value));
290 return *this;
291 }
293
295
298 inline const PricingAnalysis& GetAnalysis() const { return m_analysis; }
299 template <typename AnalysisT = PricingAnalysis>
300 void SetAnalysis(AnalysisT&& value) {
301 m_analysisHasBeenSet = true;
302 m_analysis = std::forward<AnalysisT>(value);
303 }
304 template <typename AnalysisT = PricingAnalysis>
306 SetAnalysis(std::forward<AnalysisT>(value));
307 return *this;
308 }
310
312
316 inline const Aws::String& GetRecommendationVersion() const { return m_recommendationVersion; }
317 template <typename RecommendationVersionT = Aws::String>
318 void SetRecommendationVersion(RecommendationVersionT&& value) {
319 m_recommendationVersionHasBeenSet = true;
320 m_recommendationVersion = std::forward<RecommendationVersionT>(value);
321 }
322 template <typename RecommendationVersionT = Aws::String>
324 SetRecommendationVersion(std::forward<RecommendationVersionT>(value));
325 return *this;
326 }
328
330
334 inline const Aws::String& GetSummary() const { return m_summary; }
335 template <typename SummaryT = Aws::String>
336 void SetSummary(SummaryT&& value) {
337 m_summaryHasBeenSet = true;
338 m_summary = std::forward<SummaryT>(value);
339 }
340 template <typename SummaryT = Aws::String>
342 SetSummary(std::forward<SummaryT>(value));
343 return *this;
344 }
346
348
353 inline const Aws::String& GetDetails() const { return m_details; }
354 template <typename DetailsT = Aws::String>
355 void SetDetails(DetailsT&& value) {
356 m_detailsHasBeenSet = true;
357 m_details = std::forward<DetailsT>(value);
358 }
359 template <typename DetailsT = Aws::String>
361 SetDetails(std::forward<DetailsT>(value));
362 return *this;
363 }
365
367
368 inline const Aws::String& GetRequestId() const { return m_requestId; }
369 template <typename RequestIdT = Aws::String>
370 void SetRequestId(RequestIdT&& value) {
371 m_requestIdHasBeenSet = true;
372 m_requestId = std::forward<RequestIdT>(value);
373 }
374 template <typename RequestIdT = Aws::String>
376 SetRequestId(std::forward<RequestIdT>(value));
377 return *this;
378 }
380 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
381
382 private:
383 PricingModel m_pricingModel{PricingModel::NOT_SET};
384
385 Price m_recommendedPrice;
386
387 PriceRange m_recommendedPriceRange;
388
389 Aws::Vector<UnitPrice> m_unitPrices;
390
392
394
396
398
399 Aws::String m_confidenceReason;
400
401 Aws::String m_basis;
402
403 CostOutcome m_costs;
404
405 AlternativesOutcome m_alternatives;
406
407 PlanOptionsOutcome m_planOptions;
408
409 PricingAnalysis m_analysis;
410
411 Aws::String m_recommendationVersion;
412
413 Aws::String m_summary;
414
415 Aws::String m_details;
416
417 Aws::String m_requestId;
418 Aws::Http::HttpResponseCode m_HttpResponseCode;
419 bool m_pricingModelHasBeenSet = false;
420 bool m_recommendedPriceHasBeenSet = false;
421 bool m_recommendedPriceRangeHasBeenSet = false;
422 bool m_unitPricesHasBeenSet = false;
423 bool m_plansHasBeenSet = false;
424 bool m_creditPacksHasBeenSet = false;
425 bool m_verdictHasBeenSet = false;
426 bool m_confidenceHasBeenSet = false;
427 bool m_confidenceReasonHasBeenSet = false;
428 bool m_basisHasBeenSet = false;
429 bool m_costsHasBeenSet = false;
430 bool m_alternativesHasBeenSet = false;
431 bool m_planOptionsHasBeenSet = false;
432 bool m_analysisHasBeenSet = false;
433 bool m_recommendationVersionHasBeenSet = false;
434 bool m_summaryHasBeenSet = false;
435 bool m_detailsHasBeenSet = false;
436 bool m_requestIdHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace AppMonetization
441} // namespace Aws
GetPlanRecommendationResult & WithRecommendedPriceRange(RecommendedPriceRangeT &&value)
GetPlanRecommendationResult & WithDetails(DetailsT &&value)
GetPlanRecommendationResult & WithRequestId(RequestIdT &&value)
GetPlanRecommendationResult & WithAnalysis(AnalysisT &&value)
GetPlanRecommendationResult & WithAlternatives(AlternativesT &&value)
const Aws::Vector< RecommendedPlan > & GetPlans() const
AWS_APPMONETIZATION_API GetPlanRecommendationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPlanRecommendationResult & AddCreditPacks(CreditPacksT &&value)
GetPlanRecommendationResult & WithVerdict(RecommendationVerdict value)
GetPlanRecommendationResult & WithPlanOptions(PlanOptionsT &&value)
GetPlanRecommendationResult & WithRecommendationVersion(RecommendationVersionT &&value)
GetPlanRecommendationResult & WithRecommendedPrice(RecommendedPriceT &&value)
GetPlanRecommendationResult & WithConfidence(RecommendationConfidence value)
GetPlanRecommendationResult & AddUnitPrices(UnitPricesT &&value)
GetPlanRecommendationResult & WithConfidenceReason(ConfidenceReasonT &&value)
GetPlanRecommendationResult & WithPricingModel(PricingModel value)
AWS_APPMONETIZATION_API GetPlanRecommendationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPMONETIZATION_API GetPlanRecommendationResult()=default
GetPlanRecommendationResult & WithUnitPrices(UnitPricesT &&value)
const Aws::Vector< RecommendedCreditPack > & GetCreditPacks() const
GetPlanRecommendationResult & WithSummary(SummaryT &&value)
GetPlanRecommendationResult & WithCreditPacks(CreditPacksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue