AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SubscriptionPricingDetails.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/model/PaymentOption.h>
9#include <aws/outposts/model/PaymentTerm.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
29 public:
30 AWS_OUTPOSTS_API SubscriptionPricingDetails() = default;
33 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
40 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
41 inline void SetPaymentOption(PaymentOption value) {
42 m_paymentOptionHasBeenSet = true;
43 m_paymentOption = value;
44 }
46 SetPaymentOption(value);
47 return *this;
48 }
50
52
55 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
56 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
57 inline void SetPaymentTerm(PaymentTerm value) {
58 m_paymentTermHasBeenSet = true;
59 m_paymentTerm = value;
60 }
62 SetPaymentTerm(value);
63 return *this;
64 }
66
68
71 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
72 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
73 inline void SetUpfrontPrice(double value) {
74 m_upfrontPriceHasBeenSet = true;
75 m_upfrontPrice = value;
76 }
78 SetUpfrontPrice(value);
79 return *this;
80 }
82
84
87 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
88 inline bool MonthlyRecurringPriceHasBeenSet() const { return m_monthlyRecurringPriceHasBeenSet; }
89 inline void SetMonthlyRecurringPrice(double value) {
90 m_monthlyRecurringPriceHasBeenSet = true;
91 m_monthlyRecurringPrice = value;
92 }
95 return *this;
96 }
98 private:
100
101 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
102
103 double m_upfrontPrice{0.0};
104
105 double m_monthlyRecurringPrice{0.0};
106 bool m_paymentOptionHasBeenSet = false;
107 bool m_paymentTermHasBeenSet = false;
108 bool m_upfrontPriceHasBeenSet = false;
109 bool m_monthlyRecurringPriceHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Outposts
114} // 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)
Aws::Utils::Json::JsonValue JsonValue