AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
UpdateLicenseConfigurationRequest.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/LicenseConfigurationStatus.h>
12#include <aws/license-manager/model/ProductInformation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LicenseManager {
18namespace Model {
19
23 public:
24 AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateLicenseConfiguration"; }
31
32 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetLicenseConfigurationArn() const { return m_licenseConfigurationArn; }
41 inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; }
42 template <typename LicenseConfigurationArnT = Aws::String>
43 void SetLicenseConfigurationArn(LicenseConfigurationArnT&& value) {
44 m_licenseConfigurationArnHasBeenSet = true;
45 m_licenseConfigurationArn = std::forward<LicenseConfigurationArnT>(value);
46 }
47 template <typename LicenseConfigurationArnT = Aws::String>
49 SetLicenseConfigurationArn(std::forward<LicenseConfigurationArnT>(value));
50 return *this;
51 }
53
55
58 inline LicenseConfigurationStatus GetLicenseConfigurationStatus() const { return m_licenseConfigurationStatus; }
59 inline bool LicenseConfigurationStatusHasBeenSet() const { return m_licenseConfigurationStatusHasBeenSet; }
61 m_licenseConfigurationStatusHasBeenSet = true;
62 m_licenseConfigurationStatus = value;
63 }
66 return *this;
67 }
69
71
75 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
76 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
77 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
78 void SetLicenseRules(LicenseRulesT&& value) {
79 m_licenseRulesHasBeenSet = true;
80 m_licenseRules = std::forward<LicenseRulesT>(value);
81 }
82 template <typename LicenseRulesT = Aws::Vector<Aws::String>>
84 SetLicenseRules(std::forward<LicenseRulesT>(value));
85 return *this;
86 }
87 template <typename LicenseRulesT = Aws::String>
89 m_licenseRulesHasBeenSet = true;
90 m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value));
91 return *this;
92 }
94
96
99 inline long long GetLicenseCount() const { return m_licenseCount; }
100 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
101 inline void SetLicenseCount(long long value) {
102 m_licenseCountHasBeenSet = true;
103 m_licenseCount = value;
104 }
106 SetLicenseCount(value);
107 return *this;
108 }
110
112
115 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
116 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
117 inline void SetLicenseCountHardLimit(bool value) {
118 m_licenseCountHardLimitHasBeenSet = true;
119 m_licenseCountHardLimit = value;
120 }
123 return *this;
124 }
126
128
131 inline const Aws::String& GetName() const { return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 template <typename NameT = Aws::String>
134 void SetName(NameT&& value) {
135 m_nameHasBeenSet = true;
136 m_name = std::forward<NameT>(value);
137 }
138 template <typename NameT = Aws::String>
140 SetName(std::forward<NameT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template <typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) {
153 m_descriptionHasBeenSet = true;
154 m_description = std::forward<DescriptionT>(value);
155 }
156 template <typename DescriptionT = Aws::String>
158 SetDescription(std::forward<DescriptionT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
168 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
169 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
170 void SetProductInformationList(ProductInformationListT&& value) {
171 m_productInformationListHasBeenSet = true;
172 m_productInformationList = std::forward<ProductInformationListT>(value);
173 }
174 template <typename ProductInformationListT = Aws::Vector<ProductInformation>>
176 SetProductInformationList(std::forward<ProductInformationListT>(value));
177 return *this;
178 }
179 template <typename ProductInformationListT = ProductInformation>
181 m_productInformationListHasBeenSet = true;
182 m_productInformationList.emplace_back(std::forward<ProductInformationListT>(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 private:
203 Aws::String m_licenseConfigurationArn;
204 bool m_licenseConfigurationArnHasBeenSet = false;
205
207 bool m_licenseConfigurationStatusHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_licenseRules;
210 bool m_licenseRulesHasBeenSet = false;
211
212 long long m_licenseCount{0};
213 bool m_licenseCountHasBeenSet = false;
214
215 bool m_licenseCountHardLimit{false};
216 bool m_licenseCountHardLimitHasBeenSet = false;
217
218 Aws::String m_name;
219 bool m_nameHasBeenSet = false;
220
221 Aws::String m_description;
222 bool m_descriptionHasBeenSet = false;
223
224 Aws::Vector<ProductInformation> m_productInformationList;
225 bool m_productInformationListHasBeenSet = false;
226
227 bool m_disassociateWhenNotFound{false};
228 bool m_disassociateWhenNotFoundHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace LicenseManager
233} // namespace Aws
UpdateLicenseConfigurationRequest & AddProductInformationList(ProductInformationListT &&value)
UpdateLicenseConfigurationRequest & WithLicenseCount(long long value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationStatus(LicenseConfigurationStatus value)
AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest()=default
UpdateLicenseConfigurationRequest & WithLicenseRules(LicenseRulesT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLicenseConfigurationRequest & WithProductInformationList(ProductInformationListT &&value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationArn(LicenseConfigurationArnT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
UpdateLicenseConfigurationRequest & AddLicenseRules(LicenseRulesT &&value)
UpdateLicenseConfigurationRequest & WithDisassociateWhenNotFound(bool value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
UpdateLicenseConfigurationRequest & WithDescription(DescriptionT &&value)
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