AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PlanOptions.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/PlanInclusion.h>
9#include <aws/appmonetization/model/PlanPrice.h>
10#include <aws/appmonetization/model/PricingModel.h>
11#include <aws/appmonetization/model/PublishedPrice.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
41 public:
42 AWS_APPMONETIZATION_API PlanOptions() = default;
43 AWS_APPMONETIZATION_API PlanOptions(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPMONETIZATION_API PlanOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
57 inline PricingModel GetPricingModelPreference() const { return m_pricingModelPreference; }
58 inline bool PricingModelPreferenceHasBeenSet() const { return m_pricingModelPreferenceHasBeenSet; }
60 m_pricingModelPreferenceHasBeenSet = true;
61 m_pricingModelPreference = value;
62 }
65 return *this;
66 }
68
70
78 inline PlanInclusion GetFreeTierInclusion() const { return m_freeTierInclusion; }
79 inline bool FreeTierInclusionHasBeenSet() const { return m_freeTierInclusionHasBeenSet; }
81 m_freeTierInclusionHasBeenSet = true;
82 m_freeTierInclusion = value;
83 }
86 return *this;
87 }
89
91
109 inline PlanInclusion GetMaxTierInclusion() const { return m_maxTierInclusion; }
110 inline bool MaxTierInclusionHasBeenSet() const { return m_maxTierInclusionHasBeenSet; }
112 m_maxTierInclusionHasBeenSet = true;
113 m_maxTierInclusion = value;
114 }
116 SetMaxTierInclusion(value);
117 return *this;
118 }
120
122
131 inline PlanInclusion GetAnnualPlanInclusion() const { return m_annualPlanInclusion; }
132 inline bool AnnualPlanInclusionHasBeenSet() const { return m_annualPlanInclusionHasBeenSet; }
134 m_annualPlanInclusionHasBeenSet = true;
135 m_annualPlanInclusion = value;
136 }
139 return *this;
140 }
142
144
149 inline PlanInclusion GetCreditPackInclusion() const { return m_creditPackInclusion; }
150 inline bool CreditPackInclusionHasBeenSet() const { return m_creditPackInclusionHasBeenSet; }
152 m_creditPackInclusionHasBeenSet = true;
153 m_creditPackInclusion = value;
154 }
157 return *this;
158 }
160
162
176 inline const Aws::Vector<PlanPrice>& GetPlanPrices() const { return m_planPrices; }
177 inline bool PlanPricesHasBeenSet() const { return m_planPricesHasBeenSet; }
178 template <typename PlanPricesT = Aws::Vector<PlanPrice>>
179 void SetPlanPrices(PlanPricesT&& value) {
180 m_planPricesHasBeenSet = true;
181 m_planPrices = std::forward<PlanPricesT>(value);
182 }
183 template <typename PlanPricesT = Aws::Vector<PlanPrice>>
184 PlanOptions& WithPlanPrices(PlanPricesT&& value) {
185 SetPlanPrices(std::forward<PlanPricesT>(value));
186 return *this;
187 }
188 template <typename PlanPricesT = PlanPrice>
189 PlanOptions& AddPlanPrices(PlanPricesT&& value) {
190 m_planPricesHasBeenSet = true;
191 m_planPrices.emplace_back(std::forward<PlanPricesT>(value));
192 return *this;
193 }
195
197
206 inline const PublishedPrice& GetPublishedPrice() const { return m_publishedPrice; }
207 inline bool PublishedPriceHasBeenSet() const { return m_publishedPriceHasBeenSet; }
208 template <typename PublishedPriceT = PublishedPrice>
209 void SetPublishedPrice(PublishedPriceT&& value) {
210 m_publishedPriceHasBeenSet = true;
211 m_publishedPrice = std::forward<PublishedPriceT>(value);
212 }
213 template <typename PublishedPriceT = PublishedPrice>
214 PlanOptions& WithPublishedPrice(PublishedPriceT&& value) {
215 SetPublishedPrice(std::forward<PublishedPriceT>(value));
216 return *this;
217 }
219 private:
220 PricingModel m_pricingModelPreference{PricingModel::NOT_SET};
221
222 PlanInclusion m_freeTierInclusion{PlanInclusion::NOT_SET};
223
224 PlanInclusion m_maxTierInclusion{PlanInclusion::NOT_SET};
225
226 PlanInclusion m_annualPlanInclusion{PlanInclusion::NOT_SET};
227
228 PlanInclusion m_creditPackInclusion{PlanInclusion::NOT_SET};
229
230 Aws::Vector<PlanPrice> m_planPrices;
231
232 PublishedPrice m_publishedPrice;
233 bool m_pricingModelPreferenceHasBeenSet = false;
234 bool m_freeTierInclusionHasBeenSet = false;
235 bool m_maxTierInclusionHasBeenSet = false;
236 bool m_annualPlanInclusionHasBeenSet = false;
237 bool m_creditPackInclusionHasBeenSet = false;
238 bool m_planPricesHasBeenSet = false;
239 bool m_publishedPriceHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace AppMonetization
244} // namespace Aws
const PublishedPrice & GetPublishedPrice() const
void SetPublishedPrice(PublishedPriceT &&value)
AWS_APPMONETIZATION_API PlanOptions()=default
const Aws::Vector< PlanPrice > & GetPlanPrices() const
PlanOptions & WithPricingModelPreference(PricingModel value)
Definition PlanOptions.h:63
PlanOptions & AddPlanPrices(PlanPricesT &&value)
void SetFreeTierInclusion(PlanInclusion value)
Definition PlanOptions.h:80
void SetPricingModelPreference(PricingModel value)
Definition PlanOptions.h:59
PlanInclusion GetMaxTierInclusion() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
PlanOptions & WithMaxTierInclusion(PlanInclusion value)
void SetPlanPrices(PlanPricesT &&value)
void SetCreditPackInclusion(PlanInclusion value)
PlanOptions & WithCreditPackInclusion(PlanInclusion value)
void SetMaxTierInclusion(PlanInclusion value)
PlanInclusion GetCreditPackInclusion() const
PlanOptions & WithPublishedPrice(PublishedPriceT &&value)
PlanOptions & WithPlanPrices(PlanPricesT &&value)
AWS_APPMONETIZATION_API PlanOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
PlanInclusion GetAnnualPlanInclusion() const
void SetAnnualPlanInclusion(PlanInclusion value)
PricingModel GetPricingModelPreference() const
Definition PlanOptions.h:57
PlanOptions & WithFreeTierInclusion(PlanInclusion value)
Definition PlanOptions.h:84
PlanOptions & WithAnnualPlanInclusion(PlanInclusion value)
PlanInclusion GetFreeTierInclusion() const
Definition PlanOptions.h:78
AWS_APPMONETIZATION_API PlanOptions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue