AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLicenseConfigurationRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/license-manager/model/LicenseCountingType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/license-manager/model/Tag.h>
13#include <aws/license-manager/model/ProductInformation.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LicenseManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LICENSEMANAGER_API CreateLicenseConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateLicenseConfiguration"; }
35
36 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateLicenseConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateLicenseConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline LicenseCountingType GetLicenseCountingType() const { return m_licenseCountingType; }
70 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
71 inline void SetLicenseCountingType(LicenseCountingType value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; }
74
76
79 inline long long GetLicenseCount() const { return m_licenseCount; }
80 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
81 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
82 inline CreateLicenseConfigurationRequest& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
84
86
90 inline bool GetLicenseCountHardLimit() const { return m_licenseCountHardLimit; }
91 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
92 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
95
97
117 inline const Aws::Vector<Aws::String>& GetLicenseRules() const { return m_licenseRules; }
118 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
119 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
120 void SetLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::forward<LicenseRulesT>(value); }
121 template<typename LicenseRulesT = Aws::Vector<Aws::String>>
122 CreateLicenseConfigurationRequest& WithLicenseRules(LicenseRulesT&& value) { SetLicenseRules(std::forward<LicenseRulesT>(value)); return *this;}
123 template<typename LicenseRulesT = Aws::String>
124 CreateLicenseConfigurationRequest& AddLicenseRules(LicenseRulesT&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.emplace_back(std::forward<LicenseRulesT>(value)); return *this; }
126
128
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Vector<Tag>>
136 CreateLicenseConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsT = Tag>
138 CreateLicenseConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
140
142
145 inline bool GetDisassociateWhenNotFound() const { return m_disassociateWhenNotFound; }
146 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
147 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
150
152
155 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const { return m_productInformationList; }
156 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
157 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
158 void SetProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::forward<ProductInformationListT>(value); }
159 template<typename ProductInformationListT = Aws::Vector<ProductInformation>>
160 CreateLicenseConfigurationRequest& WithProductInformationList(ProductInformationListT&& value) { SetProductInformationList(std::forward<ProductInformationListT>(value)); return *this;}
161 template<typename ProductInformationListT = ProductInformation>
162 CreateLicenseConfigurationRequest& AddProductInformationList(ProductInformationListT&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.emplace_back(std::forward<ProductInformationListT>(value)); return *this; }
164 private:
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
173 bool m_licenseCountingTypeHasBeenSet = false;
174
175 long long m_licenseCount{0};
176 bool m_licenseCountHasBeenSet = false;
177
178 bool m_licenseCountHardLimit{false};
179 bool m_licenseCountHardLimitHasBeenSet = false;
180
181 Aws::Vector<Aws::String> m_licenseRules;
182 bool m_licenseRulesHasBeenSet = false;
183
184 Aws::Vector<Tag> m_tags;
185 bool m_tagsHasBeenSet = false;
186
187 bool m_disassociateWhenNotFound{false};
188 bool m_disassociateWhenNotFoundHasBeenSet = false;
189
190 Aws::Vector<ProductInformation> m_productInformationList;
191 bool m_productInformationListHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace LicenseManager
196} // namespace Aws
CreateLicenseConfigurationRequest & WithProductInformationList(ProductInformationListT &&value)
CreateLicenseConfigurationRequest & AddProductInformationList(ProductInformationListT &&value)
CreateLicenseConfigurationRequest & AddLicenseRules(LicenseRulesT &&value)
CreateLicenseConfigurationRequest & WithDescription(DescriptionT &&value)
CreateLicenseConfigurationRequest & WithLicenseCountHardLimit(bool 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