AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateLicenseConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateLicenseConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateLicenseConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateLicenseConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateLicenseConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateLicenseConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const LicenseCountingType& GetLicenseCountingType() const{ return m_licenseCountingType; }
74 inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; }
75 inline void SetLicenseCountingType(const LicenseCountingType& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; }
76 inline void SetLicenseCountingType(LicenseCountingType&& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = std::move(value); }
80
82
85 inline long long GetLicenseCount() const{ return m_licenseCount; }
86 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
87 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
88 inline CreateLicenseConfigurationRequest& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
90
92
96 inline bool GetLicenseCountHardLimit() const{ return m_licenseCountHardLimit; }
97 inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; }
98 inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; }
101
103
125 inline const Aws::Vector<Aws::String>& GetLicenseRules() const{ return m_licenseRules; }
126 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
127 inline void SetLicenseRules(const Aws::Vector<Aws::String>& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = value; }
128 inline void SetLicenseRules(Aws::Vector<Aws::String>&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::move(value); }
131 inline CreateLicenseConfigurationRequest& AddLicenseRules(const Aws::String& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
132 inline CreateLicenseConfigurationRequest& AddLicenseRules(Aws::String&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(std::move(value)); return *this; }
133 inline CreateLicenseConfigurationRequest& AddLicenseRules(const char* value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
135
137
140 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline CreateLicenseConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
145 inline CreateLicenseConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
146 inline CreateLicenseConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
147 inline CreateLicenseConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
149
151
154 inline bool GetDisassociateWhenNotFound() const{ return m_disassociateWhenNotFound; }
155 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
156 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
159
161
164 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const{ return m_productInformationList; }
165 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
166 inline void SetProductInformationList(const Aws::Vector<ProductInformation>& value) { m_productInformationListHasBeenSet = true; m_productInformationList = value; }
167 inline void SetProductInformationList(Aws::Vector<ProductInformation>&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::move(value); }
170 inline CreateLicenseConfigurationRequest& AddProductInformationList(const ProductInformation& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(value); return *this; }
171 inline CreateLicenseConfigurationRequest& AddProductInformationList(ProductInformation&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(std::move(value)); return *this; }
173 private:
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 LicenseCountingType m_licenseCountingType;
182 bool m_licenseCountingTypeHasBeenSet = false;
183
184 long long m_licenseCount;
185 bool m_licenseCountHasBeenSet = false;
186
187 bool m_licenseCountHardLimit;
188 bool m_licenseCountHardLimitHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_licenseRules;
191 bool m_licenseRulesHasBeenSet = false;
192
193 Aws::Vector<Tag> m_tags;
194 bool m_tagsHasBeenSet = false;
195
196 bool m_disassociateWhenNotFound;
197 bool m_disassociateWhenNotFoundHasBeenSet = false;
198
199 Aws::Vector<ProductInformation> m_productInformationList;
200 bool m_productInformationListHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace LicenseManager
205} // namespace Aws
CreateLicenseConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLicenseConfigurationRequest & WithProductInformationList(const Aws::Vector< ProductInformation > &value)
CreateLicenseConfigurationRequest & WithLicenseCountingType(LicenseCountingType &&value)
CreateLicenseConfigurationRequest & WithDescription(Aws::String &&value)
CreateLicenseConfigurationRequest & WithLicenseRules(Aws::Vector< Aws::String > &&value)
CreateLicenseConfigurationRequest & WithName(const Aws::String &value)
CreateLicenseConfigurationRequest & WithName(const char *value)
CreateLicenseConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLicenseConfigurationRequest & WithLicenseCountingType(const LicenseCountingType &value)
CreateLicenseConfigurationRequest & WithLicenseCountHardLimit(bool value)
CreateLicenseConfigurationRequest & WithDescription(const char *value)
void SetProductInformationList(const Aws::Vector< ProductInformation > &value)
CreateLicenseConfigurationRequest & WithDescription(const Aws::String &value)
CreateLicenseConfigurationRequest & WithDisassociateWhenNotFound(bool value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLicenseConfigurationRequest & AddProductInformationList(const ProductInformation &value)
CreateLicenseConfigurationRequest & AddLicenseRules(Aws::String &&value)
CreateLicenseConfigurationRequest & AddLicenseRules(const char *value)
CreateLicenseConfigurationRequest & AddLicenseRules(const Aws::String &value)
CreateLicenseConfigurationRequest & WithName(Aws::String &&value)
CreateLicenseConfigurationRequest & WithProductInformationList(Aws::Vector< ProductInformation > &&value)
CreateLicenseConfigurationRequest & AddProductInformationList(ProductInformation &&value)
CreateLicenseConfigurationRequest & WithLicenseCount(long long value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseConfigurationRequest & WithLicenseRules(const Aws::Vector< Aws::String > &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