AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
88 inline SubscriptionStatus GetSubscriptionStatus() const { return m_subscriptionStatus; }
89 inline bool SubscriptionStatusHasBeenSet() const { return m_subscriptionStatusHasBeenSet; }
91 m_subscriptionStatusHasBeenSet = true;
92 m_subscriptionStatus = value;
93 }
96 return *this;
97 }
99
101
104 inline const Aws::Vector<Aws::String>& GetOrderIds() const { return m_orderIds; }
105 inline bool OrderIdsHasBeenSet() const { return m_orderIdsHasBeenSet; }
106 template <typename OrderIdsT = Aws::Vector<Aws::String>>
107 void SetOrderIds(OrderIdsT&& value) {
108 m_orderIdsHasBeenSet = true;
109 m_orderIds = std::forward<OrderIdsT>(value);
110 }
111 template <typename OrderIdsT = Aws::Vector<Aws::String>>
112 Subscription& WithOrderIds(OrderIdsT&& value) {
113 SetOrderIds(std::forward<OrderIdsT>(value));
114 return *this;
115 }
116 template <typename OrderIdsT = Aws::String>
117 Subscription& AddOrderIds(OrderIdsT&& value) {
118 m_orderIdsHasBeenSet = true;
119 m_orderIds.emplace_back(std::forward<OrderIdsT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetBeginDate() const { return m_beginDate; }
129 inline bool BeginDateHasBeenSet() const { return m_beginDateHasBeenSet; }
130 template <typename BeginDateT = Aws::Utils::DateTime>
131 void SetBeginDate(BeginDateT&& value) {
132 m_beginDateHasBeenSet = true;
133 m_beginDate = std::forward<BeginDateT>(value);
134 }
135 template <typename BeginDateT = Aws::Utils::DateTime>
136 Subscription& WithBeginDate(BeginDateT&& value) {
137 SetBeginDate(std::forward<BeginDateT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
147 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
148 template <typename EndDateT = Aws::Utils::DateTime>
149 void SetEndDate(EndDateT&& value) {
150 m_endDateHasBeenSet = true;
151 m_endDate = std::forward<EndDateT>(value);
152 }
153 template <typename EndDateT = Aws::Utils::DateTime>
154 Subscription& WithEndDate(EndDateT&& value) {
155 SetEndDate(std::forward<EndDateT>(value));
156 return *this;
157 }
159
161
164 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
165 inline bool MonthlyRecurringPriceHasBeenSet() const { return m_monthlyRecurringPriceHasBeenSet; }
166 inline void SetMonthlyRecurringPrice(double value) {
167 m_monthlyRecurringPriceHasBeenSet = true;
168 m_monthlyRecurringPrice = value;
169 }
172 return *this;
173 }
175
177
181 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
182 inline bool UpfrontPriceHasBeenSet() const { return m_upfrontPriceHasBeenSet; }
183 inline void SetUpfrontPrice(double value) {
184 m_upfrontPriceHasBeenSet = true;
185 m_upfrontPrice = value;
186 }
187 inline Subscription& WithUpfrontPrice(double value) {
188 SetUpfrontPrice(value);
189 return *this;
190 }
192 private:
193 Aws::String m_subscriptionId;
194
196
198
199 Aws::Vector<Aws::String> m_orderIds;
200
201 Aws::Utils::DateTime m_beginDate{};
202
203 Aws::Utils::DateTime m_endDate{};
204
205 double m_monthlyRecurringPrice{0.0};
206
207 double m_upfrontPrice{0.0};
208 bool m_subscriptionIdHasBeenSet = false;
209 bool m_subscriptionTypeHasBeenSet = false;
210 bool m_subscriptionStatusHasBeenSet = false;
211 bool m_orderIdsHasBeenSet = false;
212 bool m_beginDateHasBeenSet = false;
213 bool m_endDateHasBeenSet = false;
214 bool m_monthlyRecurringPriceHasBeenSet = false;
215 bool m_upfrontPriceHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Outposts
220} // 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