AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
GetLicenseConfigurationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/AutomatedDiscoveryInformation.h>
12#include <aws/license-manager/model/ConsumedLicenseSummary.h>
13#include <aws/license-manager/model/LicenseCountingType.h>
14#include <aws/license-manager/model/ManagedResourceSummary.h>
15#include <aws/license-manager/model/ProductInformation.h>
16#include <aws/license-manager/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace LicenseManager {
30namespace Model {
32 public:
33 AWS_LICENSEMANAGER_API GetLicenseConfigurationResult() = default;
36
38
41 inline const Aws::String& GetLicenseConfigurationId() const { return m_licenseConfigurationId; }
42 template <typename LicenseConfigurationIdT = Aws::String>
43 void SetLicenseConfigurationId(LicenseConfigurationIdT&& value) {
44 m_licenseConfigurationIdHasBeenSet = true;
45 m_licenseConfigurationId = std::forward<LicenseConfigurationIdT>(value);
46 }
47 template <typename LicenseConfigurationIdT = Aws::String>
49 SetLicenseConfigurationId(std::forward<LicenseConfigurationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
59 template <typename LicenseConfigurationArnT = Aws::String>
60 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) {
61 m_licenseConfigurationArnHasBeenSet = true;
62 m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value);
63 }
64 template <typename LicenseConfigurationArnT = Aws::String>
66 SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
111 m_licenseCountingTypeHasBeenSet = true;
112 m_licenseCountingType = value;
113 }
116 return *this;
117 }
119
121
124 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
125 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
126 void SetLicenseRules(LicenseRulesT&& value) {
127 m_licenseRulesHasBeenSet = true;
128 m_licenseRules = std::forward<LicenseRulesT>(value);
129 }
130 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
132 SetLicenseRules(std::forward<LicenseRulesT>(value));
133 return *this;
134 }
135 template <typename LicenseRulesT = Aws::String>
137 m_licenseRulesHasBeenSet = true;
138 m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value));
139 return *this;
140 }
142
144
147 inline long long GetLicenseCount() const { return m_licenseCount; }
148 inline void SetLicenseCount(long long value) {
149 m_licenseCountHasBeenSet = true;
150 m_licenseCount = value;
151 }
153 SetLicenseCount(value);
154 return *this;
155 }
157
159
162 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
163 inline void SetLicenseCountHardLimit(bool value) {
164 m_licenseCountHardLimitHasBeenSet = true;
165 m_licenseCountHardLimit = value;
166 }
169 return *this;
170 }
172
174
177 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
178 inline void SetConsumedLicenses(long long value) {
179 m_consumedLicensesHasBeenSet = true;
180 m_consumedLicenses = value;
181 }
183 SetConsumedLicenses(value);
184 return *this;
185 }
187
189
192 inline const Aws::String& GetStatus() const { return m_status; }
193 template <typename StatusT = Aws::String>
194 void SetStatus(StatusT&& value) {
195 m_statusHasBeenSet = true;
196 m_status = std::forward<StatusT>(value);
197 }
198 template <typename StatusT = Aws::String>
200 SetStatus(std::forward<StatusT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
210 template <typename OwnerAccountIdT = Aws::String>
211 void SetOwnerAccountId(OwnerAccountIdT&& value) {
212 m_ownerAccountIdHasBeenSet = true;
213 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
214 }
215 template <typename OwnerAccountIdT = Aws::String>
217 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const { return m_consumedLicenseSummaryList; }
227 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
228 void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
229 m_consumedLicenseSummaryListHasBeenSet = true;
230 m_consumedLicenseSummaryList = std::forward<ConsumedLicenseSummaryListT>(value);
231 }
232 template <typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
233 GetLicenseConfigurationResult& WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
234 SetConsumedLicenseSummaryList(std::forward<ConsumedLicenseSummaryListT>(value));
235 return *this;
236 }
237 template <typename ConsumedLicenseSummaryListT = ConsumedLicenseSummary>
238 GetLicenseConfigurationResult& AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) {
239 m_consumedLicenseSummaryListHasBeenSet = true;
240 m_consumedLicenseSummaryList.emplace_back(std::forward<ConsumedLicenseSummaryListT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const { return m_managedResourceSummaryList; }
250 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
251 void SetManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
252 m_managedResourceSummaryListHasBeenSet = true;
253 m_managedResourceSummaryList = std::forward<ManagedResourceSummaryListT>(value);
254 }
255 template <typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
256 GetLicenseConfigurationResult& WithManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
257 SetManagedResourceSummaryList(std::forward<ManagedResourceSummaryListT>(value));
258 return *this;
259 }
260 template <typename ManagedResourceSummaryListT = ManagedResourceSummary>
261 GetLicenseConfigurationResult& AddManagedResourceSummaryList(ManagedResourceSummaryListT&& value) {
262 m_managedResourceSummaryListHasBeenSet = true;
263 m_managedResourceSummaryList.emplace_back(std::forward<ManagedResourceSummaryListT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
273 template <typename TagsT = Aws::Vector<Tag>>
274 void SetTags(TagsT&& value) {
275 m_tagsHasBeenSet = true;
276 m_tags = std::forward<TagsT>(value);
277 }
278 template <typename TagsT = Aws::Vector<Tag>>
280 SetTags(std::forward<TagsT>(value));
281 return *this;
282 }
283 template <typename TagsT = Tag>
285 m_tagsHasBeenSet = true;
286 m_tags.emplace_back(std::forward<TagsT>(value));
287 return *this;
288 }
290
292
295 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
296 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
297 void SetProductInformationList(ProductInformationListT&& value) {
298 m_productInformationListHasBeenSet = true;
299 m_productInformationList = std::forward<ProductInformationListT>(value);
300 }
301 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
303 SetProductInformationList(std::forward<ProductInformationListT>(value));
304 return *this;
305 }
306 template <typename ProductInformationListT = ProductInformation>
308 m_productInformationListHasBeenSet = true;
309 m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value));
310 return *this;
311 }
313
315
318 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const { return m_automatedDiscoveryInformation; }
319 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
320 void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
321 m_automatedDiscoveryInformationHasBeenSet = true;
322 m_automatedDiscoveryInformation = std::forward<AutomatedDiscoveryInformationT>(value);
323 }
324 template <typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
325 GetLicenseConfigurationResult& WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) {
326 SetAutomatedDiscoveryInformation(std::forward<AutomatedDiscoveryInformationT>(value));
327 return *this;
328 }
330
332
335 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
336 inline void SetDisassociateWhenNotFound(bool value) {
337 m_disassociateWhenNotFoundHasBeenSet = true;
338 m_disassociateWhenNotFound = value;
339 }
342 return *this;
343 }
345
347
350 inline long long GetLicenseExpiry() const { return m_licenseExpiry; }
351 inline void SetLicenseExpiry(long long value) {
352 m_licenseExpiryHasBeenSet = true;
353 m_licenseExpiry = value;
354 }
356 SetLicenseExpiry(value);
357 return *this;
358 }
360
362
363 inline const Aws::String& GetRequestId() const { return m_requestId; }
364 template <typename RequestIdT = Aws::String>
365 void SetRequestId(RequestIdT&& value) {
366 m_requestIdHasBeenSet = true;
367 m_requestId = std::forward<RequestIdT>(value);
368 }
369 template <typename RequestIdT = Aws::String>
371 SetRequestId(std::forward<RequestIdT>(value));
372 return *this;
373 }
375 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
376
377 private:
378 Aws::String m_licenseConfigurationId;
379
380 Aws::String m_licenseConfigurationArn;
381
382 Aws::String m_name;
383
384 Aws::String m_description;
385
387
388 Aws::Vector<Aws::String> m_licenseRules;
389
390 long long m_licenseCount{0};
391
392 bool m_licenseCountHardLimit{false};
393
394 long long m_consumedLicenses{0};
395
396 Aws::String m_status;
397
398 Aws::String m_ownerAccountId;
399
400 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
401
402 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
403
404 Aws::Vector<Tag> m_tags;
405
406 Aws::Vector<ProductInformation> m_productInformationList;
407
408 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
409
410 bool m_disassociateWhenNotFound{false};
411
412 long long m_licenseExpiry{0};
413
414 Aws::String m_requestId;
415 Aws::Http::HttpResponseCode m_HttpResponseCode;
416 bool m_licenseConfigurationIdHasBeenSet = false;
417 bool m_licenseConfigurationArnHasBeenSet = false;
418 bool m_nameHasBeenSet = false;
419 bool m_descriptionHasBeenSet = false;
420 bool m_licenseCountingTypeHasBeenSet = false;
421 bool m_licenseRulesHasBeenSet = false;
422 bool m_licenseCountHasBeenSet = false;
423 bool m_licenseCountHardLimitHasBeenSet = false;
424 bool m_consumedLicensesHasBeenSet = false;
425 bool m_statusHasBeenSet = false;
426 bool m_ownerAccountIdHasBeenSet = false;
427 bool m_consumedLicenseSummaryListHasBeenSet = false;
428 bool m_managedResourceSummaryListHasBeenSet = false;
429 bool m_tagsHasBeenSet = false;
430 bool m_productInformationListHasBeenSet = false;
431 bool m_automatedDiscoveryInformationHasBeenSet = false;
432 bool m_disassociateWhenNotFoundHasBeenSet = false;
433 bool m_licenseExpiryHasBeenSet = false;
434 bool m_requestIdHasBeenSet = false;
435};
436
437} // namespace Model
438} // namespace LicenseManager
439} // 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