AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EksAnywhereSubscription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/EKS_EXPORTS.h>
12#include <aws/eks/model/EksAnywhereSubscriptionLicenseType.h>
13#include <aws/eks/model/EksAnywhereSubscriptionTerm.h>
14#include <aws/eks/model/License.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EKS {
26namespace Model {
27
36 public:
37 AWS_EKS_API EksAnywhereSubscription() = default;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
83 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 void SetCreatedAt(CreatedAtT&& value) {
86 m_createdAtHasBeenSet = true;
87 m_createdAt = std::forward<CreatedAtT>(value);
88 }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
91 SetCreatedAt(std::forward<CreatedAtT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetEffectiveDate() const { return m_effectiveDate; }
101 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
102 template <typename EffectiveDateT = Aws::Utils::DateTime>
103 void SetEffectiveDate(EffectiveDateT&& value) {
104 m_effectiveDateHasBeenSet = true;
105 m_effectiveDate = std::forward<EffectiveDateT>(value);
106 }
107 template <typename EffectiveDateT = Aws::Utils::DateTime>
109 SetEffectiveDate(std::forward<EffectiveDateT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
120 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
121 template <typename ExpirationDateT = Aws::Utils::DateTime>
122 void SetExpirationDate(ExpirationDateT&& value) {
123 m_expirationDateHasBeenSet = true;
124 m_expirationDate = std::forward<ExpirationDateT>(value);
125 }
126 template <typename ExpirationDateT = Aws::Utils::DateTime>
127 EksAnywhereSubscription& WithExpirationDate(ExpirationDateT&& value) {
128 SetExpirationDate(std::forward<ExpirationDateT>(value));
129 return *this;
130 }
132
134
138 inline int GetLicenseQuantity() const { return m_licenseQuantity; }
139 inline bool LicenseQuantityHasBeenSet() const { return m_licenseQuantityHasBeenSet; }
140 inline void SetLicenseQuantity(int value) {
141 m_licenseQuantityHasBeenSet = true;
142 m_licenseQuantity = value;
143 }
145 SetLicenseQuantity(value);
146 return *this;
147 }
149
151
156 inline EksAnywhereSubscriptionLicenseType GetLicenseType() const { return m_licenseType; }
157 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
159 m_licenseTypeHasBeenSet = true;
160 m_licenseType = value;
161 }
163 SetLicenseType(value);
164 return *this;
165 }
167
169
172 inline const EksAnywhereSubscriptionTerm& GetTerm() const { return m_term; }
173 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
174 template <typename TermT = EksAnywhereSubscriptionTerm>
175 void SetTerm(TermT&& value) {
176 m_termHasBeenSet = true;
177 m_term = std::forward<TermT>(value);
178 }
179 template <typename TermT = EksAnywhereSubscriptionTerm>
181 SetTerm(std::forward<TermT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetStatus() const { return m_status; }
191 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
192 template <typename StatusT = Aws::String>
193 void SetStatus(StatusT&& value) {
194 m_statusHasBeenSet = true;
195 m_status = std::forward<StatusT>(value);
196 }
197 template <typename StatusT = Aws::String>
199 SetStatus(std::forward<StatusT>(value));
200 return *this;
201 }
203
205
209 inline bool GetAutoRenew() const { return m_autoRenew; }
210 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
211 inline void SetAutoRenew(bool value) {
212 m_autoRenewHasBeenSet = true;
213 m_autoRenew = value;
214 }
216 SetAutoRenew(value);
217 return *this;
218 }
220
222
225 inline const Aws::Vector<Aws::String>& GetLicenseArns() const { return m_licenseArns; }
226 inline bool LicenseArnsHasBeenSet() const { return m_licenseArnsHasBeenSet; }
227 template <typename LicenseArnsT = Aws::Vector<Aws::String>>
228 void SetLicenseArns(LicenseArnsT&& value) {
229 m_licenseArnsHasBeenSet = true;
230 m_licenseArns = std::forward<LicenseArnsT>(value);
231 }
232 template <typename LicenseArnsT = Aws::Vector<Aws::String>>
234 SetLicenseArns(std::forward<LicenseArnsT>(value));
235 return *this;
236 }
237 template <typename LicenseArnsT = Aws::String>
239 m_licenseArnsHasBeenSet = true;
240 m_licenseArns.emplace_back(std::forward<LicenseArnsT>(value));
241 return *this;
242 }
244
246
250 inline const Aws::Vector<License>& GetLicenses() const { return m_licenses; }
251 inline bool LicensesHasBeenSet() const { return m_licensesHasBeenSet; }
252 template <typename LicensesT = Aws::Vector<License>>
253 void SetLicenses(LicensesT&& value) {
254 m_licensesHasBeenSet = true;
255 m_licenses = std::forward<LicensesT>(value);
256 }
257 template <typename LicensesT = Aws::Vector<License>>
259 SetLicenses(std::forward<LicensesT>(value));
260 return *this;
261 }
262 template <typename LicensesT = License>
264 m_licensesHasBeenSet = true;
265 m_licenses.emplace_back(std::forward<LicensesT>(value));
266 return *this;
267 }
269
271
277 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
278 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
279 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
280 void SetTags(TagsT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags = std::forward<TagsT>(value);
283 }
284 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
286 SetTags(std::forward<TagsT>(value));
287 return *this;
288 }
289 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
290 EksAnywhereSubscription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
291 m_tagsHasBeenSet = true;
292 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
293 return *this;
294 }
296 private:
297 Aws::String m_id;
298
299 Aws::String m_arn;
300
301 Aws::Utils::DateTime m_createdAt{};
302
303 Aws::Utils::DateTime m_effectiveDate{};
304
305 Aws::Utils::DateTime m_expirationDate{};
306
307 int m_licenseQuantity{0};
308
310
311 EksAnywhereSubscriptionTerm m_term;
312
313 Aws::String m_status;
314
315 bool m_autoRenew{false};
316
317 Aws::Vector<Aws::String> m_licenseArns;
318
319 Aws::Vector<License> m_licenses;
320
322 bool m_idHasBeenSet = false;
323 bool m_arnHasBeenSet = false;
324 bool m_createdAtHasBeenSet = false;
325 bool m_effectiveDateHasBeenSet = false;
326 bool m_expirationDateHasBeenSet = false;
327 bool m_licenseQuantityHasBeenSet = false;
328 bool m_licenseTypeHasBeenSet = false;
329 bool m_termHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_autoRenewHasBeenSet = false;
332 bool m_licenseArnsHasBeenSet = false;
333 bool m_licensesHasBeenSet = false;
334 bool m_tagsHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace EKS
339} // namespace Aws
EksAnywhereSubscription & WithId(IdT &&value)
EksAnywhereSubscription & WithTags(TagsT &&value)
EksAnywhereSubscription & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetLicenseType(EksAnywhereSubscriptionLicenseType value)
EksAnywhereSubscription & AddLicenseArns(LicenseArnsT &&value)
EksAnywhereSubscriptionLicenseType GetLicenseType() const
EksAnywhereSubscription & WithLicenseQuantity(int value)
EksAnywhereSubscription & AddLicenses(LicensesT &&value)
EksAnywhereSubscription & WithStatus(StatusT &&value)
EksAnywhereSubscription & WithEffectiveDate(EffectiveDateT &&value)
const Aws::Vector< License > & GetLicenses() const
EksAnywhereSubscription & WithTerm(TermT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
EksAnywhereSubscription & WithLicenseArns(LicenseArnsT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
const Aws::Utils::DateTime & GetEffectiveDate() const
AWS_EKS_API EksAnywhereSubscription()=default
EksAnywhereSubscription & WithExpirationDate(ExpirationDateT &&value)
EksAnywhereSubscription & WithLicenseType(EksAnywhereSubscriptionLicenseType value)
EksAnywhereSubscription & WithCreatedAt(CreatedAtT &&value)
AWS_EKS_API EksAnywhereSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
EksAnywhereSubscription & AddTags(TagsKeyT &&key, TagsValueT &&value)
const EksAnywhereSubscriptionTerm & GetTerm() const
const Aws::Vector< Aws::String > & GetLicenseArns() const
AWS_EKS_API EksAnywhereSubscription(Aws::Utils::Json::JsonView jsonValue)
EksAnywhereSubscription & WithAutoRenew(bool value)
EksAnywhereSubscription & WithLicenses(LicensesT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue