AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
UpdateLicenseAssetGroupRequest.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/LicenseAssetGroupConfiguration.h>
12#include <aws/license-manager/model/LicenseAssetGroupProperty.h>
13#include <aws/license-manager/model/LicenseAssetGroupStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LicenseManager {
19namespace Model {
20
24 public:
25 AWS_LICENSEMANAGER_API UpdateLicenseAssetGroupRequest() = 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 "UpdateLicenseAssetGroup"; }
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
78 return m_licenseAssetGroupConfigurations;
79 }
80 inline bool LicenseAssetGroupConfigurationsHasBeenSet() const { return m_licenseAssetGroupConfigurationsHasBeenSet; }
81 template <typename LicenseAssetGroupConfigurationsT = Aws::Vector<LicenseAssetGroupConfiguration>>
82 void SetLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
83 m_licenseAssetGroupConfigurationsHasBeenSet = true;
84 m_licenseAssetGroupConfigurations = std::forward<LicenseAssetGroupConfigurationsT>(value);
85 }
86 template <typename LicenseAssetGroupConfigurationsT = Aws::Vector<LicenseAssetGroupConfiguration>>
87 UpdateLicenseAssetGroupRequest& WithLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
88 SetLicenseAssetGroupConfigurations(std::forward<LicenseAssetGroupConfigurationsT>(value));
89 return *this;
90 }
91 template <typename LicenseAssetGroupConfigurationsT = LicenseAssetGroupConfiguration>
92 UpdateLicenseAssetGroupRequest& AddLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT&& value) {
93 m_licenseAssetGroupConfigurationsHasBeenSet = true;
94 m_licenseAssetGroupConfigurations.emplace_back(std::forward<LicenseAssetGroupConfigurationsT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Aws::String>& GetAssociatedLicenseAssetRulesetARNs() const { return m_associatedLicenseAssetRulesetARNs; }
104 inline bool AssociatedLicenseAssetRulesetARNsHasBeenSet() const { return m_associatedLicenseAssetRulesetARNsHasBeenSet; }
105 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::Vector<Aws::String>>
106 void SetAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
107 m_associatedLicenseAssetRulesetARNsHasBeenSet = true;
108 m_associatedLicenseAssetRulesetARNs = std::forward<AssociatedLicenseAssetRulesetARNsT>(value);
109 }
110 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::Vector<Aws::String>>
111 UpdateLicenseAssetGroupRequest& WithAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
112 SetAssociatedLicenseAssetRulesetARNs(std::forward<AssociatedLicenseAssetRulesetARNsT>(value));
113 return *this;
114 }
115 template <typename AssociatedLicenseAssetRulesetARNsT = Aws::String>
116 UpdateLicenseAssetGroupRequest& AddAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT&& value) {
117 m_associatedLicenseAssetRulesetARNsHasBeenSet = true;
118 m_associatedLicenseAssetRulesetARNs.emplace_back(std::forward<AssociatedLicenseAssetRulesetARNsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<LicenseAssetGroupProperty>& GetProperties() const { return m_properties; }
128 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
129 template <typename PropertiesT = Aws::Vector<LicenseAssetGroupProperty>>
130 void SetProperties(PropertiesT&& value) {
131 m_propertiesHasBeenSet = true;
132 m_properties = std::forward<PropertiesT>(value);
133 }
134 template <typename PropertiesT = Aws::Vector<LicenseAssetGroupProperty>>
136 SetProperties(std::forward<PropertiesT>(value));
137 return *this;
138 }
139 template <typename PropertiesT = LicenseAssetGroupProperty>
141 m_propertiesHasBeenSet = true;
142 m_properties.emplace_back(std::forward<PropertiesT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetLicenseAssetGroupArn() const { return m_licenseAssetGroupArn; }
152 inline bool LicenseAssetGroupArnHasBeenSet() const { return m_licenseAssetGroupArnHasBeenSet; }
153 template <typename LicenseAssetGroupArnT = Aws::String>
154 void SetLicenseAssetGroupArn(LicenseAssetGroupArnT&& value) {
155 m_licenseAssetGroupArnHasBeenSet = true;
156 m_licenseAssetGroupArn = std::forward<LicenseAssetGroupArnT>(value);
157 }
158 template <typename LicenseAssetGroupArnT = Aws::String>
160 SetLicenseAssetGroupArn(std::forward<LicenseAssetGroupArnT>(value));
161 return *this;
162 }
164
166
170 inline LicenseAssetGroupStatus GetStatus() const { return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 m_statusHasBeenSet = true;
174 m_status = value;
175 }
177 SetStatus(value);
178 return *this;
179 }
181
183
187 inline const Aws::String& GetClientToken() const { return m_clientToken; }
188 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
189 template <typename ClientTokenT = Aws::String>
190 void SetClientToken(ClientTokenT&& value) {
191 m_clientTokenHasBeenSet = true;
192 m_clientToken = std::forward<ClientTokenT>(value);
193 }
194 template <typename ClientTokenT = Aws::String>
196 SetClientToken(std::forward<ClientTokenT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_name;
202
203 Aws::String m_description;
204
205 Aws::Vector<LicenseAssetGroupConfiguration> m_licenseAssetGroupConfigurations;
206
207 Aws::Vector<Aws::String> m_associatedLicenseAssetRulesetARNs;
208
210
211 Aws::String m_licenseAssetGroupArn;
212
214
215 Aws::String m_clientToken;
216 bool m_nameHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_licenseAssetGroupConfigurationsHasBeenSet = false;
219 bool m_associatedLicenseAssetRulesetARNsHasBeenSet = false;
220 bool m_propertiesHasBeenSet = false;
221 bool m_licenseAssetGroupArnHasBeenSet = false;
222 bool m_statusHasBeenSet = false;
223 bool m_clientTokenHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace LicenseManager
228} // namespace Aws
UpdateLicenseAssetGroupRequest & AddProperties(PropertiesT &&value)
UpdateLicenseAssetGroupRequest & WithLicenseAssetGroupArn(LicenseAssetGroupArnT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
const Aws::Vector< LicenseAssetGroupConfiguration > & GetLicenseAssetGroupConfigurations() const
const Aws::Vector< LicenseAssetGroupProperty > & GetProperties() const
UpdateLicenseAssetGroupRequest & WithProperties(PropertiesT &&value)
void SetLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
UpdateLicenseAssetGroupRequest & AddLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
const Aws::Vector< Aws::String > & GetAssociatedLicenseAssetRulesetARNs() const
UpdateLicenseAssetGroupRequest & WithAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
UpdateLicenseAssetGroupRequest & WithClientToken(ClientTokenT &&value)
UpdateLicenseAssetGroupRequest & AddAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
UpdateLicenseAssetGroupRequest & WithLicenseAssetGroupConfigurations(LicenseAssetGroupConfigurationsT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLicenseAssetGroupRequest & WithDescription(DescriptionT &&value)
UpdateLicenseAssetGroupRequest & WithStatus(LicenseAssetGroupStatus value)
void SetAssociatedLicenseAssetRulesetARNs(AssociatedLicenseAssetRulesetARNsT &&value)
AWS_LICENSEMANAGER_API UpdateLicenseAssetGroupRequest()=default
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