AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PlanDefinition.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/AppQuotaConfig.h>
9#include <aws/appmonetization/model/BillingCycle.h>
10#include <aws/appmonetization/model/PaymentFailurePolicy.h>
11#include <aws/appmonetization/model/Price.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.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
35 public:
36 AWS_APPMONETIZATION_API PlanDefinition() = default;
37 AWS_APPMONETIZATION_API PlanDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMONETIZATION_API PlanDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 PlanDefinition& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 PlanDefinition& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline BillingCycle GetBillingCycle() const { return m_billingCycle; }
82 inline bool BillingCycleHasBeenSet() const { return m_billingCycleHasBeenSet; }
83 inline void SetBillingCycle(BillingCycle value) {
84 m_billingCycleHasBeenSet = true;
85 m_billingCycle = value;
86 }
88 SetBillingCycle(value);
89 return *this;
90 }
92
94
97 inline const Price& GetSubscriptionPrice() const { return m_subscriptionPrice; }
98 inline bool SubscriptionPriceHasBeenSet() const { return m_subscriptionPriceHasBeenSet; }
99 template <typename SubscriptionPriceT = Price>
100 void SetSubscriptionPrice(SubscriptionPriceT&& value) {
101 m_subscriptionPriceHasBeenSet = true;
102 m_subscriptionPrice = std::forward<SubscriptionPriceT>(value);
103 }
104 template <typename SubscriptionPriceT = Price>
105 PlanDefinition& WithSubscriptionPrice(SubscriptionPriceT&& value) {
106 SetSubscriptionPrice(std::forward<SubscriptionPriceT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Map<Aws::String, AppQuotaConfig>& GetIncludedQuotas() const { return m_includedQuotas; }
117 inline bool IncludedQuotasHasBeenSet() const { return m_includedQuotasHasBeenSet; }
118 template <typename IncludedQuotasT = Aws::Map<Aws::String, AppQuotaConfig>>
119 void SetIncludedQuotas(IncludedQuotasT&& value) {
120 m_includedQuotasHasBeenSet = true;
121 m_includedQuotas = std::forward<IncludedQuotasT>(value);
122 }
123 template <typename IncludedQuotasT = Aws::Map<Aws::String, AppQuotaConfig>>
124 PlanDefinition& WithIncludedQuotas(IncludedQuotasT&& value) {
125 SetIncludedQuotas(std::forward<IncludedQuotasT>(value));
126 return *this;
127 }
128 template <typename IncludedQuotasKeyT = Aws::String, typename IncludedQuotasValueT = AppQuotaConfig>
129 PlanDefinition& AddIncludedQuotas(IncludedQuotasKeyT&& key, IncludedQuotasValueT&& value) {
130 m_includedQuotasHasBeenSet = true;
131 m_includedQuotas.emplace(std::forward<IncludedQuotasKeyT>(key), std::forward<IncludedQuotasValueT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetTaxCode() const { return m_taxCode; }
141 inline bool TaxCodeHasBeenSet() const { return m_taxCodeHasBeenSet; }
142 template <typename TaxCodeT = Aws::String>
143 void SetTaxCode(TaxCodeT&& value) {
144 m_taxCodeHasBeenSet = true;
145 m_taxCode = std::forward<TaxCodeT>(value);
146 }
147 template <typename TaxCodeT = Aws::String>
148 PlanDefinition& WithTaxCode(TaxCodeT&& value) {
149 SetTaxCode(std::forward<TaxCodeT>(value));
150 return *this;
151 }
153
155
158 inline const PaymentFailurePolicy& GetPaymentFailurePolicy() const { return m_paymentFailurePolicy; }
159 inline bool PaymentFailurePolicyHasBeenSet() const { return m_paymentFailurePolicyHasBeenSet; }
160 template <typename PaymentFailurePolicyT = PaymentFailurePolicy>
161 void SetPaymentFailurePolicy(PaymentFailurePolicyT&& value) {
162 m_paymentFailurePolicyHasBeenSet = true;
163 m_paymentFailurePolicy = std::forward<PaymentFailurePolicyT>(value);
164 }
165 template <typename PaymentFailurePolicyT = PaymentFailurePolicy>
166 PlanDefinition& WithPaymentFailurePolicy(PaymentFailurePolicyT&& value) {
167 SetPaymentFailurePolicy(std::forward<PaymentFailurePolicyT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_name;
173
174 Aws::String m_description;
175
176 BillingCycle m_billingCycle{BillingCycle::NOT_SET};
177
178 Price m_subscriptionPrice;
179
181
182 Aws::String m_taxCode;
183
184 PaymentFailurePolicy m_paymentFailurePolicy;
185 bool m_nameHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_billingCycleHasBeenSet = false;
188 bool m_subscriptionPriceHasBeenSet = false;
189 bool m_includedQuotasHasBeenSet = false;
190 bool m_taxCodeHasBeenSet = false;
191 bool m_paymentFailurePolicyHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace AppMonetization
196} // namespace Aws
AWS_APPMONETIZATION_API PlanDefinition()=default
PlanDefinition & WithSubscriptionPrice(SubscriptionPriceT &&value)
void SetIncludedQuotas(IncludedQuotasT &&value)
void SetSubscriptionPrice(SubscriptionPriceT &&value)
PlanDefinition & AddIncludedQuotas(IncludedQuotasKeyT &&key, IncludedQuotasValueT &&value)
PlanDefinition & WithBillingCycle(BillingCycle value)
const PaymentFailurePolicy & GetPaymentFailurePolicy() const
PlanDefinition & WithTaxCode(TaxCodeT &&value)
void SetDescription(DescriptionT &&value)
AWS_APPMONETIZATION_API PlanDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API PlanDefinition(Aws::Utils::Json::JsonView jsonValue)
PlanDefinition & WithDescription(DescriptionT &&value)
PlanDefinition & WithPaymentFailurePolicy(PaymentFailurePolicyT &&value)
PlanDefinition & WithIncludedQuotas(IncludedQuotasT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
void SetPaymentFailurePolicy(PaymentFailurePolicyT &&value)
const Aws::Map< Aws::String, AppQuotaConfig > & GetIncludedQuotas() const
PlanDefinition & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue