AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/SubscriptionStatus.h>
12#include <aws/outposts/model/SubscriptionType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts {
24namespace Model {
25
33 public:
34 AWS_OUTPOSTS_API Subscription() = default;
35 AWS_OUTPOSTS_API Subscription(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
45 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
46 template <typename SubscriptionIdT = Aws::String>
47 void SetSubscriptionId(SubscriptionIdT&& value) {
48 m_subscriptionIdHasBeenSet = true;
49 m_subscriptionId = std::forward<SubscriptionIdT>(value);
50 }
51 template <typename SubscriptionIdT = Aws::String>
52 Subscription& WithSubscriptionId(SubscriptionIdT&& value) {
53 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
54 return *this;
55 }
57
59
66 inline SubscriptionType GetSubscriptionType() const { return m_subscriptionType; }
67 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
69 m_subscriptionTypeHasBeenSet = true;
70 m_subscriptionType = value;
71 }
74 return *this;
75 }
77
79
86 inline SubscriptionStatus GetSubscriptionStatus() const { return m_subscriptionStatus; }
87 inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
89 m_subscriptionStatusHasBeenSet = true;
90 m_subscriptionStatus = value;
91 }
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Aws::String>& GetOrderIds() const { return m_orderIds; }
103 inline bool OrderIdsHasBeenSet() const { return m_orderIdsHasBeenSet; }
104 template <typename OrderIdsT = Aws::Vector<Aws::String>>
105 void SetOrderIds(OrderIdsT&& value) {
106 m_orderIdsHasBeenSet = true;
107 m_orderIds = std::forward<OrderIdsT>(value);
108 }
109 template <typename OrderIdsT = Aws::Vector<Aws::String>>
110 Subscription& WithOrderIds(OrderIdsT&& value) {
111 SetOrderIds(std::forward<OrderIdsT>(value));
112 return *this;
113 }
114 template <typename OrderIdsT = Aws::String>
115 Subscription& AddOrderIds(OrderIdsT&& value) {
116 m_orderIdsHasBeenSet = true;
117 m_orderIds.emplace_back(std::forward<OrderIdsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetBeginDate() const { return m_beginDate; }
127 inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; }
128 template <typename BeginDateT = Aws::Utils::DateTime>
129 void SetBeginDate(BeginDateT&& value) {
130 m_beginDateHasBeenSet = true;
131 m_beginDate = std::forward<BeginDateT>(value);
132 }
133 template <typename BeginDateT = Aws::Utils::DateTime>
134 Subscription& WithBeginDate(BeginDateT&& value) {
135 SetBeginDate(std::forward<BeginDateT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
145 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
146 template <typename EndDateT = Aws::Utils::DateTime>
147 void SetEndDate(EndDateT&& value) {
148 m_endDateHasBeenSet = true;
149 m_endDate = std::forward<EndDateT>(value);
150 }
151 template <typename EndDateT = Aws::Utils::DateTime>
152 Subscription& WithEndDate(EndDateT&& value) {
153 SetEndDate(std::forward<EndDateT>(value));
154 return *this;
155 }
157
159
162 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
163 inline bool MonthlyRecurringPriceHasBeenSet() const { return m_monthlyRecurringPriceHasBeenSet; }
164 inline void SetMonthlyRecurringPrice(double value) {
165 m_monthlyRecurringPriceHasBeenSet = true;
166 m_monthlyRecurringPrice = value;
167 }
170 return *this;
171 }
173
175
179 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
180 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
181 inline void SetUpfrontPrice(double value) {
182 m_upfrontPriceHasBeenSet = true;
183 m_upfrontPrice = value;
184 }
185 inline Subscription& WithUpfrontPrice(double value) {
186 SetUpfrontPrice(value);
187 return *this;
188 }
190 private:
191 Aws::String m_subscriptionId;
192
194
196
197 Aws::Vector<Aws::String> m_orderIds;
198
199 Aws::Utils::DateTime m_beginDate{};
200
201 Aws::Utils::DateTime m_endDate{};
202
203 double m_monthlyRecurringPrice{0.0};
204
205 double m_upfrontPrice{0.0};
206 bool m_subscriptionIdHasBeenSet = false;
207 bool m_subscriptionTypeHasBeenSet = false;
208 bool m_subscriptionStatusHasBeenSet = false;
209 bool m_orderIdsHasBeenSet = false;
210 bool m_beginDateHasBeenSet = false;
211 bool m_endDateHasBeenSet = false;
212 bool m_monthlyRecurringPriceHasBeenSet = false;
213 bool m_upfrontPriceHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace Outposts
218} // namespace Aws
AWS_OUTPOSTS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithSubscriptionStatus(SubscriptionStatus value)
void SetMonthlyRecurringPrice(double value)
Subscription & AddOrderIds(OrderIdsT &&value)
const Aws::Utils::DateTime & GetBeginDate() const
Subscription & WithOrderIds(OrderIdsT &&value)
AWS_OUTPOSTS_API Subscription()=default
Subscription & WithSubscriptionId(SubscriptionIdT &&value)
void SetEndDate(EndDateT &&value)
Subscription & WithMonthlyRecurringPrice(double value)
Subscription & WithUpfrontPrice(double value)
const Aws::Utils::DateTime & GetEndDate() const
void SetSubscriptionType(SubscriptionType value)
void SetSubscriptionId(SubscriptionIdT &&value)
Subscription & WithEndDate(EndDateT &&value)
void SetOrderIds(OrderIdsT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionType GetSubscriptionType() const
Subscription & WithSubscriptionType(SubscriptionType value)
SubscriptionStatus GetSubscriptionStatus() const
void SetBeginDate(BeginDateT &&value)
AWS_OUTPOSTS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithBeginDate(BeginDateT &&value)
const Aws::Vector< Aws::String > & GetOrderIds() const
void SetSubscriptionStatus(SubscriptionStatus value)
const Aws::String & GetSubscriptionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue