AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
67 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
68 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
69 template <typename SemanticVersionT = Aws::String>
70 void SetSemanticVersion(SemanticVersionT&& value) {
71 m_semanticVersionHasBeenSet = true;
72 m_semanticVersion = std::forward<SemanticVersionT>(value);
73 }
74 template <typename SemanticVersionT = Aws::String>
75 CreateComponentRequest& WithSemanticVersion(SemanticVersionT&& value) {
76 SetSemanticVersion(std::forward<SemanticVersionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template <typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) {
89 m_descriptionHasBeenSet = true;
90 m_description = std::forward<DescriptionT>(value);
91 }
92 template <typename DescriptionT = Aws::String>
93 CreateComponentRequest& WithDescription(DescriptionT&& value) {
94 SetDescription(std::forward<DescriptionT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
106 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
107 template <typename ChangeDescriptionT = Aws::String>
108 void SetChangeDescription(ChangeDescriptionT&& value) {
109 m_changeDescriptionHasBeenSet = true;
110 m_changeDescription = std::forward<ChangeDescriptionT>(value);
111 }
112 template <typename ChangeDescriptionT = Aws::String>
113 CreateComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) {
114 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
115 return *this;
116 }
118
120
123 inline Platform GetPlatform() const { return m_platform; }
124 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
125 inline void SetPlatform(Platform value) {
126 m_platformHasBeenSet = true;
127 m_platform = value;
128 }
130 SetPlatform(value);
131 return *this;
132 }
134
136
141 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const { return m_supportedOsVersions; }
142 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
143 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
144 void SetSupportedOsVersions(SupportedOsVersionsT&& value) {
145 m_supportedOsVersionsHasBeenSet = true;
146 m_supportedOsVersions = std::forward<SupportedOsVersionsT>(value);
147 }
148 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
149 CreateComponentRequest& WithSupportedOsVersions(SupportedOsVersionsT&& value) {
150 SetSupportedOsVersions(std::forward<SupportedOsVersionsT>(value));
151 return *this;
152 }
153 template <typename SupportedOsVersionsT = Aws::String>
154 CreateComponentRequest& AddSupportedOsVersions(SupportedOsVersionsT&& value) {
155 m_supportedOsVersionsHasBeenSet = true;
156 m_supportedOsVersions.emplace_back(std::forward<SupportedOsVersionsT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetData() const { return m_data; }
169 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
170 template <typename DataT = Aws::String>
171 void SetData(DataT&& value) {
172 m_dataHasBeenSet = true;
173 m_data = std::forward<DataT>(value);
174 }
175 template <typename DataT = Aws::String>
177 SetData(std::forward<DataT>(value));
178 return *this;
179 }
181
183
191 inline const Aws::String& GetUri() const { return m_uri; }
192 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
193 template <typename UriT = Aws::String>
194 void SetUri(UriT&& value) {
195 m_uriHasBeenSet = true;
196 m_uri = std::forward<UriT>(value);
197 }
198 template <typename UriT = Aws::String>
200 SetUri(std::forward<UriT>(value));
201 return *this;
202 }
204
206
214 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
215 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
216 template <typename KmsKeyIdT = Aws::String>
217 void SetKmsKeyId(KmsKeyIdT&& value) {
218 m_kmsKeyIdHasBeenSet = true;
219 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
220 }
221 template <typename KmsKeyIdT = Aws::String>
223 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
235 void SetTags(TagsT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags = std::forward<TagsT>(value);
238 }
239 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 SetTags(std::forward<TagsT>(value));
242 return *this;
243 }
244 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
245 CreateComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
248 return *this;
249 }
251
253
259 inline const Aws::String& GetClientToken() const { return m_clientToken; }
260 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
261 template <typename ClientTokenT = Aws::String>
262 void SetClientToken(ClientTokenT&& value) {
263 m_clientTokenHasBeenSet = true;
264 m_clientToken = std::forward<ClientTokenT>(value);
265 }
266 template <typename ClientTokenT = Aws::String>
268 SetClientToken(std::forward<ClientTokenT>(value));
269 return *this;
270 }
272
274
280 inline bool GetDryRun() const { return m_dryRun; }
281 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
282 inline void SetDryRun(bool value) {
283 m_dryRunHasBeenSet = true;
284 m_dryRun = value;
285 }
286 inline CreateComponentRequest& WithDryRun(bool value) {
287 SetDryRun(value);
288 return *this;
289 }
291 private:
292 Aws::String m_name;
293
294 Aws::String m_semanticVersion;
295
296 Aws::String m_description;
297
298 Aws::String m_changeDescription;
299
300 Platform m_platform{Platform::NOT_SET};
301
302 Aws::Vector<Aws::String> m_supportedOsVersions;
303
304 Aws::String m_data;
305
306 Aws::String m_uri;
307
308 Aws::String m_kmsKeyId;
309
311
313
314 bool m_dryRun{false};
315 bool m_nameHasBeenSet = false;
316 bool m_semanticVersionHasBeenSet = false;
317 bool m_descriptionHasBeenSet = false;
318 bool m_changeDescriptionHasBeenSet = false;
319 bool m_platformHasBeenSet = false;
320 bool m_supportedOsVersionsHasBeenSet = false;
321 bool m_dataHasBeenSet = false;
322 bool m_uriHasBeenSet = false;
323 bool m_kmsKeyIdHasBeenSet = false;
324 bool m_tagsHasBeenSet = false;
325 bool m_clientTokenHasBeenSet = true;
326 bool m_dryRunHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace imagebuilder
331} // 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