AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RecommendedPlan.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/BillingCycle.h>
9#include <aws/appmonetization/model/Price.h>
10#include <aws/appmonetization/model/RecommendedQuota.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMonetization {
24namespace Model {
25
32 public:
33 AWS_APPMONETIZATION_API RecommendedPlan() = default;
34 AWS_APPMONETIZATION_API RecommendedPlan(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API RecommendedPlan& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetPlanCode() const { return m_planCode; }
47 inline bool PlanCodeHasBeenSet() const { return m_planCodeHasBeenSet; }
48 template <typename PlanCodeT = Aws::String>
49 void SetPlanCode(PlanCodeT&& value) {
50 m_planCodeHasBeenSet = true;
51 m_planCode = std::forward<PlanCodeT>(value);
52 }
53 template <typename PlanCodeT = Aws::String>
54 RecommendedPlan& WithPlanCode(PlanCodeT&& value) {
55 SetPlanCode(std::forward<PlanCodeT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 RecommendedPlan& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
84 inline BillingCycle GetBillingCycle() const { return m_billingCycle; }
85 inline bool BillingCycleHasBeenSet() const { return m_billingCycleHasBeenSet; }
86 inline void SetBillingCycle(BillingCycle value) {
87 m_billingCycleHasBeenSet = true;
88 m_billingCycle = value;
89 }
91 SetBillingCycle(value);
92 return *this;
93 }
95
97
100 inline const Price& GetPrice() const { return m_price; }
101 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
102 template <typename PriceT = Price>
103 void SetPrice(PriceT&& value) {
104 m_priceHasBeenSet = true;
105 m_price = std::forward<PriceT>(value);
106 }
107 template <typename PriceT = Price>
108 RecommendedPlan& WithPrice(PriceT&& value) {
109 SetPrice(std::forward<PriceT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<RecommendedQuota>& GetIncludedQuotas() const { return m_includedQuotas; }
119 inline bool IncludedQuotasHasBeenSet() const { return m_includedQuotasHasBeenSet; }
120 template <typename IncludedQuotasT = Aws::Vector<RecommendedQuota>>
121 void SetIncludedQuotas(IncludedQuotasT&& value) {
122 m_includedQuotasHasBeenSet = true;
123 m_includedQuotas = std::forward<IncludedQuotasT>(value);
124 }
125 template <typename IncludedQuotasT = Aws::Vector<RecommendedQuota>>
126 RecommendedPlan& WithIncludedQuotas(IncludedQuotasT&& value) {
127 SetIncludedQuotas(std::forward<IncludedQuotasT>(value));
128 return *this;
129 }
130 template <typename IncludedQuotasT = RecommendedQuota>
131 RecommendedPlan& AddIncludedQuotas(IncludedQuotasT&& value) {
132 m_includedQuotasHasBeenSet = true;
133 m_includedQuotas.emplace_back(std::forward<IncludedQuotasT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Aws::String>& GetUpgradePlanCodes() const { return m_upgradePlanCodes; }
143 inline bool UpgradePlanCodesHasBeenSet() const { return m_upgradePlanCodesHasBeenSet; }
144 template <typename UpgradePlanCodesT = Aws::Vector<Aws::String>>
145 void SetUpgradePlanCodes(UpgradePlanCodesT&& value) {
146 m_upgradePlanCodesHasBeenSet = true;
147 m_upgradePlanCodes = std::forward<UpgradePlanCodesT>(value);
148 }
149 template <typename UpgradePlanCodesT = Aws::Vector<Aws::String>>
150 RecommendedPlan& WithUpgradePlanCodes(UpgradePlanCodesT&& value) {
151 SetUpgradePlanCodes(std::forward<UpgradePlanCodesT>(value));
152 return *this;
153 }
154 template <typename UpgradePlanCodesT = Aws::String>
155 RecommendedPlan& AddUpgradePlanCodes(UpgradePlanCodesT&& value) {
156 m_upgradePlanCodesHasBeenSet = true;
157 m_upgradePlanCodes.emplace_back(std::forward<UpgradePlanCodesT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<Aws::String>& GetDowngradePlanCodes() const { return m_downgradePlanCodes; }
167 inline bool DowngradePlanCodesHasBeenSet() const { return m_downgradePlanCodesHasBeenSet; }
168 template <typename DowngradePlanCodesT = Aws::Vector<Aws::String>>
169 void SetDowngradePlanCodes(DowngradePlanCodesT&& value) {
170 m_downgradePlanCodesHasBeenSet = true;
171 m_downgradePlanCodes = std::forward<DowngradePlanCodesT>(value);
172 }
173 template <typename DowngradePlanCodesT = Aws::Vector<Aws::String>>
174 RecommendedPlan& WithDowngradePlanCodes(DowngradePlanCodesT&& value) {
175 SetDowngradePlanCodes(std::forward<DowngradePlanCodesT>(value));
176 return *this;
177 }
178 template <typename DowngradePlanCodesT = Aws::String>
179 RecommendedPlan& AddDowngradePlanCodes(DowngradePlanCodesT&& value) {
180 m_downgradePlanCodesHasBeenSet = true;
181 m_downgradePlanCodes.emplace_back(std::forward<DowngradePlanCodesT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_planCode;
187
188 Aws::String m_name;
189
190 BillingCycle m_billingCycle{BillingCycle::NOT_SET};
191
192 Price m_price;
193
194 Aws::Vector<RecommendedQuota> m_includedQuotas;
195
196 Aws::Vector<Aws::String> m_upgradePlanCodes;
197
198 Aws::Vector<Aws::String> m_downgradePlanCodes;
199 bool m_planCodeHasBeenSet = false;
200 bool m_nameHasBeenSet = false;
201 bool m_billingCycleHasBeenSet = false;
202 bool m_priceHasBeenSet = false;
203 bool m_includedQuotasHasBeenSet = false;
204 bool m_upgradePlanCodesHasBeenSet = false;
205 bool m_downgradePlanCodesHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace AppMonetization
210} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue