AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetLicenseConfigurationResult.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#include <aws/license-manager/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LicenseManager {
29namespace Model {
31 public:
32 AWS_LICENSEMANAGER_API GetLicenseConfigurationResult() = default;
35
37
40 inline const Aws::String& GetLicenseConfigurationId() const { return m_licenseConfigurationId; }
41 template <typename LicenseConfigurationIdT = Aws::String>
42 void SetLicenseConfigurationId(LicenseConfigurationIdT&& value) {
43 m_licenseConfigurationIdHasBeenSet = true;
44 m_licenseConfigurationId = std::forward<LicenseConfigurationIdT>(value);
45 }
46 template <typename LicenseConfigurationIdT = Aws::String>
48 SetLicenseConfigurationId(std::forward<LicenseConfigurationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
58 template <typename LicenseConfigurationArnT = Aws::String>
59 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) {
60 m_licenseConfigurationArnHasBeenSet = true;
61 m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value);
62 }
63 template <typename LicenseConfigurationArnT = Aws::String>
65 SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
108 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
110 m_licenseCountingTypeHasBeenSet = true;
111 m_licenseCountingType = value;
112 }
115 return *this;
116 }
118
120
123 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
124 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
125 void SetLicenseRules(LicenseRulesT&& value) {
126 m_licenseRulesHasBeenSet = true;
127 m_licenseRules = std::forward<LicenseRulesT>(value);
128 }
129 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
131 SetLicenseRules(std::forward<LicenseRulesT>(value));
132 return *this;
133 }
134 template <typename LicenseRulesT = Aws::String>
136 m_licenseRulesHasBeenSet = true;
137 m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value));
138 return *this;
139 }
141
143
146 inline long long GetLicenseCount() const { return m_licenseCount; }
147 inline void SetLicenseCount(long long value) {
148 m_licenseCountHasBeenSet = true;
149 m_licenseCount = value;
150 }
152 SetLicenseCount(value);
153 return *this;
154 }
156
158
161 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
162 inline void SetLicenseCountHardLimit(bool value) {
163 m_licenseCountHardLimitHasBeenSet = true;
164 m_licenseCountHardLimit = value;
165 }
168 return *this;
169 }
171
173
176 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
177 inline void SetConsumedLicenses(long long value) {
178 m_consumedLicensesHasBeenSet = true;
179 m_consumedLicenses = value;
180 }
182 SetConsumedLicenses(value);
183 return *this;
184 }
186
188
191 inline const Aws::String& GetStatus() const { return m_status; }
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
208 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
209 template <typename OwnerAccountIdT = Aws::String>
210 void SetOwnerAccountId(OwnerAccountIdT&& value) {
211 m_ownerAccountIdHasBeenSet = true;
212 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
213 }
214 template <typename OwnerAccountIdT = Aws::String>
216 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const { return m_consumedLicenseSummaryList; }
226 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
227 void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
228 m_consumedLicenseSummaryListHasBeenSet = true;
229 m_consumedLicenseSummaryList = std::forward<ConsumedLicenseSummaryListT>(value);
230 }
231 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
232 GetLicenseConfigurationResult& WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
233 SetConsumedLicenseSummaryList(std::forward<ConsumedLicenseSummaryListT>(value));
234 return *this;
235 }
236 template <typename ConsumedLicenseSummaryListT = ConsumedLicenseSummary>
237 GetLicenseConfigurationResult& AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
238 m_consumedLicenseSummaryListHasBeenSet = true;
239 m_consumedLicenseSummaryList.emplace_back(std::forward<ConsumedLicenseSummaryListT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const { return m_managedResourceSummaryList; }
249 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
250 void SetManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
251 m_managedResourceSummaryListHasBeenSet = true;
252 m_managedResourceSummaryList = std::forward<ManagedResourceSummaryListT>(value);
253 }
254 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
255 GetLicenseConfigurationResult& WithManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
256 SetManagedResourceSummaryList(std::forward<ManagedResourceSummaryListT>(value));
257 return *this;
258 }
259 template <typename ManagedResourceSummaryListT = ManagedResourceSummary>
260 GetLicenseConfigurationResult& AddManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
261 m_managedResourceSummaryListHasBeenSet = true;
262 m_managedResourceSummaryList.emplace_back(std::forward<ManagedResourceSummaryListT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
272 template <typename TagsT = Aws::Vector<Tag>>
273 void SetTags(TagsT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags = std::forward<TagsT>(value);
276 }
277 template <typename TagsT = Aws::Vector<Tag>>
279 SetTags(std::forward<TagsT>(value));
280 return *this;
281 }
282 template <typename TagsT = Tag>
284 m_tagsHasBeenSet = true;
285 m_tags.emplace_back(std::forward<TagsT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
295 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
296 void SetProductInformationList(ProductInformationListT&& value) {
297 m_productInformationListHasBeenSet = true;
298 m_productInformationList = std::forward<ProductInformationListT>(value);
299 }
300 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
302 SetProductInformationList(std::forward<ProductInformationListT>(value));
303 return *this;
304 }
305 template <typename ProductInformationListT = ProductInformation>
307 m_productInformationListHasBeenSet = true;
308 m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value));
309 return *this;
310 }
312
314
317 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const { return m_automatedDiscoveryInformation; }
318 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
319 void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
320 m_automatedDiscoveryInformationHasBeenSet = true;
321 m_automatedDiscoveryInformation = std::forward<AutomatedDiscoveryInformationT>(value);
322 }
323 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
324 GetLicenseConfigurationResult& WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
325 SetAutomatedDiscoveryInformation(std::forward<AutomatedDiscoveryInformationT>(value));
326 return *this;
327 }
329
331
334 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
335 inline void SetDisassociateWhenNotFound(bool value) {
336 m_disassociateWhenNotFoundHasBeenSet = true;
337 m_disassociateWhenNotFound = value;
338 }
341 return *this;
342 }
344
346
349 inline long long GetLicenseExpiry() const { return m_licenseExpiry; }
350 inline void SetLicenseExpiry(long long value) {
351 m_licenseExpiryHasBeenSet = true;
352 m_licenseExpiry = value;
353 }
355 SetLicenseExpiry(value);
356 return *this;
357 }
359
361
362 inline const Aws::String& GetRequestId() const { return m_requestId; }
363 template <typename RequestIdT = Aws::String>
364 void SetRequestId(RequestIdT&& value) {
365 m_requestIdHasBeenSet = true;
366 m_requestId = std::forward<RequestIdT>(value);
367 }
368 template <typename RequestIdT = Aws::String>
370 SetRequestId(std::forward<RequestIdT>(value));
371 return *this;
372 }
374 private:
375 Aws::String m_licenseConfigurationId;
376
377 Aws::String m_licenseConfigurationArn;
378
379 Aws::String m_name;
380
381 Aws::String m_description;
382
384
385 Aws::Vector<Aws::String> m_licenseRules;
386
387 long long m_licenseCount{0};
388
389 bool m_licenseCountHardLimit{false};
390
391 long long m_consumedLicenses{0};
392
393 Aws::String m_status;
394
395 Aws::String m_ownerAccountId;
396
397 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
398
399 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
400
401 Aws::Vector<Tag> m_tags;
402
403 Aws::Vector<ProductInformation> m_productInformationList;
404
405 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
406
407 bool m_disassociateWhenNotFound{false};
408
409 long long m_licenseExpiry{0};
410
411 Aws::String m_requestId;
412 bool m_licenseConfigurationIdHasBeenSet = false;
413 bool m_licenseConfigurationArnHasBeenSet = false;
414 bool m_nameHasBeenSet = false;
415 bool m_descriptionHasBeenSet = false;
416 bool m_licenseCountingTypeHasBeenSet = false;
417 bool m_licenseRulesHasBeenSet = false;
418 bool m_licenseCountHasBeenSet = false;
419 bool m_licenseCountHardLimitHasBeenSet = false;
420 bool m_consumedLicensesHasBeenSet = false;
421 bool m_statusHasBeenSet = false;
422 bool m_ownerAccountIdHasBeenSet = false;
423 bool m_consumedLicenseSummaryListHasBeenSet = false;
424 bool m_managedResourceSummaryListHasBeenSet = false;
425 bool m_tagsHasBeenSet = false;
426 bool m_productInformationListHasBeenSet = false;
427 bool m_automatedDiscoveryInformationHasBeenSet = false;
428 bool m_disassociateWhenNotFoundHasBeenSet = false;
429 bool m_licenseExpiryHasBeenSet = false;
430 bool m_requestIdHasBeenSet = false;
431};
432
433} // namespace Model
434} // namespace LicenseManager
435} // namespace Aws
GetLicenseConfigurationResult & WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
GetLicenseConfigurationResult & WithLicenseCount(long long value)
const Aws::Vector< ConsumedLicenseSummary > & GetConsumedLicenseSummaryList() const
GetLicenseConfigurationResult & WithLicenseCountHardLimit(bool value)
GetLicenseConfigurationResult & WithDisassociateWhenNotFound(bool value)
AWS_LICENSEMANAGER_API GetLicenseConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLicenseConfigurationResult & WithLicenseConfigurationArn(LicenseConfigurationArnT &&value)
GetLicenseConfigurationResult & AddManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
GetLicenseConfigurationResult & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
GetLicenseConfigurationResult & WithLicenseConfigurationId(LicenseConfigurationIdT &&value)
GetLicenseConfigurationResult & WithLicenseRules(LicenseRulesT &&value)
GetLicenseConfigurationResult & AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
GetLicenseConfigurationResult & WithManagedResourceSummaryList(ManagedResourceSummaryListT &&value)
GetLicenseConfigurationResult & AddProductInformationList(ProductInformationListT &&value)
GetLicenseConfigurationResult & WithProductInformationList(ProductInformationListT &&value)
GetLicenseConfigurationResult & WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT &&value)
AWS_LICENSEMANAGER_API GetLicenseConfigurationResult()=default
const Aws::Vector< ManagedResourceSummary > & GetManagedResourceSummaryList() const
GetLicenseConfigurationResult & WithRequestId(RequestIdT &&value)
GetLicenseConfigurationResult & AddLicenseRules(LicenseRulesT &&value)
GetLicenseConfigurationResult & WithDescription(DescriptionT &&value)
const AutomatedDiscoveryInformation & GetAutomatedDiscoveryInformation() const
GetLicenseConfigurationResult & WithConsumedLicenses(long long value)
void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT &&value)
void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT &&value)
GetLicenseConfigurationResult & WithLicenseCountingType(LicenseCountingType value)
GetLicenseConfigurationResult & WithLicenseExpiry(long long value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
GetLicenseConfigurationResult & WithStatus(StatusT &&value)
AWS_LICENSEMANAGER_API GetLicenseConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue