AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLicenseConfigurationRequest.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/LicenseConfigurationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/license-manager/model/ProductInformation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LicenseManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateLicenseConfiguration"; }
34
35 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetLicenseConfigurationArn() const{ return m_licenseConfigurationArn; }
45 inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; }
46 inline void SetLicenseConfigurationArn(const Aws::String& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = value; }
47 inline void SetLicenseConfigurationArn(Aws::String&& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::move(value); }
48 inline void SetLicenseConfigurationArn(const char* value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn.assign(value); }
53
55
58 inline const LicenseConfigurationStatus& GetLicenseConfigurationStatus() const{ return m_licenseConfigurationStatus; }
59 inline bool LicenseConfigurationStatusHasBeenSet() const { return m_licenseConfigurationStatusHasBeenSet; }
60 inline void SetLicenseConfigurationStatus(const LicenseConfigurationStatus& value) { m_licenseConfigurationStatusHasBeenSet = true; m_licenseConfigurationStatus = value; }
61 inline void SetLicenseConfigurationStatus(LicenseConfigurationStatus&& value) { m_licenseConfigurationStatusHasBeenSet = true; m_licenseConfigurationStatus = std::move(value); }
65
67
71 inline const Aws::Vector<Aws::String>& GetLicenseRules() const{ return m_licenseRules; }
72 inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; }
73 inline void SetLicenseRules(const Aws::Vector<Aws::String>& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = value; }
74 inline void SetLicenseRules(Aws::Vector<Aws::String>&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::move(value); }
77 inline UpdateLicenseConfigurationRequest& AddLicenseRules(const Aws::String& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
78 inline UpdateLicenseConfigurationRequest& AddLicenseRules(Aws::String&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(std::move(value)); return *this; }
79 inline UpdateLicenseConfigurationRequest& AddLicenseRules(const char* value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; }
81
83
86 inline long long GetLicenseCount() const{ return m_licenseCount; }
87 inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; }
88 inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; }
89 inline UpdateLicenseConfigurationRequest& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;}
91
93
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
106 inline const Aws::String& GetName() const{ return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
109 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
110 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 inline UpdateLicenseConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
112 inline UpdateLicenseConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
113 inline UpdateLicenseConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
115
117
120 inline const Aws::String& GetDescription() const{ return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
123 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
124 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
126 inline UpdateLicenseConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
127 inline UpdateLicenseConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
129
131
134 inline const Aws::Vector<ProductInformation>& GetProductInformationList() const{ return m_productInformationList; }
135 inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; }
136 inline void SetProductInformationList(const Aws::Vector<ProductInformation>& value) { m_productInformationListHasBeenSet = true; m_productInformationList = value; }
137 inline void SetProductInformationList(Aws::Vector<ProductInformation>&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::move(value); }
140 inline UpdateLicenseConfigurationRequest& AddProductInformationList(const ProductInformation& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(value); return *this; }
141 inline UpdateLicenseConfigurationRequest& AddProductInformationList(ProductInformation&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(std::move(value)); return *this; }
143
145
148 inline bool GetDisassociateWhenNotFound() const{ return m_disassociateWhenNotFound; }
149 inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; }
150 inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; }
153 private:
154
155 Aws::String m_licenseConfigurationArn;
156 bool m_licenseConfigurationArnHasBeenSet = false;
157
158 LicenseConfigurationStatus m_licenseConfigurationStatus;
159 bool m_licenseConfigurationStatusHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_licenseRules;
162 bool m_licenseRulesHasBeenSet = false;
163
164 long long m_licenseCount;
165 bool m_licenseCountHasBeenSet = false;
166
167 bool m_licenseCountHardLimit;
168 bool m_licenseCountHardLimitHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 Aws::Vector<ProductInformation> m_productInformationList;
177 bool m_productInformationListHasBeenSet = false;
178
179 bool m_disassociateWhenNotFound;
180 bool m_disassociateWhenNotFoundHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace LicenseManager
185} // namespace Aws
UpdateLicenseConfigurationRequest & WithLicenseConfigurationArn(Aws::String &&value)
UpdateLicenseConfigurationRequest & WithName(const char *value)
UpdateLicenseConfigurationRequest & WithLicenseCount(long long value)
UpdateLicenseConfigurationRequest & WithLicenseRules(const Aws::Vector< Aws::String > &value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
UpdateLicenseConfigurationRequest & WithLicenseConfigurationStatus(LicenseConfigurationStatus &&value)
UpdateLicenseConfigurationRequest & AddLicenseRules(const char *value)
UpdateLicenseConfigurationRequest & WithDisassociateWhenNotFound(bool value)
UpdateLicenseConfigurationRequest & WithDescription(const char *value)
UpdateLicenseConfigurationRequest & WithName(const Aws::String &value)
UpdateLicenseConfigurationRequest & WithDescription(const Aws::String &value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationStatus(const LicenseConfigurationStatus &value)
UpdateLicenseConfigurationRequest & AddProductInformationList(const ProductInformation &value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationArn(const char *value)
UpdateLicenseConfigurationRequest & WithName(Aws::String &&value)
const Aws::Vector< ProductInformation > & GetProductInformationList() const
UpdateLicenseConfigurationRequest & WithProductInformationList(Aws::Vector< ProductInformation > &&value)
UpdateLicenseConfigurationRequest & AddProductInformationList(ProductInformation &&value)
UpdateLicenseConfigurationRequest & WithLicenseRules(Aws::Vector< Aws::String > &&value)
UpdateLicenseConfigurationRequest & WithDescription(Aws::String &&value)
UpdateLicenseConfigurationRequest & AddLicenseRules(const Aws::String &value)
UpdateLicenseConfigurationRequest & WithProductInformationList(const Aws::Vector< ProductInformation > &value)
UpdateLicenseConfigurationRequest & AddLicenseRules(Aws::String &&value)
UpdateLicenseConfigurationRequest & WithLicenseCountHardLimit(bool value)
void SetProductInformationList(const Aws::Vector< ProductInformation > &value)
UpdateLicenseConfigurationRequest & WithLicenseConfigurationArn(const 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