AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateComponentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/ImagebuilderRequest.h>
12#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
13#include <aws/imagebuilder/model/Platform.h>
14
15#include <utility>
16
17namespace Aws {
18namespace imagebuilder {
19namespace Model {
20
24 public:
25 AWS_IMAGEBUILDER_API CreateComponentRequest() = 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 "CreateComponent"; }
32
33 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
34
36
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) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
73 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
74 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
75 template <typename SemanticVersionT = Aws::String>
76 void SetSemanticVersion(SemanticVersionT&& value) {
77 m_semanticVersionHasBeenSet = true;
78 m_semanticVersion = std::forward<SemanticVersionT>(value);
79 }
80 template <typename SemanticVersionT = Aws::String>
81 CreateComponentRequest& WithSemanticVersion(SemanticVersionT&& value) {
82 SetSemanticVersion(std::forward<SemanticVersionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 CreateComponentRequest& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
112 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
113 template <typename ChangeDescriptionT = Aws::String>
114 void SetChangeDescription(ChangeDescriptionT&& value) {
115 m_changeDescriptionHasBeenSet = true;
116 m_changeDescription = std::forward<ChangeDescriptionT>(value);
117 }
118 template <typename ChangeDescriptionT = Aws::String>
119 CreateComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) {
120 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
121 return *this;
122 }
124
126
129 inline Platform GetPlatform() const { return m_platform; }
130 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
131 inline void SetPlatform(Platform value) {
132 m_platformHasBeenSet = true;
133 m_platform = value;
134 }
136 SetPlatform(value);
137 return *this;
138 }
140
142
147 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const { return m_supportedOsVersions; }
148 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
149 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
150 void SetSupportedOsVersions(SupportedOsVersionsT&& value) {
151 m_supportedOsVersionsHasBeenSet = true;
152 m_supportedOsVersions = std::forward<SupportedOsVersionsT>(value);
153 }
154 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
155 CreateComponentRequest& WithSupportedOsVersions(SupportedOsVersionsT&& value) {
156 SetSupportedOsVersions(std::forward<SupportedOsVersionsT>(value));
157 return *this;
158 }
159 template <typename SupportedOsVersionsT = Aws::String>
160 CreateComponentRequest& AddSupportedOsVersions(SupportedOsVersionsT&& value) {
161 m_supportedOsVersionsHasBeenSet = true;
162 m_supportedOsVersions.emplace_back(std::forward<SupportedOsVersionsT>(value));
163 return *this;
164 }
166
168
174 inline const Aws::String& GetData() const { return m_data; }
175 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
176 template <typename DataT = Aws::String>
177 void SetData(DataT&& value) {
178 m_dataHasBeenSet = true;
179 m_data = std::forward<DataT>(value);
180 }
181 template <typename DataT = Aws::String>
183 SetData(std::forward<DataT>(value));
184 return *this;
185 }
187
189
197 inline const Aws::String& GetUri() const { return m_uri; }
198 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
199 template <typename UriT = Aws::String>
200 void SetUri(UriT&& value) {
201 m_uriHasBeenSet = true;
202 m_uri = std::forward<UriT>(value);
203 }
204 template <typename UriT = Aws::String>
206 SetUri(std::forward<UriT>(value));
207 return *this;
208 }
210
212
221 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
222 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
223 template <typename KmsKeyIdT = Aws::String>
224 void SetKmsKeyId(KmsKeyIdT&& value) {
225 m_kmsKeyIdHasBeenSet = true;
226 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
227 }
228 template <typename KmsKeyIdT = Aws::String>
230 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
242 void SetTags(TagsT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags = std::forward<TagsT>(value);
245 }
246 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
248 SetTags(std::forward<TagsT>(value));
249 return *this;
250 }
251 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
252 CreateComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
255 return *this;
256 }
258
260
268 inline const Aws::String& GetClientToken() const { return m_clientToken; }
269 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
270 template <typename ClientTokenT = Aws::String>
271 void SetClientToken(ClientTokenT&& value) {
272 m_clientTokenHasBeenSet = true;
273 m_clientToken = std::forward<ClientTokenT>(value);
274 }
275 template <typename ClientTokenT = Aws::String>
277 SetClientToken(std::forward<ClientTokenT>(value));
278 return *this;
279 }
281
283
288 inline bool GetDryRun() const { return m_dryRun; }
289 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
290 inline void SetDryRun(bool value) {
291 m_dryRunHasBeenSet = true;
292 m_dryRun = value;
293 }
294 inline CreateComponentRequest& WithDryRun(bool value) {
295 SetDryRun(value);
296 return *this;
297 }
299 private:
300 Aws::String m_name;
301
302 Aws::String m_semanticVersion;
303
304 Aws::String m_description;
305
306 Aws::String m_changeDescription;
307
308 Platform m_platform{Platform::NOT_SET};
309
310 Aws::Vector<Aws::String> m_supportedOsVersions;
311
312 Aws::String m_data;
313
314 Aws::String m_uri;
315
316 Aws::String m_kmsKeyId;
317
319
321
322 bool m_dryRun{false};
323 bool m_nameHasBeenSet = false;
324 bool m_semanticVersionHasBeenSet = false;
325 bool m_descriptionHasBeenSet = false;
326 bool m_changeDescriptionHasBeenSet = false;
327 bool m_platformHasBeenSet = false;
328 bool m_supportedOsVersionsHasBeenSet = false;
329 bool m_dataHasBeenSet = false;
330 bool m_uriHasBeenSet = false;
331 bool m_kmsKeyIdHasBeenSet = false;
332 bool m_tagsHasBeenSet = false;
333 bool m_clientTokenHasBeenSet = true;
334 bool m_dryRunHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace imagebuilder
339} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
CreateComponentRequest & WithDescription(DescriptionT &&value)
CreateComponentRequest & AddSupportedOsVersions(SupportedOsVersionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComponentRequest & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API CreateComponentRequest()=default
CreateComponentRequest & WithSupportedOsVersions(SupportedOsVersionsT &&value)
CreateComponentRequest & WithData(DataT &&value)
CreateComponentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComponentRequest & WithUri(UriT &&value)
CreateComponentRequest & WithChangeDescription(ChangeDescriptionT &&value)
CreateComponentRequest & WithPlatform(Platform value)
CreateComponentRequest & WithClientToken(ClientTokenT &&value)
void SetSupportedOsVersions(SupportedOsVersionsT &&value)
CreateComponentRequest & WithSemanticVersion(SemanticVersionT &&value)
CreateComponentRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector