AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LicenseConfiguration.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/ProductInformation.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace LicenseManager
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_LICENSEMANAGER_API LicenseConfiguration();
46 AWS_LICENSEMANAGER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue);
47 AWS_LICENSEMANAGER_API LicenseConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetLicenseConfigurationId() const{ return m_licenseConfigurationId; }
56 inline bool LicenseConfigurationIdHasBeenSet() const { return m_licenseConfigurationIdHasBeenSet; }
57 inline void SetLicenseConfigurationId(const Aws::String& value) { m_licenseConfigurationIdHasBeenSet = true; m_licenseConfigurationId = value; }
58 inline void SetLicenseConfigurationId(Aws::String&& value) { m_licenseConfigurationIdHasBeenSet = true; m_licenseConfigurationId = std::move(value); }
59 inline void SetLicenseConfigurationId(const char* value) { m_licenseConfigurationIdHasBeenSet = true; m_licenseConfigurationId.assign(value); }
61 inline LicenseConfiguration& WithLicenseConfigurationId(Aws::String&& value) { SetLicenseConfigurationId(std::move(value)); return *this;}
62 inline LicenseConfiguration& WithLicenseConfigurationId(const char* value) { SetLicenseConfigurationId(value); return *this;}
64
66
69 inline const Aws::String& GetLicenseConfigurationArn() const{ return m_licenseConfigurationArn; }
70 inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; }
71 inline void SetLicenseConfigurationArn(const Aws::String& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = value; }
72 inline void SetLicenseConfigurationArn(Aws::String&& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::move(value); }
73 inline void SetLicenseConfigurationArn(const char* value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn.assign(value); }
76 inline LicenseConfiguration& WithLicenseConfigurationArn(const char* value) { SetLicenseConfigurationArn(value); return *this;}
78
80
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline LicenseConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline LicenseConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline LicenseConfiguration& WithName(const char* value) { SetName(value); return *this;}
92
94
97 inline const Aws::String& GetDescription() const{ return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 inline LicenseConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
103 inline LicenseConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
104 inline LicenseConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
106
108
111 inline const LicenseCountingType& GetLicenseCountingType() const{ return m_licenseCountingType; }
112 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
113 inline void SetLicenseCountingType(const LicenseCountingType& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; }
114 inline void SetLicenseCountingType(LicenseCountingType&& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = std::move(value); }
118
120
123 inline const Aws::Vector<Aws::String>& GetLicenseRules() const{ return m_licenseRules; }
124 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
125 inline void SetLicenseRules(const Aws::Vector<Aws::String>& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = value; }
126 inline void SetLicenseRules(Aws::Vector<Aws::String>&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::move(value); }
128 inline LicenseConfiguration& WithLicenseRules(Aws::Vector<Aws::String>&& value) { SetLicenseRules(std::move(value)); return *this;}
129 inline LicenseConfiguration& AddLicenseRules(const Aws::String& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
130 inline LicenseConfiguration& AddLicenseRules(Aws::String&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(std::move(value)); return *this; }
131 inline LicenseConfiguration& AddLicenseRules(const char* value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
133
135
138 inline long long GetLicenseCount() const{ return m_licenseCount; }
139 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
140 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
141 inline LicenseConfiguration& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
143
145
148 inline bool GetLicenseCountHardLimit() const{ return m_licenseCountHardLimit; }
149 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
150 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
153
155
158 inline bool GetDisassociateWhenNotFound() const{ return m_disassociateWhenNotFound; }
159 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
160 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
163
165
168 inline long long GetConsumedLicenses() const{ return m_consumedLicenses; }
169 inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
170 inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
171 inline LicenseConfiguration& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
173
175
178 inline const Aws::String& GetStatus() const{ return m_status; }
179 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
180 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
181 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
182 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
183 inline LicenseConfiguration& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
184 inline LicenseConfiguration& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
185 inline LicenseConfiguration& WithStatus(const char* value) { SetStatus(value); return *this;}
187
189
192 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
193 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
194 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
195 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
196 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
197 inline LicenseConfiguration& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
198 inline LicenseConfiguration& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
199 inline LicenseConfiguration& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
201
203
206 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const{ return m_consumedLicenseSummaryList; }
207 inline bool ConsumedLicenseSummaryListHasBeenSet() const { return m_consumedLicenseSummaryListHasBeenSet; }
208 inline void SetConsumedLicenseSummaryList(const Aws::Vector<ConsumedLicenseSummary>& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList = value; }
209 inline void SetConsumedLicenseSummaryList(Aws::Vector<ConsumedLicenseSummary>&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList = std::move(value); }
212 inline LicenseConfiguration& AddConsumedLicenseSummaryList(const ConsumedLicenseSummary& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList.push_back(value); return *this; }
213 inline LicenseConfiguration& AddConsumedLicenseSummaryList(ConsumedLicenseSummary&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList.push_back(std::move(value)); return *this; }
215
217
220 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const{ return m_managedResourceSummaryList; }
221 inline bool ManagedResourceSummaryListHasBeenSet() const { return m_managedResourceSummaryListHasBeenSet; }
222 inline void SetManagedResourceSummaryList(const Aws::Vector<ManagedResourceSummary>& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList = value; }
223 inline void SetManagedResourceSummaryList(Aws::Vector<ManagedResourceSummary>&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList = std::move(value); }
226 inline LicenseConfiguration& AddManagedResourceSummaryList(const ManagedResourceSummary& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList.push_back(value); return *this; }
227 inline LicenseConfiguration& AddManagedResourceSummaryList(ManagedResourceSummary&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList.push_back(std::move(value)); return *this; }
229
231
234 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const{ return m_productInformationList; }
235 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
236 inline void SetProductInformationList(const Aws::Vector<ProductInformation>& value) { m_productInformationListHasBeenSet = true; m_productInformationList = value; }
237 inline void SetProductInformationList(Aws::Vector<ProductInformation>&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::move(value); }
240 inline LicenseConfiguration& AddProductInformationList(const ProductInformation& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(value); return *this; }
241 inline LicenseConfiguration& AddProductInformationList(ProductInformation&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(std::move(value)); return *this; }
243
245
248 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const{ return m_automatedDiscoveryInformation; }
249 inline bool AutomatedDiscoveryInformationHasBeenSet() const { return m_automatedDiscoveryInformationHasBeenSet; }
250 inline void SetAutomatedDiscoveryInformation(const AutomatedDiscoveryInformation& value) { m_automatedDiscoveryInformationHasBeenSet = true; m_automatedDiscoveryInformation = value; }
251 inline void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformation&& value) { m_automatedDiscoveryInformationHasBeenSet = true; m_automatedDiscoveryInformation = std::move(value); }
255 private:
256
257 Aws::String m_licenseConfigurationId;
258 bool m_licenseConfigurationIdHasBeenSet = false;
259
260 Aws::String m_licenseConfigurationArn;
261 bool m_licenseConfigurationArnHasBeenSet = false;
262
263 Aws::String m_name;
264 bool m_nameHasBeenSet = false;
265
266 Aws::String m_description;
267 bool m_descriptionHasBeenSet = false;
268
269 LicenseCountingType m_licenseCountingType;
270 bool m_licenseCountingTypeHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_licenseRules;
273 bool m_licenseRulesHasBeenSet = false;
274
275 long long m_licenseCount;
276 bool m_licenseCountHasBeenSet = false;
277
278 bool m_licenseCountHardLimit;
279 bool m_licenseCountHardLimitHasBeenSet = false;
280
281 bool m_disassociateWhenNotFound;
282 bool m_disassociateWhenNotFoundHasBeenSet = false;
283
284 long long m_consumedLicenses;
285 bool m_consumedLicensesHasBeenSet = false;
286
287 Aws::String m_status;
288 bool m_statusHasBeenSet = false;
289
290 Aws::String m_ownerAccountId;
291 bool m_ownerAccountIdHasBeenSet = false;
292
293 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
294 bool m_consumedLicenseSummaryListHasBeenSet = false;
295
296 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
297 bool m_managedResourceSummaryListHasBeenSet = false;
298
299 Aws::Vector<ProductInformation> m_productInformationList;
300 bool m_productInformationListHasBeenSet = false;
301
302 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
303 bool m_automatedDiscoveryInformationHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace LicenseManager
308} // namespace Aws
LicenseConfiguration & AddProductInformationList(const ProductInformation &value)
void SetConsumedLicenseSummaryList(Aws::Vector< ConsumedLicenseSummary > &&value)
LicenseConfiguration & WithLicenseCount(long long value)
LicenseConfiguration & WithStatus(const char *value)
LicenseConfiguration & AddConsumedLicenseSummaryList(ConsumedLicenseSummary &&value)
LicenseConfiguration & AddLicenseRules(const char *value)
void SetProductInformationList(const Aws::Vector< ProductInformation > &value)
LicenseConfiguration & WithLicenseConfigurationArn(const Aws::String &value)
LicenseConfiguration & WithOwnerAccountId(const Aws::String &value)
const Aws::Vector< ConsumedLicenseSummary > & GetConsumedLicenseSummaryList() const
LicenseConfiguration & WithLicenseConfigurationId(Aws::String &&value)
LicenseConfiguration & AddLicenseRules(Aws::String &&value)
LicenseConfiguration & AddLicenseRules(const Aws::String &value)
void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformation &&value)
LicenseConfiguration & WithLicenseCountingType(LicenseCountingType &&value)
LicenseConfiguration & WithLicenseConfigurationArn(Aws::String &&value)
void SetManagedResourceSummaryList(Aws::Vector< ManagedResourceSummary > &&value)
LicenseConfiguration & WithLicenseCountHardLimit(bool value)
const Aws::Vector< Aws::String > & GetLicenseRules() const
LicenseConfiguration & WithProductInformationList(const Aws::Vector< ProductInformation > &value)
LicenseConfiguration & WithLicenseConfigurationArn(const char *value)
void SetProductInformationList(Aws::Vector< ProductInformation > &&value)
LicenseConfiguration & WithLicenseRules(Aws::Vector< Aws::String > &&value)
const LicenseCountingType & GetLicenseCountingType() const
LicenseConfiguration & WithDescription(const Aws::String &value)
LicenseConfiguration & AddProductInformationList(ProductInformation &&value)
void SetConsumedLicenseSummaryList(const Aws::Vector< ConsumedLicenseSummary > &value)
LicenseConfiguration & WithName(const char *value)
void SetAutomatedDiscoveryInformation(const AutomatedDiscoveryInformation &value)
LicenseConfiguration & WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformation &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseConfiguration & WithDescription(const char *value)
LicenseConfiguration & WithOwnerAccountId(const char *value)
LicenseConfiguration & WithLicenseConfigurationId(const char *value)
AWS_LICENSEMANAGER_API LicenseConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
LicenseConfiguration & WithConsumedLicenseSummaryList(const Aws::Vector< ConsumedLicenseSummary > &value)
void SetLicenseCountingType(const LicenseCountingType &value)
LicenseConfiguration & AddManagedResourceSummaryList(ManagedResourceSummary &&value)
LicenseConfiguration & WithConsumedLicenseSummaryList(Aws::Vector< ConsumedLicenseSummary > &&value)
const AutomatedDiscoveryInformation & GetAutomatedDiscoveryInformation() const
LicenseConfiguration & WithStatus(const Aws::String &value)
LicenseConfiguration & WithName(const Aws::String &value)
void SetLicenseRules(const Aws::Vector< Aws::String > &value)
void SetManagedResourceSummaryList(const Aws::Vector< ManagedResourceSummary > &value)
LicenseConfiguration & WithManagedResourceSummaryList(Aws::Vector< ManagedResourceSummary > &&value)
LicenseConfiguration & WithProductInformationList(Aws::Vector< ProductInformation > &&value)
AWS_LICENSEMANAGER_API LicenseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseConfiguration & WithDisassociateWhenNotFound(bool value)
void SetLicenseConfigurationArn(const Aws::String &value)
LicenseConfiguration & AddConsumedLicenseSummaryList(const ConsumedLicenseSummary &value)
LicenseConfiguration & WithLicenseCountingType(const LicenseCountingType &value)
LicenseConfiguration & WithConsumedLicenses(long long value)
void SetLicenseCountingType(LicenseCountingType &&value)
LicenseConfiguration & AddManagedResourceSummaryList(const ManagedResourceSummary &value)
LicenseConfiguration & WithOwnerAccountId(Aws::String &&value)
void SetLicenseConfigurationId(const Aws::String &value)
LicenseConfiguration & WithLicenseConfigurationId(const Aws::String &value)
const Aws::Vector< ManagedResourceSummary > & GetManagedResourceSummaryList() const
LicenseConfiguration & WithStatus(Aws::String &&value)
void SetLicenseRules(Aws::Vector< Aws::String > &&value)
LicenseConfiguration & WithName(Aws::String &&value)
LicenseConfiguration & WithLicenseRules(const Aws::Vector< Aws::String > &value)
LicenseConfiguration & WithDescription(Aws::String &&value)
LicenseConfiguration & WithManagedResourceSummaryList(const Aws::Vector< ManagedResourceSummary > &value)
LicenseConfiguration & WithAutomatedDiscoveryInformation(const AutomatedDiscoveryInformation &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