AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
EvaluatedPlanPrice.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/appmonetization/model/RecommendationVerdict.h>
10#include <aws/appmonetization/model/RecommendedCreditPack.h>
11#include <aws/appmonetization/model/RecommendedPlan.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppMonetization {
25namespace Model {
26
34 public:
35 AWS_APPMONETIZATION_API EvaluatedPlanPrice() = default;
36 AWS_APPMONETIZATION_API EvaluatedPlanPrice(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API EvaluatedPlanPrice& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetPlanCode() const { return m_planCode; }
45 inline bool PlanCodeHasBeenSet() const { return m_planCodeHasBeenSet; }
46 template <typename PlanCodeT = Aws::String>
47 void SetPlanCode(PlanCodeT&& value) {
48 m_planCodeHasBeenSet = true;
49 m_planCode = std::forward<PlanCodeT>(value);
50 }
51 template <typename PlanCodeT = Aws::String>
52 EvaluatedPlanPrice& WithPlanCode(PlanCodeT&& value) {
53 SetPlanCode(std::forward<PlanCodeT>(value));
54 return *this;
55 }
57
59
63 inline const Price& GetPrice() const { return m_price; }
64 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
65 template <typename PriceT = Price>
66 void SetPrice(PriceT&& value) {
67 m_priceHasBeenSet = true;
68 m_price = std::forward<PriceT>(value);
69 }
70 template <typename PriceT = Price>
71 EvaluatedPlanPrice& WithPrice(PriceT&& value) {
72 SetPrice(std::forward<PriceT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetMonthlyProfit() const { return m_monthlyProfit; }
82 inline bool MonthlyProfitHasBeenSet() const { return m_monthlyProfitHasBeenSet; }
83 template <typename MonthlyProfitT = Aws::String>
84 void SetMonthlyProfit(MonthlyProfitT&& value) {
85 m_monthlyProfitHasBeenSet = true;
86 m_monthlyProfit = std::forward<MonthlyProfitT>(value);
87 }
88 template <typename MonthlyProfitT = Aws::String>
89 EvaluatedPlanPrice& WithMonthlyProfit(MonthlyProfitT&& value) {
90 SetMonthlyProfit(std::forward<MonthlyProfitT>(value));
91 return *this;
92 }
94
96
99 inline double GetPaidShare() const { return m_paidShare; }
100 inline bool PaidShareHasBeenSet() const { return m_paidShareHasBeenSet; }
101 inline void SetPaidShare(double value) {
102 m_paidShareHasBeenSet = true;
103 m_paidShare = value;
104 }
105 inline EvaluatedPlanPrice& WithPaidShare(double value) {
106 SetPaidShare(value);
107 return *this;
108 }
110
112
115 inline RecommendationVerdict GetVerdict() const { return m_verdict; }
116 inline bool VerdictHasBeenSet() const { return m_verdictHasBeenSet; }
118 m_verdictHasBeenSet = true;
119 m_verdict = value;
120 }
122 SetVerdict(value);
123 return *this;
124 }
126
128
134 inline const Aws::Vector<RecommendedPlan>& GetPlans() const { return m_plans; }
135 inline bool PlansHasBeenSet() const { return m_plansHasBeenSet; }
136 template <typename PlansT = Aws::Vector<RecommendedPlan>>
137 void SetPlans(PlansT&& value) {
138 m_plansHasBeenSet = true;
139 m_plans = std::forward<PlansT>(value);
140 }
141 template <typename PlansT = Aws::Vector<RecommendedPlan>>
142 EvaluatedPlanPrice& WithPlans(PlansT&& value) {
143 SetPlans(std::forward<PlansT>(value));
144 return *this;
145 }
146 template <typename PlansT = RecommendedPlan>
147 EvaluatedPlanPrice& AddPlans(PlansT&& value) {
148 m_plansHasBeenSet = true;
149 m_plans.emplace_back(std::forward<PlansT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::Vector<RecommendedCreditPack>& GetCreditPacks() const { return m_creditPacks; }
161 inline bool CreditPacksHasBeenSet() const { return m_creditPacksHasBeenSet; }
162 template <typename CreditPacksT = Aws::Vector<RecommendedCreditPack>>
163 void SetCreditPacks(CreditPacksT&& value) {
164 m_creditPacksHasBeenSet = true;
165 m_creditPacks = std::forward<CreditPacksT>(value);
166 }
167 template <typename CreditPacksT = Aws::Vector<RecommendedCreditPack>>
168 EvaluatedPlanPrice& WithCreditPacks(CreditPacksT&& value) {
169 SetCreditPacks(std::forward<CreditPacksT>(value));
170 return *this;
171 }
172 template <typename CreditPacksT = RecommendedCreditPack>
173 EvaluatedPlanPrice& AddCreditPacks(CreditPacksT&& value) {
174 m_creditPacksHasBeenSet = true;
175 m_creditPacks.emplace_back(std::forward<CreditPacksT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_planCode;
181
182 Price m_price;
183
184 Aws::String m_monthlyProfit;
185
186 double m_paidShare{0.0};
187
189
191
193 bool m_planCodeHasBeenSet = false;
194 bool m_priceHasBeenSet = false;
195 bool m_monthlyProfitHasBeenSet = false;
196 bool m_paidShareHasBeenSet = false;
197 bool m_verdictHasBeenSet = false;
198 bool m_plansHasBeenSet = false;
199 bool m_creditPacksHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace AppMonetization
204} // namespace Aws
EvaluatedPlanPrice & WithCreditPacks(CreditPacksT &&value)
EvaluatedPlanPrice & WithVerdict(RecommendationVerdict value)
AWS_APPMONETIZATION_API EvaluatedPlanPrice(Aws::Utils::Json::JsonView jsonValue)
EvaluatedPlanPrice & WithPlans(PlansT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluatedPlanPrice & AddCreditPacks(CreditPacksT &&value)
EvaluatedPlanPrice & WithMonthlyProfit(MonthlyProfitT &&value)
const Aws::Vector< RecommendedPlan > & GetPlans() const
AWS_APPMONETIZATION_API EvaluatedPlanPrice()=default
EvaluatedPlanPrice & AddPlans(PlansT &&value)
EvaluatedPlanPrice & WithPaidShare(double value)
EvaluatedPlanPrice & WithPrice(PriceT &&value)
EvaluatedPlanPrice & WithPlanCode(PlanCodeT &&value)
AWS_APPMONETIZATION_API EvaluatedPlanPrice & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RecommendedCreditPack > & GetCreditPacks() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue