AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportComponentRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/model/ComponentType.h>
11#include <aws/imagebuilder/model/ComponentFormat.h>
12#include <aws/imagebuilder/model/Platform.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace imagebuilder
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IMAGEBUILDER_API ImportComponentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ImportComponent"; }
36
37 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline ImportComponentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline ImportComponentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline ImportComponentRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
65 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
66 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
67 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
68 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
69 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
70 inline ImportComponentRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
71 inline ImportComponentRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
72 inline ImportComponentRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
74
76
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline ImportComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline ImportComponentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline ImportComponentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
96 inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; }
97 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
98 inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; }
99 inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); }
100 inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); }
102 inline ImportComponentRequest& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;}
103 inline ImportComponentRequest& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;}
105
107
111 inline const ComponentType& GetType() const{ return m_type; }
112 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
113 inline void SetType(const ComponentType& value) { m_typeHasBeenSet = true; m_type = value; }
114 inline void SetType(ComponentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
115 inline ImportComponentRequest& WithType(const ComponentType& value) { SetType(value); return *this;}
116 inline ImportComponentRequest& WithType(ComponentType&& value) { SetType(std::move(value)); return *this;}
118
120
123 inline const ComponentFormat& GetFormat() const{ return m_format; }
124 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
125 inline void SetFormat(const ComponentFormat& value) { m_formatHasBeenSet = true; m_format = value; }
126 inline void SetFormat(ComponentFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
127 inline ImportComponentRequest& WithFormat(const ComponentFormat& value) { SetFormat(value); return *this;}
128 inline ImportComponentRequest& WithFormat(ComponentFormat&& value) { SetFormat(std::move(value)); return *this;}
130
132
135 inline const Platform& GetPlatform() const{ return m_platform; }
136 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
137 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
138 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
139 inline ImportComponentRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
140 inline ImportComponentRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
142
144
149 inline const Aws::String& GetData() const{ return m_data; }
150 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
151 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
152 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
153 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
154 inline ImportComponentRequest& WithData(const Aws::String& value) { SetData(value); return *this;}
155 inline ImportComponentRequest& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
156 inline ImportComponentRequest& WithData(const char* value) { SetData(value); return *this;}
158
160
166 inline const Aws::String& GetUri() const{ return m_uri; }
167 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
168 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
169 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
170 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
171 inline ImportComponentRequest& WithUri(const Aws::String& value) { SetUri(value); return *this;}
172 inline ImportComponentRequest& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
173 inline ImportComponentRequest& WithUri(const char* value) { SetUri(value); return *this;}
175
177
180 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
181 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
182 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
183 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
184 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
185 inline ImportComponentRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
186 inline ImportComponentRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
187 inline ImportComponentRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
189
191
194 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
198 inline ImportComponentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
199 inline ImportComponentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
200 inline ImportComponentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
201 inline ImportComponentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline ImportComponentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
203 inline ImportComponentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 inline ImportComponentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 inline ImportComponentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
206 inline ImportComponentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
208
210
216 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
217 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
218 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
219 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
220 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
221 inline ImportComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
222 inline ImportComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
223 inline ImportComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
225 private:
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_semanticVersion;
231 bool m_semanticVersionHasBeenSet = false;
232
233 Aws::String m_description;
234 bool m_descriptionHasBeenSet = false;
235
236 Aws::String m_changeDescription;
237 bool m_changeDescriptionHasBeenSet = false;
238
239 ComponentType m_type;
240 bool m_typeHasBeenSet = false;
241
242 ComponentFormat m_format;
243 bool m_formatHasBeenSet = false;
244
245 Platform m_platform;
246 bool m_platformHasBeenSet = false;
247
248 Aws::String m_data;
249 bool m_dataHasBeenSet = false;
250
251 Aws::String m_uri;
252 bool m_uriHasBeenSet = false;
253
254 Aws::String m_kmsKeyId;
255 bool m_kmsKeyIdHasBeenSet = false;
256
258 bool m_tagsHasBeenSet = false;
259
260 Aws::String m_clientToken;
261 bool m_clientTokenHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace imagebuilder
266} // namespace Aws
ImportComponentRequest & WithType(ComponentType &&value)
ImportComponentRequest & WithData(const Aws::String &value)
ImportComponentRequest & AddTags(const Aws::String &key, Aws::String &&value)
ImportComponentRequest & WithUri(const char *value)
ImportComponentRequest & WithFormat(const ComponentFormat &value)
ImportComponentRequest & WithSemanticVersion(const char *value)
ImportComponentRequest & WithName(Aws::String &&value)
ImportComponentRequest & WithClientToken(Aws::String &&value)
ImportComponentRequest & AddTags(const char *key, Aws::String &&value)
ImportComponentRequest & WithName(const Aws::String &value)
ImportComponentRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportComponentRequest & WithName(const char *value)
ImportComponentRequest & WithKmsKeyId(Aws::String &&value)
ImportComponentRequest & WithSemanticVersion(Aws::String &&value)
ImportComponentRequest & WithChangeDescription(const Aws::String &value)
ImportComponentRequest & WithDescription(const char *value)
ImportComponentRequest & WithClientToken(const Aws::String &value)
ImportComponentRequest & WithPlatform(const Platform &value)
ImportComponentRequest & WithChangeDescription(const char *value)
ImportComponentRequest & AddTags(const char *key, const char *value)
ImportComponentRequest & WithType(const ComponentType &value)
ImportComponentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportComponentRequest & WithUri(const Aws::String &value)
ImportComponentRequest & AddTags(Aws::String &&key, Aws::String &&value)
ImportComponentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportComponentRequest & WithPlatform(Platform &&value)
ImportComponentRequest & AddTags(const Aws::String &key, const Aws::String &value)
ImportComponentRequest & AddTags(Aws::String &&key, const char *value)
ImportComponentRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportComponentRequest & WithData(Aws::String &&value)
ImportComponentRequest & WithFormat(ComponentFormat &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportComponentRequest & WithChangeDescription(Aws::String &&value)
ImportComponentRequest & WithKmsKeyId(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ImportComponentRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
ImportComponentRequest & WithKmsKeyId(const char *value)
ImportComponentRequest & WithDescription(Aws::String &&value)
ImportComponentRequest & WithData(const char *value)
ImportComponentRequest & WithUri(Aws::String &&value)
ImportComponentRequest & WithSemanticVersion(const Aws::String &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