AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LicenseConfigurationIdT = Aws::String>
58 void SetLicenseConfigurationId(LicenseConfigurationIdT&& value) { m_licenseConfigurationIdHasBeenSet = true; m_licenseConfigurationId = std::forward<LicenseConfigurationIdT>(value); }
59 template<typename LicenseConfigurationIdT = Aws::String>
60 LicenseConfiguration& WithLicenseConfigurationId(LicenseConfigurationIdT&& value) { SetLicenseConfigurationId(std::forward<LicenseConfigurationIdT>(value)); return *this;}
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) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value); }
71 template<typename LicenseConfigurationArnT = Aws::String>
72 LicenseConfiguration& WithLicenseConfigurationArn(LicenseConfigurationArnT&& value) { SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value)); return *this;}
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template<typename NameT = Aws::String>
82 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
83 template<typename NameT = Aws::String>
84 LicenseConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template<typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
95 template<typename DescriptionT = Aws::String>
96 LicenseConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
98
100
103 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
104 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
105 inline void SetLicenseCountingType(LicenseCountingType value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; }
108
110
113 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
114 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
115 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
116 void SetLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::forward<LicenseRulesT>(value); }
117 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
118 LicenseConfiguration& WithLicenseRules(LicenseRulesT&& value) { SetLicenseRules(std::forward<LicenseRulesT>(value)); return *this;}
119 template<typename LicenseRulesT = Aws::String>
120 LicenseConfiguration& AddLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value)); return *this; }
122
124
127 inline long long GetLicenseCount() const { return m_licenseCount; }
128 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
129 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
130 inline LicenseConfiguration& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
132
134
137 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
138 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
139 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
142
144
147 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
148 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
149 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
152
154
157 inline long long GetConsumedLicenses() const { return m_consumedLicenses; }
158 inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
159 inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
160 inline LicenseConfiguration& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
162
164
167 inline const Aws::String& GetStatus() const { return m_status; }
168 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
169 template<typename StatusT = Aws::String>
170 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
171 template<typename StatusT = Aws::String>
172 LicenseConfiguration& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
174
176
179 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
180 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
181 template<typename OwnerAccountIdT = Aws::String>
182 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
183 template<typename OwnerAccountIdT = Aws::String>
184 LicenseConfiguration& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
186
188
191 inline const Aws::Vector<ConsumedLicenseSummary>& GetConsumedLicenseSummaryList() const { return m_consumedLicenseSummaryList; }
192 inline bool ConsumedLicenseSummaryListHasBeenSet() const { return m_consumedLicenseSummaryListHasBeenSet; }
193 template<typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
194 void SetConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList = std::forward<ConsumedLicenseSummaryListT>(value); }
195 template<typename ConsumedLicenseSummaryListT = Aws::Vector<ConsumedLicenseSummary>>
196 LicenseConfiguration& WithConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { SetConsumedLicenseSummaryList(std::forward<ConsumedLicenseSummaryListT>(value)); return *this;}
197 template<typename ConsumedLicenseSummaryListT = ConsumedLicenseSummary>
198 LicenseConfiguration& AddConsumedLicenseSummaryList(ConsumedLicenseSummaryListT&& value) { m_consumedLicenseSummaryListHasBeenSet = true; m_consumedLicenseSummaryList.emplace_back(std::forward<ConsumedLicenseSummaryListT>(value)); return *this; }
200
202
205 inline const Aws::Vector<ManagedResourceSummary>& GetManagedResourceSummaryList() const { return m_managedResourceSummaryList; }
206 inline bool ManagedResourceSummaryListHasBeenSet() const { return m_managedResourceSummaryListHasBeenSet; }
207 template<typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
208 void SetManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList = std::forward<ManagedResourceSummaryListT>(value); }
209 template<typename ManagedResourceSummaryListT = Aws::Vector<ManagedResourceSummary>>
210 LicenseConfiguration& WithManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { SetManagedResourceSummaryList(std::forward<ManagedResourceSummaryListT>(value)); return *this;}
211 template<typename ManagedResourceSummaryListT = ManagedResourceSummary>
212 LicenseConfiguration& AddManagedResourceSummaryList(ManagedResourceSummaryListT&& value) { m_managedResourceSummaryListHasBeenSet = true; m_managedResourceSummaryList.emplace_back(std::forward<ManagedResourceSummaryListT>(value)); return *this; }
214
216
219 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
220 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
221 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
222 void SetProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::forward<ProductInformationListT>(value); }
223 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
224 LicenseConfiguration& WithProductInformationList(ProductInformationListT&& value) { SetProductInformationList(std::forward<ProductInformationListT>(value)); return *this;}
225 template<typename ProductInformationListT = ProductInformation>
226 LicenseConfiguration& AddProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value)); return *this; }
228
230
233 inline const AutomatedDiscoveryInformation& GetAutomatedDiscoveryInformation() const { return m_automatedDiscoveryInformation; }
234 inline bool AutomatedDiscoveryInformationHasBeenSet() const { return m_automatedDiscoveryInformationHasBeenSet; }
235 template<typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
236 void SetAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) { m_automatedDiscoveryInformationHasBeenSet = true; m_automatedDiscoveryInformation = std::forward<AutomatedDiscoveryInformationT>(value); }
237 template<typename AutomatedDiscoveryInformationT = AutomatedDiscoveryInformation>
238 LicenseConfiguration& WithAutomatedDiscoveryInformation(AutomatedDiscoveryInformationT&& value) { SetAutomatedDiscoveryInformation(std::forward<AutomatedDiscoveryInformationT>(value)); return *this;}
240 private:
241
242 Aws::String m_licenseConfigurationId;
243 bool m_licenseConfigurationIdHasBeenSet = false;
244
245 Aws::String m_licenseConfigurationArn;
246 bool m_licenseConfigurationArnHasBeenSet = false;
247
248 Aws::String m_name;
249 bool m_nameHasBeenSet = false;
250
251 Aws::String m_description;
252 bool m_descriptionHasBeenSet = false;
253
255 bool m_licenseCountingTypeHasBeenSet = false;
256
257 Aws::Vector<Aws::String> m_licenseRules;
258 bool m_licenseRulesHasBeenSet = false;
259
260 long long m_licenseCount{0};
261 bool m_licenseCountHasBeenSet = false;
262
263 bool m_licenseCountHardLimit{false};
264 bool m_licenseCountHardLimitHasBeenSet = false;
265
266 bool m_disassociateWhenNotFound{false};
267 bool m_disassociateWhenNotFoundHasBeenSet = false;
268
269 long long m_consumedLicenses{0};
270 bool m_consumedLicensesHasBeenSet = false;
271
272 Aws::String m_status;
273 bool m_statusHasBeenSet = false;
274
275 Aws::String m_ownerAccountId;
276 bool m_ownerAccountIdHasBeenSet = false;
277
278 Aws::Vector<ConsumedLicenseSummary> m_consumedLicenseSummaryList;
279 bool m_consumedLicenseSummaryListHasBeenSet = false;
280
281 Aws::Vector<ManagedResourceSummary> m_managedResourceSummaryList;
282 bool m_managedResourceSummaryListHasBeenSet = false;
283
284 Aws::Vector<ProductInformation> m_productInformationList;
285 bool m_productInformationListHasBeenSet = false;
286
287 AutomatedDiscoveryInformation m_automatedDiscoveryInformation;
288 bool m_automatedDiscoveryInformationHasBeenSet = false;
289 };
290
291} // namespace Model
292} // namespace LicenseManager
293} // 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)
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