AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportImageTask.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/BootModeValues.h>
12#include <aws/ec2/model/SnapshotDetail.h>
13#include <aws/ec2/model/Tag.h>
14#include <aws/ec2/model/ImportImageLicenseConfigurationResponse.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API ImportImageTask();
40 AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const Aws::String& GetArchitecture() const{ return m_architecture; }
53 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
54 inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
55 inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
56 inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
57 inline ImportImageTask& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
58 inline ImportImageTask& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
59 inline ImportImageTask& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
61
63
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline ImportImageTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline ImportImageTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline ImportImageTask& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
80 inline bool GetEncrypted() const{ return m_encrypted; }
81 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
82 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
83 inline ImportImageTask& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
85
87
91 inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
92 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
93 inline void SetHypervisor(const Aws::String& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
94 inline void SetHypervisor(Aws::String&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = std::move(value); }
95 inline void SetHypervisor(const char* value) { m_hypervisorHasBeenSet = true; m_hypervisor.assign(value); }
96 inline ImportImageTask& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
97 inline ImportImageTask& WithHypervisor(Aws::String&& value) { SetHypervisor(std::move(value)); return *this;}
98 inline ImportImageTask& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
100
102
105 inline const Aws::String& GetImageId() const{ return m_imageId; }
106 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
107 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
108 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
109 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
110 inline ImportImageTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
111 inline ImportImageTask& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
112 inline ImportImageTask& WithImageId(const char* value) { SetImageId(value); return *this;}
114
116
119 inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
120 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
121 inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
122 inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); }
123 inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); }
124 inline ImportImageTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
125 inline ImportImageTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;}
126 inline ImportImageTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
128
130
134 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
135 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
136 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
137 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
138 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
139 inline ImportImageTask& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
140 inline ImportImageTask& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
141 inline ImportImageTask& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
143
145
148 inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
149 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
150 inline void SetLicenseType(const Aws::String& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
151 inline void SetLicenseType(Aws::String&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
152 inline void SetLicenseType(const char* value) { m_licenseTypeHasBeenSet = true; m_licenseType.assign(value); }
153 inline ImportImageTask& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
154 inline ImportImageTask& WithLicenseType(Aws::String&& value) { SetLicenseType(std::move(value)); return *this;}
155 inline ImportImageTask& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
157
159
162 inline const Aws::String& GetPlatform() const{ return m_platform; }
163 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
164 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
165 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
166 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
167 inline ImportImageTask& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
168 inline ImportImageTask& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
169 inline ImportImageTask& WithPlatform(const char* value) { SetPlatform(value); return *this;}
171
173
176 inline const Aws::String& GetProgress() const{ return m_progress; }
177 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
178 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
179 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
180 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
181 inline ImportImageTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
182 inline ImportImageTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
183 inline ImportImageTask& WithProgress(const char* value) { SetProgress(value); return *this;}
185
187
190 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const{ return m_snapshotDetails; }
191 inline bool SnapshotDetailsHasBeenSet() const { return m_snapshotDetailsHasBeenSet; }
192 inline void SetSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails = value; }
193 inline void SetSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails = std::move(value); }
195 inline ImportImageTask& WithSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { SetSnapshotDetails(std::move(value)); return *this;}
196 inline ImportImageTask& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(value); return *this; }
197 inline ImportImageTask& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(std::move(value)); return *this; }
199
201
204 inline const Aws::String& GetStatus() const{ return m_status; }
205 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
207 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
208 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
209 inline ImportImageTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
210 inline ImportImageTask& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
211 inline ImportImageTask& WithStatus(const char* value) { SetStatus(value); return *this;}
213
215
218 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
219 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
220 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
221 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
222 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
223 inline ImportImageTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
224 inline ImportImageTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
225 inline ImportImageTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
227
229
232 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
235 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
236 inline ImportImageTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
237 inline ImportImageTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
238 inline ImportImageTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
239 inline ImportImageTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
241
243
247 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const{ return m_licenseSpecifications; }
248 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
249 inline void SetLicenseSpecifications(const Aws::Vector<ImportImageLicenseConfigurationResponse>& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = value; }
250 inline void SetLicenseSpecifications(Aws::Vector<ImportImageLicenseConfigurationResponse>&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::move(value); }
253 inline ImportImageTask& AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; }
254 inline ImportImageTask& AddLicenseSpecifications(ImportImageLicenseConfigurationResponse&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; }
256
258
261 inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; }
262 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
263 inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; }
264 inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); }
265 inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); }
266 inline ImportImageTask& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;}
267 inline ImportImageTask& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;}
268 inline ImportImageTask& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;}
270
272
275 inline const BootModeValues& GetBootMode() const{ return m_bootMode; }
276 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
277 inline void SetBootMode(const BootModeValues& value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
278 inline void SetBootMode(BootModeValues&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); }
279 inline ImportImageTask& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;}
280 inline ImportImageTask& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;}
282 private:
283
284 Aws::String m_architecture;
285 bool m_architectureHasBeenSet = false;
286
287 Aws::String m_description;
288 bool m_descriptionHasBeenSet = false;
289
290 bool m_encrypted;
291 bool m_encryptedHasBeenSet = false;
292
293 Aws::String m_hypervisor;
294 bool m_hypervisorHasBeenSet = false;
295
296 Aws::String m_imageId;
297 bool m_imageIdHasBeenSet = false;
298
299 Aws::String m_importTaskId;
300 bool m_importTaskIdHasBeenSet = false;
301
302 Aws::String m_kmsKeyId;
303 bool m_kmsKeyIdHasBeenSet = false;
304
305 Aws::String m_licenseType;
306 bool m_licenseTypeHasBeenSet = false;
307
308 Aws::String m_platform;
309 bool m_platformHasBeenSet = false;
310
311 Aws::String m_progress;
312 bool m_progressHasBeenSet = false;
313
314 Aws::Vector<SnapshotDetail> m_snapshotDetails;
315 bool m_snapshotDetailsHasBeenSet = false;
316
317 Aws::String m_status;
318 bool m_statusHasBeenSet = false;
319
320 Aws::String m_statusMessage;
321 bool m_statusMessageHasBeenSet = false;
322
323 Aws::Vector<Tag> m_tags;
324 bool m_tagsHasBeenSet = false;
325
327 bool m_licenseSpecificationsHasBeenSet = false;
328
329 Aws::String m_usageOperation;
330 bool m_usageOperationHasBeenSet = false;
331
332 BootModeValues m_bootMode;
333 bool m_bootModeHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace EC2
338} // namespace Aws
void SetUsageOperation(Aws::String &&value)
ImportImageTask & WithDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
ImportImageTask & WithStatus(Aws::String &&value)
void SetKmsKeyId(Aws::String &&value)
ImportImageTask & WithImageId(const char *value)
ImportImageTask & WithSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
void SetHypervisor(Aws::String &&value)
ImportImageTask & WithStatusMessage(Aws::String &&value)
ImportImageTask & WithKmsKeyId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportImageTask & AddTags(const Tag &value)
ImportImageTask & AddSnapshotDetails(SnapshotDetail &&value)
ImportImageTask & WithProgress(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetImportTaskId(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetStatus(const Aws::String &value)
void SetHypervisor(const char *value)
void SetArchitecture(const char *value)
void SetBootMode(BootModeValues &&value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageTask & WithProgress(Aws::String &&value)
const BootModeValues & GetBootMode() const
ImportImageTask & WithLicenseType(const char *value)
void SetArchitecture(Aws::String &&value)
void SetLicenseType(Aws::String &&value)
void SetImageId(Aws::String &&value)
const Aws::String & GetHypervisor() const
void SetLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationResponse > &value)
ImportImageTask & WithKmsKeyId(const char *value)
const Aws::String & GetImageId() const
ImportImageTask & WithUsageOperation(const Aws::String &value)
void SetLicenseType(const char *value)
ImportImageTask & WithArchitecture(const char *value)
ImportImageTask & WithImportTaskId(const char *value)
ImportImageTask & WithLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationResponse > &value)
const Aws::String & GetProgress() const
void SetStatusMessage(const Aws::String &value)
void SetImageId(const Aws::String &value)
void SetUsageOperation(const Aws::String &value)
ImportImageTask & WithPlatform(const Aws::String &value)
AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetBootMode(const BootModeValues &value)
void SetSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
ImportImageTask & WithArchitecture(const Aws::String &value)
void SetKmsKeyId(const char *value)
ImportImageTask & WithUsageOperation(const char *value)
const Aws::String & GetStatusMessage() const
ImportImageTask & AddSnapshotDetails(const SnapshotDetail &value)
ImportImageTask & WithBootMode(const BootModeValues &value)
void SetLicenseType(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
ImportImageTask & WithLicenseType(Aws::String &&value)
ImportImageTask & WithImageId(const Aws::String &value)
const Aws::String & GetStatus() const
ImportImageTask & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetLicenseType() const
ImportImageTask & WithHypervisor(const Aws::String &value)
const Aws::String & GetImportTaskId() const
void SetHypervisor(const Aws::String &value)
void SetLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationResponse > &&value)
void SetProgress(const Aws::String &value)
AWS_EC2_API ImportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPlatform() const
ImportImageTask & WithEncrypted(bool value)
ImportImageTask & WithKmsKeyId(const Aws::String &value)
void SetProgress(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
void SetStatus(const char *value)
ImportImageTask & WithPlatform(const char *value)
ImportImageTask & WithStatus(const Aws::String &value)
ImportImageTask & WithImportTaskId(const Aws::String &value)
ImportImageTask & AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse &value)
void SetImportTaskId(const char *value)
ImportImageTask & WithDescription(const char *value)
ImportImageTask & AddLicenseSpecifications(ImportImageLicenseConfigurationResponse &&value)
ImportImageTask & WithPlatform(Aws::String &&value)
ImportImageTask & WithImportTaskId(Aws::String &&value)
void SetPlatform(Aws::String &&value)
ImportImageTask & WithHypervisor(Aws::String &&value)
ImportImageTask & WithSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
void SetDescription(const char *value)
void SetUsageOperation(const char *value)
ImportImageTask & WithStatus(const char *value)
ImportImageTask & WithLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationResponse > &&value)
ImportImageTask & WithLicenseType(const Aws::String &value)
const Aws::String & GetDescription() const
const Aws::String & GetArchitecture() const
ImportImageTask & WithArchitecture(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPlatform(const Aws::String &value)
void SetStatusMessage(const char *value)
ImportImageTask & WithHypervisor(const char *value)
void SetImportTaskId(Aws::String &&value)
ImportImageTask & WithProgress(const Aws::String &value)
const Aws::String & GetUsageOperation() const
ImportImageTask & WithStatusMessage(const char *value)
void SetProgress(Aws::String &&value)
ImportImageTask & WithStatusMessage(const Aws::String &value)
const Aws::String & GetKmsKeyId() const
ImportImageTask & WithBootMode(BootModeValues &&value)
void SetArchitecture(const Aws::String &value)
void SetPlatform(const char *value)
void SetImageId(const char *value)
ImportImageTask & WithTags(Aws::Vector< Tag > &&value)
void SetDescription(const Aws::String &value)
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
ImportImageTask & AddTags(Tag &&value)
ImportImageTask & WithImageId(Aws::String &&value)
void SetSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
ImportImageTask & WithDescription(Aws::String &&value)
ImportImageTask & WithUsageOperation(Aws::String &&value)
void SetStatusMessage(Aws::String &&value)
void SetStatus(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream