AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportComponentRequest.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/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/ComponentFormat.h>
13#include <aws/imagebuilder/model/ComponentType.h>
14#include <aws/imagebuilder/model/Platform.h>
15
16#include <utility>
17
18namespace Aws {
19namespace imagebuilder {
20namespace Model {
21
25 public:
26 AWS_IMAGEBUILDER_API ImportComponentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportComponent"; }
33
34 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
65 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
66 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
67 template <typename SemanticVersionT = Aws::String>
68 void SetSemanticVersion(SemanticVersionT&& value) {
69 m_semanticVersionHasBeenSet = true;
70 m_semanticVersion = std::forward<SemanticVersionT>(value);
71 }
72 template <typename SemanticVersionT = Aws::String>
73 ImportComponentRequest& WithSemanticVersion(SemanticVersionT&& value) {
74 SetSemanticVersion(std::forward<SemanticVersionT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 ImportComponentRequest& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
105 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
106 template <typename ChangeDescriptionT = Aws::String>
107 void SetChangeDescription(ChangeDescriptionT&& value) {
108 m_changeDescriptionHasBeenSet = true;
109 m_changeDescription = std::forward<ChangeDescriptionT>(value);
110 }
111 template <typename ChangeDescriptionT = Aws::String>
112 ImportComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) {
113 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
114 return *this;
115 }
117
119
123 inline ComponentType GetType() const { return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(ComponentType value) {
126 m_typeHasBeenSet = true;
127 m_type = value;
128 }
130 SetType(value);
131 return *this;
132 }
134
136
139 inline ComponentFormat GetFormat() const { return m_format; }
140 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
141 inline void SetFormat(ComponentFormat value) {
142 m_formatHasBeenSet = true;
143 m_format = value;
144 }
146 SetFormat(value);
147 return *this;
148 }
150
152
155 inline Platform GetPlatform() const { return m_platform; }
156 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
157 inline void SetPlatform(Platform value) {
158 m_platformHasBeenSet = true;
159 m_platform = value;
160 }
162 SetPlatform(value);
163 return *this;
164 }
166
168
173 inline const Aws::String& GetData() const { return m_data; }
174 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
175 template <typename DataT = Aws::String>
176 void SetData(DataT&& value) {
177 m_dataHasBeenSet = true;
178 m_data = std::forward<DataT>(value);
179 }
180 template <typename DataT = Aws::String>
182 SetData(std::forward<DataT>(value));
183 return *this;
184 }
186
188
194 inline const Aws::String& GetUri() const { return m_uri; }
195 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
196 template <typename UriT = Aws::String>
197 void SetUri(UriT&& value) {
198 m_uriHasBeenSet = true;
199 m_uri = std::forward<UriT>(value);
200 }
201 template <typename UriT = Aws::String>
203 SetUri(std::forward<UriT>(value));
204 return *this;
205 }
207
209
217 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
218 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
219 template <typename KmsKeyIdT = Aws::String>
220 void SetKmsKeyId(KmsKeyIdT&& value) {
221 m_kmsKeyIdHasBeenSet = true;
222 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
223 }
224 template <typename KmsKeyIdT = Aws::String>
226 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 void SetTags(TagsT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags = std::forward<TagsT>(value);
241 }
242 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 SetTags(std::forward<TagsT>(value));
245 return *this;
246 }
247 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
248 ImportComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
251 return *this;
252 }
254
256
262 inline const Aws::String& GetClientToken() const { return m_clientToken; }
263 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
264 template <typename ClientTokenT = Aws::String>
265 void SetClientToken(ClientTokenT&& value) {
266 m_clientTokenHasBeenSet = true;
267 m_clientToken = std::forward<ClientTokenT>(value);
268 }
269 template <typename ClientTokenT = Aws::String>
271 SetClientToken(std::forward<ClientTokenT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_name;
277
278 Aws::String m_semanticVersion;
279
280 Aws::String m_description;
281
282 Aws::String m_changeDescription;
283
285
287
288 Platform m_platform{Platform::NOT_SET};
289
290 Aws::String m_data;
291
292 Aws::String m_uri;
293
294 Aws::String m_kmsKeyId;
295
297
299 bool m_nameHasBeenSet = false;
300 bool m_semanticVersionHasBeenSet = false;
301 bool m_descriptionHasBeenSet = false;
302 bool m_changeDescriptionHasBeenSet = false;
303 bool m_typeHasBeenSet = false;
304 bool m_formatHasBeenSet = false;
305 bool m_platformHasBeenSet = false;
306 bool m_dataHasBeenSet = false;
307 bool m_uriHasBeenSet = false;
308 bool m_kmsKeyIdHasBeenSet = false;
309 bool m_tagsHasBeenSet = false;
310 bool m_clientTokenHasBeenSet = true;
311};
312
313} // namespace Model
314} // namespace imagebuilder
315} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
ImportComponentRequest & WithType(ComponentType value)
ImportComponentRequest & WithPlatform(Platform value)
ImportComponentRequest & WithKmsKeyId(KmsKeyIdT &&value)
ImportComponentRequest & WithSemanticVersion(SemanticVersionT &&value)
ImportComponentRequest & WithData(DataT &&value)
ImportComponentRequest & WithUri(UriT &&value)
ImportComponentRequest & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API ImportComponentRequest()=default
ImportComponentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportComponentRequest & WithClientToken(ClientTokenT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ImportComponentRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
ImportComponentRequest & WithChangeDescription(ChangeDescriptionT &&value)
ImportComponentRequest & WithDescription(DescriptionT &&value)
ImportComponentRequest & WithFormat(ComponentFormat value)
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