AWS SDK for C++  0.12.9
AWS SDK for C++
ImportImageResponse.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace EC2
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
52 
56  inline void SetImportTaskId(const Aws::String& value) { m_importTaskId = value; }
57 
61  inline void SetImportTaskId(Aws::String&& value) { m_importTaskId = value; }
62 
66  inline void SetImportTaskId(const char* value) { m_importTaskId.assign(value); }
67 
71  inline ImportImageResponse& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
72 
76  inline ImportImageResponse& WithImportTaskId(Aws::String&& value) { SetImportTaskId(value); return *this;}
77 
81  inline ImportImageResponse& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
82 
86  inline const Aws::String& GetArchitecture() const{ return m_architecture; }
87 
91  inline void SetArchitecture(const Aws::String& value) { m_architecture = value; }
92 
96  inline void SetArchitecture(Aws::String&& value) { m_architecture = value; }
97 
101  inline void SetArchitecture(const char* value) { m_architecture.assign(value); }
102 
106  inline ImportImageResponse& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
107 
111  inline ImportImageResponse& WithArchitecture(Aws::String&& value) { SetArchitecture(value); return *this;}
112 
116  inline ImportImageResponse& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
117 
121  inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
122 
126  inline void SetLicenseType(const Aws::String& value) { m_licenseType = value; }
127 
131  inline void SetLicenseType(Aws::String&& value) { m_licenseType = value; }
132 
136  inline void SetLicenseType(const char* value) { m_licenseType.assign(value); }
137 
141  inline ImportImageResponse& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
142 
146  inline ImportImageResponse& WithLicenseType(Aws::String&& value) { SetLicenseType(value); return *this;}
147 
151  inline ImportImageResponse& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
152 
156  inline const Aws::String& GetPlatform() const{ return m_platform; }
157 
161  inline void SetPlatform(const Aws::String& value) { m_platform = value; }
162 
166  inline void SetPlatform(Aws::String&& value) { m_platform = value; }
167 
171  inline void SetPlatform(const char* value) { m_platform.assign(value); }
172 
176  inline ImportImageResponse& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
177 
181  inline ImportImageResponse& WithPlatform(Aws::String&& value) { SetPlatform(value); return *this;}
182 
186  inline ImportImageResponse& WithPlatform(const char* value) { SetPlatform(value); return *this;}
187 
191  inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
192 
196  inline void SetHypervisor(const Aws::String& value) { m_hypervisor = value; }
197 
201  inline void SetHypervisor(Aws::String&& value) { m_hypervisor = value; }
202 
206  inline void SetHypervisor(const char* value) { m_hypervisor.assign(value); }
207 
211  inline ImportImageResponse& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
212 
216  inline ImportImageResponse& WithHypervisor(Aws::String&& value) { SetHypervisor(value); return *this;}
217 
221  inline ImportImageResponse& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
222 
226  inline const Aws::String& GetDescription() const{ return m_description; }
227 
231  inline void SetDescription(const Aws::String& value) { m_description = value; }
232 
236  inline void SetDescription(Aws::String&& value) { m_description = value; }
237 
241  inline void SetDescription(const char* value) { m_description.assign(value); }
242 
246  inline ImportImageResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
247 
251  inline ImportImageResponse& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
252 
256  inline ImportImageResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
257 
261  inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const{ return m_snapshotDetails; }
262 
266  inline void SetSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { m_snapshotDetails = value; }
267 
271  inline void SetSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { m_snapshotDetails = value; }
272 
276  inline ImportImageResponse& WithSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { SetSnapshotDetails(value); return *this;}
277 
281  inline ImportImageResponse& WithSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { SetSnapshotDetails(value); return *this;}
282 
286  inline ImportImageResponse& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetails.push_back(value); return *this; }
287 
291  inline ImportImageResponse& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetails.push_back(value); return *this; }
292 
296  inline const Aws::String& GetImageId() const{ return m_imageId; }
297 
301  inline void SetImageId(const Aws::String& value) { m_imageId = value; }
302 
306  inline void SetImageId(Aws::String&& value) { m_imageId = value; }
307 
311  inline void SetImageId(const char* value) { m_imageId.assign(value); }
312 
316  inline ImportImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
317 
321  inline ImportImageResponse& WithImageId(Aws::String&& value) { SetImageId(value); return *this;}
322 
326  inline ImportImageResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
327 
331  inline const Aws::String& GetProgress() const{ return m_progress; }
332 
336  inline void SetProgress(const Aws::String& value) { m_progress = value; }
337 
341  inline void SetProgress(Aws::String&& value) { m_progress = value; }
342 
346  inline void SetProgress(const char* value) { m_progress.assign(value); }
347 
351  inline ImportImageResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
352 
356  inline ImportImageResponse& WithProgress(Aws::String&& value) { SetProgress(value); return *this;}
357 
361  inline ImportImageResponse& WithProgress(const char* value) { SetProgress(value); return *this;}
362 
366  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
367 
371  inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
372 
376  inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = value; }
377 
381  inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
382 
386  inline ImportImageResponse& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
387 
391  inline ImportImageResponse& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
392 
396  inline ImportImageResponse& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
397 
401  inline const Aws::String& GetStatus() const{ return m_status; }
402 
406  inline void SetStatus(const Aws::String& value) { m_status = value; }
407 
411  inline void SetStatus(Aws::String&& value) { m_status = value; }
412 
416  inline void SetStatus(const char* value) { m_status.assign(value); }
417 
421  inline ImportImageResponse& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
422 
426  inline ImportImageResponse& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
427 
431  inline ImportImageResponse& WithStatus(const char* value) { SetStatus(value); return *this;}
432 
433 
434  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
435 
436 
437  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
438 
439 
440  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
441 
442 
443  inline ImportImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
444 
445 
446  inline ImportImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
447 
448  private:
449  Aws::String m_importTaskId;
450  Aws::String m_architecture;
451  Aws::String m_licenseType;
452  Aws::String m_platform;
453  Aws::String m_hypervisor;
454  Aws::String m_description;
455  Aws::Vector<SnapshotDetail> m_snapshotDetails;
456  Aws::String m_imageId;
457  Aws::String m_progress;
458  Aws::String m_statusMessage;
459  Aws::String m_status;
460  ResponseMetadata m_responseMetadata;
461  };
462 
463 } // namespace Model
464 } // namespace EC2
465 } // namespace Aws
ImportImageResponse & WithSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
ImportImageResponse & WithLicenseType(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetArchitecture(Aws::String &&value)
ImportImageResponse & WithImportTaskId(Aws::String &&value)
void SetResponseMetadata(ResponseMetadata &&value)
void SetHypervisor(Aws::String &&value)
const Aws::String & GetHypervisor() const
ImportImageResponse & WithHypervisor(Aws::String &&value)
ImportImageResponse & WithImportTaskId(const Aws::String &value)
ImportImageResponse & WithStatus(const Aws::String &value)
ImportImageResponse & WithArchitecture(Aws::String &&value)
ImportImageResponse & WithArchitecture(const char *value)
void SetStatus(const Aws::String &value)
ImportImageResponse & WithPlatform(const char *value)
ImportImageResponse & AddSnapshotDetails(SnapshotDetail &&value)
ImportImageResponse & WithPlatform(Aws::String &&value)
const Aws::String & GetImageId() const
ImportImageResponse & WithDescription(Aws::String &&value)
const Aws::String & GetArchitecture() const
void SetDescription(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetPlatform() const
ImportImageResponse & WithSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
ImportImageResponse & WithProgress(const char *value)
const Aws::String & GetImportTaskId() const
const Aws::String & GetStatusMessage() const
ImportImageResponse & WithArchitecture(const Aws::String &value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageResponse & WithResponseMetadata(const ResponseMetadata &value)
ImportImageResponse & WithStatusMessage(const Aws::String &value)
ImportImageResponse & WithStatus(Aws::String &&value)
ImportImageResponse & WithImportTaskId(const char *value)
ImportImageResponse & WithStatusMessage(Aws::String &&value)
const Aws::String & GetDescription() const
void SetSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
ImportImageResponse & WithImageId(const Aws::String &value)
ImportImageResponse & WithProgress(Aws::String &&value)
const Aws::String & GetStatus() const
void SetResponseMetadata(const ResponseMetadata &value)
void SetArchitecture(const Aws::String &value)
void SetImportTaskId(Aws::String &&value)
const Aws::String & GetLicenseType() const
void SetProgress(const Aws::String &value)
ImportImageResponse & WithLicenseType(const Aws::String &value)
ImportImageResponse & WithHypervisor(const Aws::String &value)
void SetHypervisor(const Aws::String &value)
ImportImageResponse & WithDescription(const char *value)
void SetPlatform(const Aws::String &value)
ImportImageResponse & WithHypervisor(const char *value)
ImportImageResponse & WithStatus(const char *value)
ImportImageResponse & WithDescription(const Aws::String &value)
ImportImageResponse & WithImageId(const char *value)
const Aws::String & GetProgress() const
ImportImageResponse & WithLicenseType(const char *value)
ImportImageResponse & WithProgress(const Aws::String &value)
ImportImageResponse & AddSnapshotDetails(const SnapshotDetail &value)
void SetLicenseType(const Aws::String &value)
ImportImageResponse & WithImageId(Aws::String &&value)
void SetLicenseType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStatusMessage(const Aws::String &value)
void SetStatusMessage(Aws::String &&value)
void SetImageId(const Aws::String &value)
ImportImageResponse & WithStatusMessage(const char *value)
void SetImportTaskId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
ImportImageResponse & WithResponseMetadata(ResponseMetadata &&value)
ImportImageResponse & WithPlatform(const Aws::String &value)
void SetSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
const ResponseMetadata & GetResponseMetadata() const
JSON (JavaScript Object Notation).