AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
SubscriptionPricingDetails.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/model/CurrencyCode.h>
9#include <aws/outposts/model/PaymentOption.h>
10#include <aws/outposts/model/PaymentTerm.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts {
22namespace Model {
23
30 public:
31 AWS_OUTPOSTS_API SubscriptionPricingDetails() = default;
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
41 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
42 inline void SetPaymentOption(PaymentOption value) {
43 m_paymentOptionHasBeenSet = true;
44 m_paymentOption = value;
45 }
47 SetPaymentOption(value);
48 return *this;
49 }
51
53
56 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
57 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
58 inline void SetPaymentTerm(PaymentTerm value) {
59 m_paymentTermHasBeenSet = true;
60 m_paymentTerm = value;
61 }
63 SetPaymentTerm(value);
64 return *this;
65 }
67
69
72 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
73 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
74 inline void SetUpfrontPrice(double value) {
75 m_upfrontPriceHasBeenSet = true;
76 m_upfrontPrice = value;
77 }
79 SetUpfrontPrice(value);
80 return *this;
81 }
83
85
88 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
89 inline bool MonthlyRecurringPriceHasBeenSet() const { return m_monthlyRecurringPriceHasBeenSet; }
90 inline void SetMonthlyRecurringPrice(double value) {
91 m_monthlyRecurringPriceHasBeenSet = true;
92 m_monthlyRecurringPrice = value;
93 }
96 return *this;
97 }
99
101
104 inline CurrencyCode GetCurrency() const { return m_currency; }
105 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
106 inline void SetCurrency(CurrencyCode value) {
107 m_currencyHasBeenSet = true;
108 m_currency = value;
109 }
111 SetCurrency(value);
112 return *this;
113 }
115 private:
116 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
117
118 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
119
120 double m_upfrontPrice{0.0};
121
122 double m_monthlyRecurringPrice{0.0};
123
125 bool m_paymentOptionHasBeenSet = false;
126 bool m_paymentTermHasBeenSet = false;
127 bool m_upfrontPriceHasBeenSet = false;
128 bool m_monthlyRecurringPriceHasBeenSet = false;
129 bool m_currencyHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Outposts
134} // namespace Aws
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OUTPOSTS_API SubscriptionPricingDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionPricingDetails & WithPaymentTerm(PaymentTerm value)
SubscriptionPricingDetails & WithUpfrontPrice(double value)
AWS_OUTPOSTS_API SubscriptionPricingDetails(Aws::Utils::Json::JsonView jsonValue)
SubscriptionPricingDetails & WithPaymentOption(PaymentOption value)
AWS_OUTPOSTS_API SubscriptionPricingDetails()=default
SubscriptionPricingDetails & WithMonthlyRecurringPrice(double value)
SubscriptionPricingDetails & WithCurrency(CurrencyCode value)
Aws::Utils::Json::JsonValue JsonValue