AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ArchitectureT = Aws::String>
55 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
56 template<typename ArchitectureT = Aws::String>
57 ImportImageTask& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 ImportImageTask& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline bool GetEncrypted() const { return m_encrypted; }
77 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
78 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
79 inline ImportImageTask& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
81
83
87 inline const Aws::String& GetHypervisor() const { return m_hypervisor; }
88 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
89 template<typename HypervisorT = Aws::String>
90 void SetHypervisor(HypervisorT&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = std::forward<HypervisorT>(value); }
91 template<typename HypervisorT = Aws::String>
92 ImportImageTask& WithHypervisor(HypervisorT&& value) { SetHypervisor(std::forward<HypervisorT>(value)); return *this;}
94
96
99 inline const Aws::String& GetImageId() const { return m_imageId; }
100 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
101 template<typename ImageIdT = Aws::String>
102 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
103 template<typename ImageIdT = Aws::String>
104 ImportImageTask& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
106
108
111 inline const Aws::String& GetImportTaskId() const { return m_importTaskId; }
112 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
113 template<typename ImportTaskIdT = Aws::String>
114 void SetImportTaskId(ImportTaskIdT&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::forward<ImportTaskIdT>(value); }
115 template<typename ImportTaskIdT = Aws::String>
116 ImportImageTask& WithImportTaskId(ImportTaskIdT&& value) { SetImportTaskId(std::forward<ImportTaskIdT>(value)); return *this;}
118
120
124 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
125 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
126 template<typename KmsKeyIdT = Aws::String>
127 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
128 template<typename KmsKeyIdT = Aws::String>
129 ImportImageTask& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
131
133
136 inline const Aws::String& GetLicenseType() const { return m_licenseType; }
137 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
138 template<typename LicenseTypeT = Aws::String>
139 void SetLicenseType(LicenseTypeT&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::forward<LicenseTypeT>(value); }
140 template<typename LicenseTypeT = Aws::String>
141 ImportImageTask& WithLicenseType(LicenseTypeT&& value) { SetLicenseType(std::forward<LicenseTypeT>(value)); return *this;}
143
145
148 inline const Aws::String& GetPlatform() const { return m_platform; }
149 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
150 template<typename PlatformT = Aws::String>
151 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
152 template<typename PlatformT = Aws::String>
153 ImportImageTask& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
155
157
160 inline const Aws::String& GetProgress() const { return m_progress; }
161 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
162 template<typename ProgressT = Aws::String>
163 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
164 template<typename ProgressT = Aws::String>
165 ImportImageTask& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
167
169
172 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const { return m_snapshotDetails; }
173 inline bool SnapshotDetailsHasBeenSet() const { return m_snapshotDetailsHasBeenSet; }
174 template<typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
175 void SetSnapshotDetails(SnapshotDetailsT&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails = std::forward<SnapshotDetailsT>(value); }
176 template<typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
177 ImportImageTask& WithSnapshotDetails(SnapshotDetailsT&& value) { SetSnapshotDetails(std::forward<SnapshotDetailsT>(value)); return *this;}
178 template<typename SnapshotDetailsT = SnapshotDetail>
179 ImportImageTask& AddSnapshotDetails(SnapshotDetailsT&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.emplace_back(std::forward<SnapshotDetailsT>(value)); return *this; }
181
183
186 inline const Aws::String& GetStatus() const { return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 template<typename StatusT = Aws::String>
189 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
190 template<typename StatusT = Aws::String>
191 ImportImageTask& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
193
195
198 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
199 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
200 template<typename StatusMessageT = Aws::String>
201 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
202 template<typename StatusMessageT = Aws::String>
203 ImportImageTask& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
205
207
210 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 template<typename TagsT = Aws::Vector<Tag>>
213 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
214 template<typename TagsT = Aws::Vector<Tag>>
215 ImportImageTask& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
216 template<typename TagsT = Tag>
217 ImportImageTask& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
219
221
225 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
226 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
227 template<typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
228 void SetLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value); }
229 template<typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
230 ImportImageTask& WithLicenseSpecifications(LicenseSpecificationsT&& value) { SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value)); return *this;}
231 template<typename LicenseSpecificationsT = ImportImageLicenseConfigurationResponse>
232 ImportImageTask& AddLicenseSpecifications(LicenseSpecificationsT&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value)); return *this; }
234
236
239 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
240 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
241 template<typename UsageOperationT = Aws::String>
242 void SetUsageOperation(UsageOperationT&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::forward<UsageOperationT>(value); }
243 template<typename UsageOperationT = Aws::String>
244 ImportImageTask& WithUsageOperation(UsageOperationT&& value) { SetUsageOperation(std::forward<UsageOperationT>(value)); return *this;}
246
248
251 inline BootModeValues GetBootMode() const { return m_bootMode; }
252 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
253 inline void SetBootMode(BootModeValues value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
254 inline ImportImageTask& WithBootMode(BootModeValues value) { SetBootMode(value); return *this;}
256 private:
257
258 Aws::String m_architecture;
259 bool m_architectureHasBeenSet = false;
260
261 Aws::String m_description;
262 bool m_descriptionHasBeenSet = false;
263
264 bool m_encrypted{false};
265 bool m_encryptedHasBeenSet = false;
266
267 Aws::String m_hypervisor;
268 bool m_hypervisorHasBeenSet = false;
269
270 Aws::String m_imageId;
271 bool m_imageIdHasBeenSet = false;
272
273 Aws::String m_importTaskId;
274 bool m_importTaskIdHasBeenSet = false;
275
276 Aws::String m_kmsKeyId;
277 bool m_kmsKeyIdHasBeenSet = false;
278
279 Aws::String m_licenseType;
280 bool m_licenseTypeHasBeenSet = false;
281
282 Aws::String m_platform;
283 bool m_platformHasBeenSet = false;
284
285 Aws::String m_progress;
286 bool m_progressHasBeenSet = false;
287
288 Aws::Vector<SnapshotDetail> m_snapshotDetails;
289 bool m_snapshotDetailsHasBeenSet = false;
290
291 Aws::String m_status;
292 bool m_statusHasBeenSet = false;
293
294 Aws::String m_statusMessage;
295 bool m_statusMessageHasBeenSet = false;
296
297 Aws::Vector<Tag> m_tags;
298 bool m_tagsHasBeenSet = false;
299
301 bool m_licenseSpecificationsHasBeenSet = false;
302
303 Aws::String m_usageOperation;
304 bool m_usageOperationHasBeenSet = false;
305
307 bool m_bootModeHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace EC2
312} // namespace Aws
void SetLicenseType(LicenseTypeT &&value)
void SetProgress(ProgressT &&value)
const Aws::Vector< Tag > & GetTags() const
ImportImageTask & WithImportTaskId(ImportTaskIdT &&value)
ImportImageTask & WithBootMode(BootModeValues value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportImageTask & WithKmsKeyId(KmsKeyIdT &&value)
ImportImageTask & WithDescription(DescriptionT &&value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageTask & WithStatus(StatusT &&value)
const Aws::String & GetHypervisor() const
ImportImageTask & WithLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageTask & WithProgress(ProgressT &&value)
const Aws::String & GetImageId() const
void SetImageId(ImageIdT &&value)
AWS_EC2_API ImportImageTask()=default
ImportImageTask & WithArchitecture(ArchitectureT &&value)
ImportImageTask & AddLicenseSpecifications(LicenseSpecificationsT &&value)
BootModeValues GetBootMode() const
const Aws::String & GetProgress() const
ImportImageTask & AddTags(TagsT &&value)
AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHypervisor(HypervisorT &&value)
void SetImportTaskId(ImportTaskIdT &&value)
const Aws::String & GetStatusMessage() const
void SetPlatform(PlatformT &&value)
ImportImageTask & AddSnapshotDetails(SnapshotDetailsT &&value)
const Aws::String & GetStatus() const
ImportImageTask & WithSnapshotDetails(SnapshotDetailsT &&value)
const Aws::String & GetLicenseType() const
void SetUsageOperation(UsageOperationT &&value)
const Aws::String & GetImportTaskId() const
void SetBootMode(BootModeValues value)
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
AWS_EC2_API ImportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPlatform() const
ImportImageTask & WithEncrypted(bool value)
ImportImageTask & WithImageId(ImageIdT &&value)
void SetSnapshotDetails(SnapshotDetailsT &&value)
ImportImageTask & WithPlatform(PlatformT &&value)
void SetArchitecture(ArchitectureT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetDescription() const
ImportImageTask & WithUsageOperation(UsageOperationT &&value)
const Aws::String & GetArchitecture() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportImageTask & WithTags(TagsT &&value)
ImportImageTask & WithHypervisor(HypervisorT &&value)
void SetStatusMessage(StatusMessageT &&value)
const Aws::String & GetUsageOperation() const
ImportImageTask & WithLicenseType(LicenseTypeT &&value)
const Aws::String & GetKmsKeyId() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
ImportImageTask & WithStatusMessage(StatusMessageT &&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