AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportImageResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/SnapshotDetail.h>
12#include <aws/ec2/model/ImportImageLicenseConfigurationResponse.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
33 {
34 public:
35 AWS_EC2_API ImportImageResponse();
38
39
41
44 inline const Aws::String& GetArchitecture() const{ return m_architecture; }
45 inline void SetArchitecture(const Aws::String& value) { m_architecture = value; }
46 inline void SetArchitecture(Aws::String&& value) { m_architecture = std::move(value); }
47 inline void SetArchitecture(const char* value) { m_architecture.assign(value); }
48 inline ImportImageResponse& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
49 inline ImportImageResponse& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
50 inline ImportImageResponse& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline void SetDescription(const Aws::String& value) { m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_description.assign(value); }
61 inline ImportImageResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline ImportImageResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline ImportImageResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline bool GetEncrypted() const{ return m_encrypted; }
71 inline void SetEncrypted(bool value) { m_encrypted = value; }
72 inline ImportImageResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
74
76
79 inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
80 inline void SetHypervisor(const Aws::String& value) { m_hypervisor = value; }
81 inline void SetHypervisor(Aws::String&& value) { m_hypervisor = std::move(value); }
82 inline void SetHypervisor(const char* value) { m_hypervisor.assign(value); }
83 inline ImportImageResponse& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
84 inline ImportImageResponse& WithHypervisor(Aws::String&& value) { SetHypervisor(std::move(value)); return *this;}
85 inline ImportImageResponse& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
87
89
92 inline const Aws::String& GetImageId() const{ return m_imageId; }
93 inline void SetImageId(const Aws::String& value) { m_imageId = value; }
94 inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
95 inline void SetImageId(const char* value) { m_imageId.assign(value); }
96 inline ImportImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
97 inline ImportImageResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
98 inline ImportImageResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
100
102
105 inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
106 inline void SetImportTaskId(const Aws::String& value) { m_importTaskId = value; }
107 inline void SetImportTaskId(Aws::String&& value) { m_importTaskId = std::move(value); }
108 inline void SetImportTaskId(const char* value) { m_importTaskId.assign(value); }
109 inline ImportImageResponse& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
110 inline ImportImageResponse& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;}
111 inline ImportImageResponse& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
113
115
119 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
120 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
121 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
122 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
123 inline ImportImageResponse& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
124 inline ImportImageResponse& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
125 inline ImportImageResponse& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
127
129
132 inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
133 inline void SetLicenseType(const Aws::String& value) { m_licenseType = value; }
134 inline void SetLicenseType(Aws::String&& value) { m_licenseType = std::move(value); }
135 inline void SetLicenseType(const char* value) { m_licenseType.assign(value); }
136 inline ImportImageResponse& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
137 inline ImportImageResponse& WithLicenseType(Aws::String&& value) { SetLicenseType(std::move(value)); return *this;}
138 inline ImportImageResponse& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
140
142
145 inline const Aws::String& GetPlatform() const{ return m_platform; }
146 inline void SetPlatform(const Aws::String& value) { m_platform = value; }
147 inline void SetPlatform(Aws::String&& value) { m_platform = std::move(value); }
148 inline void SetPlatform(const char* value) { m_platform.assign(value); }
149 inline ImportImageResponse& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
150 inline ImportImageResponse& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
151 inline ImportImageResponse& WithPlatform(const char* value) { SetPlatform(value); return *this;}
153
155
158 inline const Aws::String& GetProgress() const{ return m_progress; }
159 inline void SetProgress(const Aws::String& value) { m_progress = value; }
160 inline void SetProgress(Aws::String&& value) { m_progress = std::move(value); }
161 inline void SetProgress(const char* value) { m_progress.assign(value); }
162 inline ImportImageResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
163 inline ImportImageResponse& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
164 inline ImportImageResponse& WithProgress(const char* value) { SetProgress(value); return *this;}
166
168
171 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const{ return m_snapshotDetails; }
172 inline void SetSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { m_snapshotDetails = value; }
173 inline void SetSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { m_snapshotDetails = std::move(value); }
176 inline ImportImageResponse& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetails.push_back(value); return *this; }
177 inline ImportImageResponse& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetails.push_back(std::move(value)); return *this; }
179
181
184 inline const Aws::String& GetStatus() const{ return m_status; }
185 inline void SetStatus(const Aws::String& value) { m_status = value; }
186 inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
187 inline void SetStatus(const char* value) { m_status.assign(value); }
188 inline ImportImageResponse& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
189 inline ImportImageResponse& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
190 inline ImportImageResponse& WithStatus(const char* value) { SetStatus(value); return *this;}
192
194
197 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
198 inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
199 inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
200 inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
201 inline ImportImageResponse& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
202 inline ImportImageResponse& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
203 inline ImportImageResponse& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
205
207
210 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const{ return m_licenseSpecifications; }
211 inline void SetLicenseSpecifications(const Aws::Vector<ImportImageLicenseConfigurationResponse>& value) { m_licenseSpecifications = value; }
212 inline void SetLicenseSpecifications(Aws::Vector<ImportImageLicenseConfigurationResponse>&& value) { m_licenseSpecifications = std::move(value); }
215 inline ImportImageResponse& AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse& value) { m_licenseSpecifications.push_back(value); return *this; }
216 inline ImportImageResponse& AddLicenseSpecifications(ImportImageLicenseConfigurationResponse&& value) { m_licenseSpecifications.push_back(std::move(value)); return *this; }
218
220
223 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
224 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
225 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
226 inline ImportImageResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
227 inline ImportImageResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
228 inline ImportImageResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
229 inline ImportImageResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
231
233
236 inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; }
237 inline void SetUsageOperation(const Aws::String& value) { m_usageOperation = value; }
238 inline void SetUsageOperation(Aws::String&& value) { m_usageOperation = std::move(value); }
239 inline void SetUsageOperation(const char* value) { m_usageOperation.assign(value); }
240 inline ImportImageResponse& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;}
241 inline ImportImageResponse& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;}
242 inline ImportImageResponse& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;}
244
246
247 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
248 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
249 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
251 inline ImportImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
253 private:
254
255 Aws::String m_architecture;
256
257 Aws::String m_description;
258
259 bool m_encrypted;
260
261 Aws::String m_hypervisor;
262
263 Aws::String m_imageId;
264
265 Aws::String m_importTaskId;
266
267 Aws::String m_kmsKeyId;
268
269 Aws::String m_licenseType;
270
271 Aws::String m_platform;
272
273 Aws::String m_progress;
274
275 Aws::Vector<SnapshotDetail> m_snapshotDetails;
276
277 Aws::String m_status;
278
279 Aws::String m_statusMessage;
280
282
283 Aws::Vector<Tag> m_tags;
284
285 Aws::String m_usageOperation;
286
287 ResponseMetadata m_responseMetadata;
288 };
289
290} // namespace Model
291} // namespace EC2
292} // namespace Aws
void SetLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationResponse > &value)
void SetUsageOperation(Aws::String &&value)
ImportImageResponse & WithImportTaskId(Aws::String &&value)
ImportImageResponse & AddLicenseSpecifications(ImportImageLicenseConfigurationResponse &&value)
ImportImageResponse & AddTags(Tag &&value)
ImportImageResponse & WithLicenseSpecifications(const Aws::Vector< ImportImageLicenseConfigurationResponse > &value)
ImportImageResponse & WithStatusMessage(const char *value)
void SetArchitecture(Aws::String &&value)
const Aws::String & GetStatus() const
ImportImageResponse & WithImportTaskId(const Aws::String &value)
AWS_EC2_API ImportImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ImportImageResponse & WithKmsKeyId(Aws::String &&value)
ImportImageResponse & WithResponseMetadata(ResponseMetadata &&value)
ImportImageResponse & WithProgress(const Aws::String &value)
void SetArchitecture(const Aws::String &value)
ImportImageResponse & WithStatus(const char *value)
void SetProgress(const Aws::String &value)
ImportImageResponse & WithTags(Aws::Vector< Tag > &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetStatusMessage() const
const Aws::String & GetImportTaskId() const
void SetImportTaskId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetHypervisor(const Aws::String &value)
void SetStatus(const Aws::String &value)
ImportImageResponse & WithTags(const Aws::Vector< Tag > &value)
ImportImageResponse & WithDescription(const char *value)
ImportImageResponse & AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse &value)
void SetImageId(const Aws::String &value)
ImportImageResponse & WithPlatform(Aws::String &&value)
ImportImageResponse & WithKmsKeyId(const Aws::String &value)
ImportImageResponse & WithImportTaskId(const char *value)
ImportImageResponse & WithEncrypted(bool value)
ImportImageResponse & WithDescription(const Aws::String &value)
ImportImageResponse & WithDescription(Aws::String &&value)
void SetStatusMessage(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
ImportImageResponse & WithStatusMessage(const Aws::String &value)
ImportImageResponse & WithStatus(const Aws::String &value)
ImportImageResponse & WithLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationResponse > &&value)
void SetHypervisor(Aws::String &&value)
const Aws::String & GetKmsKeyId() const
ImportImageResponse & WithLicenseType(const char *value)
const Aws::String & GetArchitecture() const
void SetLicenseType(const Aws::String &value)
ImportImageResponse & AddSnapshotDetails(SnapshotDetail &&value)
ImportImageResponse & WithLicenseType(Aws::String &&value)
ImportImageResponse & WithStatus(Aws::String &&value)
void SetSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
void SetPlatform(const Aws::String &value)
ImportImageResponse & WithArchitecture(const char *value)
ImportImageResponse & WithArchitecture(const Aws::String &value)
ImportImageResponse & WithImageId(const char *value)
const Aws::String & GetHypervisor() const
void SetImportTaskId(const Aws::String &value)
const Aws::String & GetImageId() const
AWS_EC2_API ImportImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ImportImageResponse & WithSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
void SetDescription(const Aws::String &value)
ImportImageResponse & WithResponseMetadata(const ResponseMetadata &value)
ImportImageResponse & WithHypervisor(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
ImportImageResponse & WithStatusMessage(Aws::String &&value)
ImportImageResponse & WithSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
ImportImageResponse & WithPlatform(const Aws::String &value)
ImportImageResponse & WithImageId(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
const Aws::String & GetProgress() const
ImportImageResponse & WithPlatform(const char *value)
ImportImageResponse & WithKmsKeyId(const char *value)
ImportImageResponse & WithProgress(const char *value)
void SetResponseMetadata(ResponseMetadata &&value)
ImportImageResponse & WithLicenseType(const Aws::String &value)
ImportImageResponse & WithHypervisor(const char *value)
const Aws::String & GetUsageOperation() const
const Aws::String & GetPlatform() const
ImportImageResponse & WithUsageOperation(const Aws::String &value)
void SetSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
const Aws::String & GetLicenseType() const
ImportImageResponse & WithImageId(Aws::String &&value)
ImportImageResponse & WithUsageOperation(const char *value)
ImportImageResponse & AddSnapshotDetails(const SnapshotDetail &value)
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
ImportImageResponse & WithHypervisor(Aws::String &&value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageResponse & WithArchitecture(Aws::String &&value)
ImportImageResponse & WithUsageOperation(Aws::String &&value)
void SetUsageOperation(const Aws::String &value)
ImportImageResponse & AddTags(const Tag &value)
const Aws::String & GetDescription() const
void SetStatusMessage(const Aws::String &value)
void SetLicenseSpecifications(Aws::Vector< ImportImageLicenseConfigurationResponse > &&value)
ImportImageResponse & WithProgress(Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument