AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLicenseConfigurationResult.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/LicenseCountingType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/AutomatedDiscoveryInformation.h>
12#include <aws/license-manager/model/ConsumedLicenseSummary.h>
13#include <aws/license-manager/model/ManagedResourceSummary.h>
14#include <aws/license-manager/model/Tag.h>
15#include <aws/license-manager/model/ProductInformation.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace LicenseManager
31{
32namespace Model
33{
35 {
36 public:
37 AWS_LICENSEMANAGER_API GetLicenseConfigurationResult() = default;
40
41
43
46 inline const Aws::String& GetLicenseConfigurationId() const { return m_licenseConfigurationId; }
47 template<typename LicenseConfigurationIdT = Aws::String>
48 void SetLicenseConfigurationId(LicenseConfigurationIdT&& value) { m_licenseConfigurationIdHasBeenSet = true; m_licenseConfigurationId = std::forward<LicenseConfigurationIdT>(value); }
49 template<typename LicenseConfigurationIdT = Aws::String>
50 GetLicenseConfigurationResult& WithLicenseConfigurationId(LicenseConfigurationIdT&& value) { SetLicenseConfigurationId(std::forward<LicenseConfigurationIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
58 template<typename LicenseConfigurationArnT = Aws::String>
59 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value); }
60 template<typename LicenseConfigurationArnT = Aws::String>
61 GetLicenseConfigurationResult& WithLicenseConfigurationArn(LicenseConfigurationArnT&& value) { SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 GetLicenseConfigurationResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 GetLicenseConfigurationResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
90 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
91 inline void SetLicenseCountingType(LicenseCountingType value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; }
94
96
99 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
100 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
101 void SetLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::forward<LicenseRulesT>(value); }
102 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
103 GetLicenseConfigurationResult& WithLicenseRules(LicenseRulesT&& value) { SetLicenseRules(std::forward<LicenseRulesT>(value)); return *this;}
104 template<typename LicenseRulesT = Aws::String>
105 GetLicenseConfigurationResult& AddLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value)); return *this; }
107
109
112 inline long long GetLicenseCount() const { return m_licenseCount; }
113 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
114 inline GetLicenseConfigurationResult& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
116
118
121 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
122 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
125
127
130 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
131 inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
132 inline GetLicenseConfigurationResult& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
134
136
139 inline const Aws::String& GetStatus() const { return m_status; }
140 template<typename StatusT = Aws::String>
141 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
142 template<typename StatusT = Aws::String>
143 GetLicenseConfigurationResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
145
147
150 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
151 template<typename OwnerAccountIdT = Aws::String>
152 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
153 template<typename OwnerAccountIdT = Aws::String>
154 GetLicenseConfigurationResult& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
156
158
161 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const { return m_consumedLicenseSummaryList; }
162 template<typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
163 void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList = std::forward<ConsumedLicenseSummaryListT>(value); }
164 template<typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
165 GetLicenseConfigurationResult& WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { SetConsumedLicenseSummaryList(std::forward<ConsumedLicenseSummaryListT>(value)); return *this;}
166 template<typename ConsumedLicenseSummaryListT = ConsumedLicenseSummary>
167 GetLicenseConfigurationResult& AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList.emplace_back(std::forward<ConsumedLicenseSummaryListT>(value)); return *this; }
169
171
174 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const { return m_managedResourceSummaryList; }
175 template<typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
176 void SetManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList = std::forward<ManagedResourceSummaryListT>(value); }
177 template<typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
178 GetLicenseConfigurationResult& WithManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { SetManagedResourceSummaryList(std::forward<ManagedResourceSummaryListT>(value)); return *this;}
179 template<typename ManagedResourceSummaryListT = ManagedResourceSummary>
180 GetLicenseConfigurationResult& AddManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList.emplace_back(std::forward<ManagedResourceSummaryListT>(value)); return *this; }
182
184
187 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
188 template<typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Vector<Tag>>
191 GetLicenseConfigurationResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsT = Tag>
193 GetLicenseConfigurationResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
195
197
200 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
201 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
202 void SetProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::forward<ProductInformationListT>(value); }
203 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
204 GetLicenseConfigurationResult& WithProductInformationList(ProductInformationListT&& value) { SetProductInformationList(std::forward<ProductInformationListT>(value)); return *this;}
205 template<typename ProductInformationListT = ProductInformation>
206 GetLicenseConfigurationResult& AddProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value)); return *this; }
208
210
213 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const { return m_automatedDiscoveryInformation; }
214 template<typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
215 void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) { m_automatedDiscoveryInformationHasBeenSet = true; m_automatedDiscoveryInformation = std::forward<AutomatedDiscoveryInformationT>(value); }
216 template<typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
217 GetLicenseConfigurationResult& WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) { SetAutomatedDiscoveryInformation(std::forward<AutomatedDiscoveryInformationT>(value)); return *this;}
219
221
224 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
225 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
228
230
231 inline const Aws::String& GetRequestId() const { return m_requestId; }
232 template<typename RequestIdT = Aws::String>
233 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
234 template<typename RequestIdT = Aws::String>
235 GetLicenseConfigurationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
237 private:
238
239 Aws::String m_licenseConfigurationId;
240 bool m_licenseConfigurationIdHasBeenSet = false;
241
242 Aws::String m_licenseConfigurationArn;
243 bool m_licenseConfigurationArnHasBeenSet = false;
244
245 Aws::String m_name;
246 bool m_nameHasBeenSet = false;
247
248 Aws::String m_description;
249 bool m_descriptionHasBeenSet = false;
250
252 bool m_licenseCountingTypeHasBeenSet = false;
253
254 Aws::Vector<Aws::String> m_licenseRules;
255 bool m_licenseRulesHasBeenSet = false;
256
257 long long m_licenseCount{0};
258 bool m_licenseCountHasBeenSet = false;
259
260 bool m_licenseCountHardLimit{false};
261 bool m_licenseCountHardLimitHasBeenSet = false;
262
263 long long m_consumedLicenses{0};
264 bool m_consumedLicensesHasBeenSet = false;
265
266 Aws::String m_status;
267 bool m_statusHasBeenSet = false;
268
269 Aws::String m_ownerAccountId;
270 bool m_ownerAccountIdHasBeenSet = false;
271
272 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
273 bool m_consumedLicenseSummaryListHasBeenSet = false;
274
275 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
276 bool m_managedResourceSummaryListHasBeenSet = false;
277
278 Aws::Vector<Tag> m_tags;
279 bool m_tagsHasBeenSet = false;
280
281 Aws::Vector<ProductInformation> m_productInformationList;
282 bool m_productInformationListHasBeenSet = false;
283
284 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
285 bool m_automatedDiscoveryInformationHasBeenSet = false;
286
287 bool m_disassociateWhenNotFound{false};
288 bool m_disassociateWhenNotFoundHasBeenSet = false;
289
290 Aws::String m_requestId;
291 bool m_requestIdHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace LicenseManager
296} // 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)
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