AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LicenseConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/AutomatedDiscoveryInformation.h>
11#include <aws/license-manager/model/ConsumedLicenseSummary.h>
12#include <aws/license-manager/model/LicenseCountingType.h>
13#include <aws/license-manager/model/ManagedResourceSummary.h>
14#include <aws/license-manager/model/ProductInformation.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LicenseManager {
26namespace Model {
27
39 public:
40 AWS_LICENSEMANAGER_API LicenseConfiguration() = default;
41 AWS_LICENSEMANAGER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LICENSEMANAGER_API LicenseConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetLicenseConfigurationId() const { return m_licenseConfigurationId; }
50 inline bool LicenseConfigurationIdHasBeenSet() const { return m_licenseConfigurationIdHasBeenSet; }
51 template <typename LicenseConfigurationIdT = Aws::String>
52 void SetLicenseConfigurationId(LicenseConfigurationIdT&& value) {
53 m_licenseConfigurationIdHasBeenSet = true;
54 m_licenseConfigurationId = std::forward<LicenseConfigurationIdT>(value);
55 }
56 template <typename LicenseConfigurationIdT = Aws::String>
57 LicenseConfiguration& WithLicenseConfigurationId(LicenseConfigurationIdT&& value) {
58 SetLicenseConfigurationId(std::forward<LicenseConfigurationIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
68 inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; }
69 template <typename LicenseConfigurationArnT = Aws::String>
70 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) {
71 m_licenseConfigurationArnHasBeenSet = true;
72 m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value);
73 }
74 template <typename LicenseConfigurationArnT = Aws::String>
75 LicenseConfiguration& WithLicenseConfigurationArn(LicenseConfigurationArnT&& value) {
76 SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template <typename NameT = Aws::String>
88 void SetName(NameT&& value) {
89 m_nameHasBeenSet = true;
90 m_name = std::forward<NameT>(value);
91 }
92 template <typename NameT = Aws::String>
94 SetName(std::forward<NameT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
111 LicenseConfiguration& WithDescription(DescriptionT&& value) {
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
121 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
122 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
124 m_licenseCountingTypeHasBeenSet = true;
125 m_licenseCountingType = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
138 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
139 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
140 void SetLicenseRules(LicenseRulesT&& value) {
141 m_licenseRulesHasBeenSet = true;
142 m_licenseRules = std::forward<LicenseRulesT>(value);
143 }
144 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
145 LicenseConfiguration& WithLicenseRules(LicenseRulesT&& value) {
146 SetLicenseRules(std::forward<LicenseRulesT>(value));
147 return *this;
148 }
149 template <typename LicenseRulesT = Aws::String>
150 LicenseConfiguration& AddLicenseRules(LicenseRulesT&& value) {
151 m_licenseRulesHasBeenSet = true;
152 m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value));
153 return *this;
154 }
156
158
161 inline long long GetLicenseCount() const { return m_licenseCount; }
162 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
163 inline void SetLicenseCount(long long value) {
164 m_licenseCountHasBeenSet = true;
165 m_licenseCount = value;
166 }
167 inline LicenseConfiguration& WithLicenseCount(long long value) {
168 SetLicenseCount(value);
169 return *this;
170 }
172
174
177 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
178 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
179 inline void SetLicenseCountHardLimit(bool value) {
180 m_licenseCountHardLimitHasBeenSet = true;
181 m_licenseCountHardLimit = value;
182 }
185 return *this;
186 }
188
190
193 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
194 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
195 inline void SetDisassociateWhenNotFound(bool value) {
196 m_disassociateWhenNotFoundHasBeenSet = true;
197 m_disassociateWhenNotFound = value;
198 }
201 return *this;
202 }
204
206
209 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
210 inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
211 inline void SetConsumedLicenses(long long value) {
212 m_consumedLicensesHasBeenSet = true;
213 m_consumedLicenses = value;
214 }
216 SetConsumedLicenses(value);
217 return *this;
218 }
220
222
225 inline const Aws::String& GetStatus() const { return m_status; }
226 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
227 template <typename StatusT = Aws::String>
228 void SetStatus(StatusT&& value) {
229 m_statusHasBeenSet = true;
230 m_status = std::forward<StatusT>(value);
231 }
232 template <typename StatusT = Aws::String>
234 SetStatus(std::forward<StatusT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
244 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
245 template <typename OwnerAccountIdT = Aws::String>
246 void SetOwnerAccountId(OwnerAccountIdT&& value) {
247 m_ownerAccountIdHasBeenSet = true;
248 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
249 }
250 template <typename OwnerAccountIdT = Aws::String>
251 LicenseConfiguration& WithOwnerAccountId(OwnerAccountIdT&& value) {
252 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const { return m_consumedLicenseSummaryList; }
262 inline bool ConsumedLicenseSummaryListHasBeenSet() const { return m_consumedLicenseSummaryListHasBeenSet; }
263 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
264 void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
265 m_consumedLicenseSummaryListHasBeenSet = true;
266 m_consumedLicenseSummaryList = std::forward<ConsumedLicenseSummaryListT>(value);
267 }
268 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
269 LicenseConfiguration& WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
270 SetConsumedLicenseSummaryList(std::forward<ConsumedLicenseSummaryListT>(value));
271 return *this;
272 }
273 template <typename ConsumedLicenseSummaryListT = ConsumedLicenseSummary>
274 LicenseConfiguration& AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
275 m_consumedLicenseSummaryListHasBeenSet = true;
276 m_consumedLicenseSummaryList.emplace_back(std::forward<ConsumedLicenseSummaryListT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const { return m_managedResourceSummaryList; }
286 inline bool ManagedResourceSummaryListHasBeenSet() const { return m_managedResourceSummaryListHasBeenSet; }
287 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
288 void SetManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
289 m_managedResourceSummaryListHasBeenSet = true;
290 m_managedResourceSummaryList = std::forward<ManagedResourceSummaryListT>(value);
291 }
292 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
293 LicenseConfiguration& WithManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
294 SetManagedResourceSummaryList(std::forward<ManagedResourceSummaryListT>(value));
295 return *this;
296 }
297 template <typename ManagedResourceSummaryListT = ManagedResourceSummary>
298 LicenseConfiguration& AddManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
299 m_managedResourceSummaryListHasBeenSet = true;
300 m_managedResourceSummaryList.emplace_back(std::forward<ManagedResourceSummaryListT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
310 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
311 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
312 void SetProductInformationList(ProductInformationListT&& value) {
313 m_productInformationListHasBeenSet = true;
314 m_productInformationList = std::forward<ProductInformationListT>(value);
315 }
316 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
317 LicenseConfiguration& WithProductInformationList(ProductInformationListT&& value) {
318 SetProductInformationList(std::forward<ProductInformationListT>(value));
319 return *this;
320 }
321 template <typename ProductInformationListT = ProductInformation>
322 LicenseConfiguration& AddProductInformationList(ProductInformationListT&& value) {
323 m_productInformationListHasBeenSet = true;
324 m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value));
325 return *this;
326 }
328
330
333 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const { return m_automatedDiscoveryInformation; }
334 inline bool AutomatedDiscoveryInformationHasBeenSet() const { return m_automatedDiscoveryInformationHasBeenSet; }
335 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
336 void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
337 m_automatedDiscoveryInformationHasBeenSet = true;
338 m_automatedDiscoveryInformation = std::forward<AutomatedDiscoveryInformationT>(value);
339 }
340 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
341 LicenseConfiguration& WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
342 SetAutomatedDiscoveryInformation(std::forward<AutomatedDiscoveryInformationT>(value));
343 return *this;
344 }
346
348
351 inline long long GetLicenseExpiry() const { return m_licenseExpiry; }
352 inline bool LicenseExpiryHasBeenSet() const { return m_licenseExpiryHasBeenSet; }
353 inline void SetLicenseExpiry(long long value) {
354 m_licenseExpiryHasBeenSet = true;
355 m_licenseExpiry = value;
356 }
357 inline LicenseConfiguration& WithLicenseExpiry(long long value) {
358 SetLicenseExpiry(value);
359 return *this;
360 }
362 private:
363 Aws::String m_licenseConfigurationId;
364
365 Aws::String m_licenseConfigurationArn;
366
367 Aws::String m_name;
368
369 Aws::String m_description;
370
372
373 Aws::Vector<Aws::String> m_licenseRules;
374
375 long long m_licenseCount{0};
376
377 bool m_licenseCountHardLimit{false};
378
379 bool m_disassociateWhenNotFound{false};
380
381 long long m_consumedLicenses{0};
382
383 Aws::String m_status;
384
385 Aws::String m_ownerAccountId;
386
387 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
388
389 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
390
391 Aws::Vector<ProductInformation> m_productInformationList;
392
393 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
394
395 long long m_licenseExpiry{0};
396 bool m_licenseConfigurationIdHasBeenSet = false;
397 bool m_licenseConfigurationArnHasBeenSet = false;
398 bool m_nameHasBeenSet = false;
399 bool m_descriptionHasBeenSet = false;
400 bool m_licenseCountingTypeHasBeenSet = false;
401 bool m_licenseRulesHasBeenSet = false;
402 bool m_licenseCountHasBeenSet = false;
403 bool m_licenseCountHardLimitHasBeenSet = false;
404 bool m_disassociateWhenNotFoundHasBeenSet = false;
405 bool m_consumedLicensesHasBeenSet = false;
406 bool m_statusHasBeenSet = false;
407 bool m_ownerAccountIdHasBeenSet = false;
408 bool m_consumedLicenseSummaryListHasBeenSet = false;
409 bool m_managedResourceSummaryListHasBeenSet = false;
410 bool m_productInformationListHasBeenSet = false;
411 bool m_automatedDiscoveryInformationHasBeenSet = false;
412 bool m_licenseExpiryHasBeenSet = false;
413};
414
415} // namespace Model
416} // namespace LicenseManager
417} // namespace Aws
LicenseConfiguration & WithLicenseCount(long long value)
const Aws::Vector< ConsumedLicenseSummary > & GetConsumedLicenseSummaryList() const
LicenseConfiguration & WithOwnerAccountId(OwnerAccountIdT &&value)
LicenseConfiguration & WithLicenseCountHardLimit(bool value)
const Aws::Vector< Aws::String > & GetLicenseRules() const
LicenseConfiguration & WithLicenseRules(LicenseRulesT &&value)
LicenseConfiguration & WithProductInformationList(ProductInformationListT &&value)
LicenseConfiguration & WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT &&value)
LicenseConfiguration & AddManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
LicenseConfiguration & WithLicenseExpiry(long long value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
void SetLicenseConfigurationArn(LicenseConfigurationArnT &&value)
AWS_LICENSEMANAGER_API LicenseConfiguration()=default
const Aws::Vector< ProductInformation > & GetProductInformationList() const
void SetManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
LicenseConfiguration & WithManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
LicenseConfiguration & WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
LicenseConfiguration & WithLicenseConfigurationId(LicenseConfigurationIdT &&value)
const AutomatedDiscoveryInformation & GetAutomatedDiscoveryInformation() const
void SetLicenseConfigurationId(LicenseConfigurationIdT &&value)
LicenseConfiguration & WithDescription(DescriptionT &&value)
LicenseConfiguration & AddProductInformationList(ProductInformationListT &&value)
LicenseConfiguration & WithLicenseConfigurationArn(LicenseConfigurationArnT &&value)
LicenseConfiguration & AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
AWS_LICENSEMANAGER_API LicenseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfiguration & WithDisassociateWhenNotFound(bool value)
LicenseConfiguration & AddLicenseRules(LicenseRulesT &&value)
LicenseConfiguration & WithName(NameT &&value)
LicenseConfiguration & WithStatus(StatusT &&value)
void SetProductInformationList(ProductInformationListT &&value)
LicenseConfiguration & WithConsumedLicenses(long long value)
LicenseConfiguration & WithLicenseCountingType(LicenseCountingType value)
const Aws::Vector< ManagedResourceSummary > & GetManagedResourceSummaryList() const
void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue