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>
24namespace AppMonetization {
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename DescriptionT = Aws::String>
67 m_descriptionHasBeenSet =
true;
68 m_description = std::forward<DescriptionT>(value);
70 template <
typename DescriptionT = Aws::String>
84 m_billingCycleHasBeenSet =
true;
85 m_billingCycle = value;
99 template <
typename SubscriptionPriceT = Price>
101 m_subscriptionPriceHasBeenSet =
true;
102 m_subscriptionPrice = std::forward<SubscriptionPriceT>(value);
104 template <
typename SubscriptionPriceT = Price>
118 template <
typename IncludedQuotasT = Aws::Map<Aws::String, AppQuotaConfig>>
120 m_includedQuotasHasBeenSet =
true;
121 m_includedQuotas = std::forward<IncludedQuotasT>(value);
123 template <
typename IncludedQuotasT = Aws::Map<Aws::String, AppQuotaConfig>>
128 template <
typename IncludedQuotasKeyT = Aws::String,
typename IncludedQuotasValueT = AppQuotaConfig>
130 m_includedQuotasHasBeenSet =
true;
131 m_includedQuotas.emplace(std::forward<IncludedQuotasKeyT>(key), std::forward<IncludedQuotasValueT>(value));
142 template <
typename TaxCodeT = Aws::String>
144 m_taxCodeHasBeenSet =
true;
145 m_taxCode = std::forward<TaxCodeT>(value);
147 template <
typename TaxCodeT = Aws::String>
160 template <
typename PaymentFailurePolicyT = PaymentFailurePolicy>
162 m_paymentFailurePolicyHasBeenSet =
true;
163 m_paymentFailurePolicy = std::forward<PaymentFailurePolicyT>(value);
165 template <
typename PaymentFailurePolicyT = PaymentFailurePolicy>
178 Price m_subscriptionPrice;
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;
AWS_APPMONETIZATION_API PlanDefinition()=default
PlanDefinition & WithSubscriptionPrice(SubscriptionPriceT &&value)
void SetIncludedQuotas(IncludedQuotasT &&value)
bool DescriptionHasBeenSet() const
void SetSubscriptionPrice(SubscriptionPriceT &&value)
PlanDefinition & AddIncludedQuotas(IncludedQuotasKeyT &&key, IncludedQuotasValueT &&value)
PlanDefinition & WithBillingCycle(BillingCycle value)
const PaymentFailurePolicy & GetPaymentFailurePolicy() const
void SetBillingCycle(BillingCycle value)
bool IncludedQuotasHasBeenSet() const
PlanDefinition & WithTaxCode(TaxCodeT &&value)
void SetDescription(DescriptionT &&value)
AWS_APPMONETIZATION_API PlanDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PaymentFailurePolicyHasBeenSet() const
const Aws::String & GetName() const
bool TaxCodeHasBeenSet() const
AWS_APPMONETIZATION_API PlanDefinition(Aws::Utils::Json::JsonView jsonValue)
PlanDefinition & WithDescription(DescriptionT &&value)
bool NameHasBeenSet() const
PlanDefinition & WithPaymentFailurePolicy(PaymentFailurePolicyT &&value)
PlanDefinition & WithIncludedQuotas(IncludedQuotasT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTaxCode() const
const Aws::String & GetDescription() const
const Price & GetSubscriptionPrice() const
void SetPaymentFailurePolicy(PaymentFailurePolicyT &&value)
bool SubscriptionPriceHasBeenSet() const
const Aws::Map< Aws::String, AppQuotaConfig > & GetIncludedQuotas() const
bool BillingCycleHasBeenSet() const
void SetName(NameT &&value)
PlanDefinition & WithName(NameT &&value)
BillingCycle GetBillingCycle() const
void SetTaxCode(TaxCodeT &&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