AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateLicenseConfigurationRequest.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/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/LicenseCountingType.h>
12#include <aws/license-manager/model/ProductInformation.h>
13#include <aws/license-manager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LicenseManager {
19namespace Model {
20
24 public:
25 AWS_LICENSEMANAGER_API CreateLicenseConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateLicenseConfiguration"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
78 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
80 m_licenseCountingTypeHasBeenSet = true;
81 m_licenseCountingType = value;
82 }
85 return *this;
86 }
88
90
93 inline long long GetLicenseCount() const { return m_licenseCount; }
94 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
95 inline void SetLicenseCount(long long value) {
96 m_licenseCountHasBeenSet = true;
97 m_licenseCount = value;
98 }
100 SetLicenseCount(value);
101 return *this;
102 }
104
106
110 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
111 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
112 inline void SetLicenseCountHardLimit(bool value) {
113 m_licenseCountHardLimitHasBeenSet = true;
114 m_licenseCountHardLimit = value;
115 }
118 return *this;
119 }
121
123
143 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
144 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
145 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
146 void SetLicenseRules(LicenseRulesT&& value) {
147 m_licenseRulesHasBeenSet = true;
148 m_licenseRules = std::forward<LicenseRulesT>(value);
149 }
150 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
152 SetLicenseRules(std::forward<LicenseRulesT>(value));
153 return *this;
154 }
155 template <typename LicenseRulesT = Aws::String>
157 m_licenseRulesHasBeenSet = true;
158 m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Vector<Tag>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Vector<Tag>>
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsT = Tag>
181 m_tagsHasBeenSet = true;
182 m_tags.emplace_back(std::forward<TagsT>(value));
183 return *this;
184 }
186
188
191 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
192 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
193 inline void SetDisassociateWhenNotFound(bool value) {
194 m_disassociateWhenNotFoundHasBeenSet = true;
195 m_disassociateWhenNotFound = value;
196 }
199 return *this;
200 }
202
204
207 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
208 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
209 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
210 void SetProductInformationList(ProductInformationListT&& value) {
211 m_productInformationListHasBeenSet = true;
212 m_productInformationList = std::forward<ProductInformationListT>(value);
213 }
214 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
216 SetProductInformationList(std::forward<ProductInformationListT>(value));
217 return *this;
218 }
219 template <typename ProductInformationListT = ProductInformation>
221 m_productInformationListHasBeenSet = true;
222 m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value));
223 return *this;
224 }
226 private:
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
234 bool m_licenseCountingTypeHasBeenSet = false;
235
236 long long m_licenseCount{0};
237 bool m_licenseCountHasBeenSet = false;
238
239 bool m_licenseCountHardLimit{false};
240 bool m_licenseCountHardLimitHasBeenSet = false;
241
242 Aws::Vector<Aws::String> m_licenseRules;
243 bool m_licenseRulesHasBeenSet = false;
244
245 Aws::Vector<Tag> m_tags;
246 bool m_tagsHasBeenSet = false;
247
248 bool m_disassociateWhenNotFound{false};
249 bool m_disassociateWhenNotFoundHasBeenSet = false;
250
251 Aws::Vector<ProductInformation> m_productInformationList;
252 bool m_productInformationListHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace LicenseManager
257} // namespace Aws
CreateLicenseConfigurationRequest & WithProductInformationList(ProductInformationListT &&value)
CreateLicenseConfigurationRequest & AddProductInformationList(ProductInformationListT &&value)
CreateLicenseConfigurationRequest & AddLicenseRules(LicenseRulesT &&value)
CreateLicenseConfigurationRequest & WithDescription(DescriptionT &&value)
CreateLicenseConfigurationRequest & WithDisassociateWhenNotFound(bool value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLicenseConfigurationRequest & WithLicenseRules(LicenseRulesT &&value)
AWS_LICENSEMANAGER_API CreateLicenseConfigurationRequest()=default
CreateLicenseConfigurationRequest & WithLicenseCount(long long value)
CreateLicenseConfigurationRequest & WithLicenseCountingType(LicenseCountingType value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector