AWS SDK for C++

AWS SDK for C++ Version 1.11.901

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
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
74 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
75 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
76 template <typename SemanticVersionT = Aws::String>
77 void SetSemanticVersion(SemanticVersionT&& value) {
78 m_semanticVersionHasBeenSet = true;
79 m_semanticVersion = std::forward<SemanticVersionT>(value);
80 }
81 template <typename SemanticVersionT = Aws::String>
82 ImportComponentRequest& WithSemanticVersion(SemanticVersionT&& value) {
83 SetSemanticVersion(std::forward<SemanticVersionT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
114 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
115 template <typename ChangeDescriptionT = Aws::String>
116 void SetChangeDescription(ChangeDescriptionT&& value) {
117 m_changeDescriptionHasBeenSet = true;
118 m_changeDescription = std::forward<ChangeDescriptionT>(value);
119 }
120 template <typename ChangeDescriptionT = Aws::String>
121 ImportComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) {
122 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
123 return *this;
124 }
126
128
132 inline ComponentType GetType() const { return m_type; }
133 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 inline void SetType(ComponentType value) {
135 m_typeHasBeenSet = true;
136 m_type = value;
137 }
139 SetType(value);
140 return *this;
141 }
143
145
148 inline ComponentFormat GetFormat() const { return m_format; }
149 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
150 inline void SetFormat(ComponentFormat value) {
151 m_formatHasBeenSet = true;
152 m_format = value;
153 }
155 SetFormat(value);
156 return *this;
157 }
159
161
164 inline Platform GetPlatform() const { return m_platform; }
165 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
166 inline void SetPlatform(Platform value) {
167 m_platformHasBeenSet = true;
168 m_platform = value;
169 }
171 SetPlatform(value);
172 return *this;
173 }
175
177
183 inline const Aws::String& GetData() const { return m_data; }
184 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
185 template <typename DataT = Aws::String>
186 void SetData(DataT&& value) {
187 m_dataHasBeenSet = true;
188 m_data = std::forward<DataT>(value);
189 }
190 template <typename DataT = Aws::String>
192 SetData(std::forward<DataT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::String& GetUri() const { return m_uri; }
205 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
206 template <typename UriT = Aws::String>
207 void SetUri(UriT&& value) {
208 m_uriHasBeenSet = true;
209 m_uri = std::forward<UriT>(value);
210 }
211 template <typename UriT = Aws::String>
213 SetUri(std::forward<UriT>(value));
214 return *this;
215 }
217
219
228 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
229 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
230 template <typename KmsKeyIdT = Aws::String>
231 void SetKmsKeyId(KmsKeyIdT&& value) {
232 m_kmsKeyIdHasBeenSet = true;
233 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
234 }
235 template <typename KmsKeyIdT = Aws::String>
237 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
247 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 void SetTags(TagsT&& value) {
250 m_tagsHasBeenSet = true;
251 m_tags = std::forward<TagsT>(value);
252 }
253 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
255 SetTags(std::forward<TagsT>(value));
256 return *this;
257 }
258 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
259 ImportComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
262 return *this;
263 }
265
267
275 inline const Aws::String& GetClientToken() const { return m_clientToken; }
276 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
277 template <typename ClientTokenT = Aws::String>
278 void SetClientToken(ClientTokenT&& value) {
279 m_clientTokenHasBeenSet = true;
280 m_clientToken = std::forward<ClientTokenT>(value);
281 }
282 template <typename ClientTokenT = Aws::String>
284 SetClientToken(std::forward<ClientTokenT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_name;
290
291 Aws::String m_semanticVersion;
292
293 Aws::String m_description;
294
295 Aws::String m_changeDescription;
296
298
300
301 Platform m_platform{Platform::NOT_SET};
302
303 Aws::String m_data;
304
305 Aws::String m_uri;
306
307 Aws::String m_kmsKeyId;
308
310
312 bool m_nameHasBeenSet = false;
313 bool m_semanticVersionHasBeenSet = false;
314 bool m_descriptionHasBeenSet = false;
315 bool m_changeDescriptionHasBeenSet = false;
316 bool m_typeHasBeenSet = false;
317 bool m_formatHasBeenSet = false;
318 bool m_platformHasBeenSet = false;
319 bool m_dataHasBeenSet = false;
320 bool m_uriHasBeenSet = false;
321 bool m_kmsKeyIdHasBeenSet = false;
322 bool m_tagsHasBeenSet = false;
323 bool m_clientTokenHasBeenSet = true;
324};
325
326} // namespace Model
327} // namespace imagebuilder
328} // 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