AWS SDK for C++  0.14.3
AWS SDK for C++
ImportImageTask.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 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ImportImageTask& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; }
53 
57  inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
58 
62  inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; }
63 
67  inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); }
68 
72  inline ImportImageTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;}
73 
77  inline ImportImageTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(value); return *this;}
78 
82  inline ImportImageTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;}
83 
88  inline const Aws::String& GetArchitecture() const{ return m_architecture; }
89 
94  inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
95 
100  inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = value; }
101 
106  inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
107 
112  inline ImportImageTask& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
113 
118  inline ImportImageTask& WithArchitecture(Aws::String&& value) { SetArchitecture(value); return *this;}
119 
124  inline ImportImageTask& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
125 
129  inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
130 
134  inline void SetLicenseType(const Aws::String& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
135 
139  inline void SetLicenseType(Aws::String&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
140 
144  inline void SetLicenseType(const char* value) { m_licenseTypeHasBeenSet = true; m_licenseType.assign(value); }
145 
149  inline ImportImageTask& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
150 
154  inline ImportImageTask& WithLicenseType(Aws::String&& value) { SetLicenseType(value); return *this;}
155 
159  inline ImportImageTask& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
160 
164  inline const Aws::String& GetPlatform() const{ return m_platform; }
165 
169  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
170 
174  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = value; }
175 
179  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
180 
184  inline ImportImageTask& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
185 
189  inline ImportImageTask& WithPlatform(Aws::String&& value) { SetPlatform(value); return *this;}
190 
194  inline ImportImageTask& WithPlatform(const char* value) { SetPlatform(value); return *this;}
195 
200  inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
201 
206  inline void SetHypervisor(const Aws::String& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
207 
212  inline void SetHypervisor(Aws::String&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
213 
218  inline void SetHypervisor(const char* value) { m_hypervisorHasBeenSet = true; m_hypervisor.assign(value); }
219 
224  inline ImportImageTask& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
225 
230  inline ImportImageTask& WithHypervisor(Aws::String&& value) { SetHypervisor(value); return *this;}
231 
236  inline ImportImageTask& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
237 
241  inline const Aws::String& GetDescription() const{ return m_description; }
242 
246  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
247 
251  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
252 
256  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
257 
261  inline ImportImageTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
262 
266  inline ImportImageTask& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
267 
271  inline ImportImageTask& WithDescription(const char* value) { SetDescription(value); return *this;}
272 
276  inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const{ return m_snapshotDetails; }
277 
281  inline void SetSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails = value; }
282 
286  inline void SetSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails = value; }
287 
291  inline ImportImageTask& WithSnapshotDetails(const Aws::Vector<SnapshotDetail>& value) { SetSnapshotDetails(value); return *this;}
292 
296  inline ImportImageTask& WithSnapshotDetails(Aws::Vector<SnapshotDetail>&& value) { SetSnapshotDetails(value); return *this;}
297 
301  inline ImportImageTask& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(value); return *this; }
302 
306  inline ImportImageTask& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(value); return *this; }
307 
311  inline const Aws::String& GetImageId() const{ return m_imageId; }
312 
316  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
317 
321  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
322 
326  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
327 
331  inline ImportImageTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
332 
336  inline ImportImageTask& WithImageId(Aws::String&& value) { SetImageId(value); return *this;}
337 
341  inline ImportImageTask& WithImageId(const char* value) { SetImageId(value); return *this;}
342 
346  inline const Aws::String& GetProgress() const{ return m_progress; }
347 
351  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
352 
356  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = value; }
357 
361  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
362 
366  inline ImportImageTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
367 
371  inline ImportImageTask& WithProgress(Aws::String&& value) { SetProgress(value); return *this;}
372 
376  inline ImportImageTask& WithProgress(const char* value) { SetProgress(value); return *this;}
377 
381  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
382 
386  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
387 
391  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
392 
396  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
397 
401  inline ImportImageTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
402 
406  inline ImportImageTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
407 
411  inline ImportImageTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
412 
416  inline const Aws::String& GetStatus() const{ return m_status; }
417 
421  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
422 
426  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
427 
431  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
432 
436  inline ImportImageTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
437 
441  inline ImportImageTask& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
442 
446  inline ImportImageTask& WithStatus(const char* value) { SetStatus(value); return *this;}
447 
448  private:
449  Aws::String m_importTaskId;
450  bool m_importTaskIdHasBeenSet;
451  Aws::String m_architecture;
452  bool m_architectureHasBeenSet;
453  Aws::String m_licenseType;
454  bool m_licenseTypeHasBeenSet;
455  Aws::String m_platform;
456  bool m_platformHasBeenSet;
457  Aws::String m_hypervisor;
458  bool m_hypervisorHasBeenSet;
459  Aws::String m_description;
460  bool m_descriptionHasBeenSet;
461  Aws::Vector<SnapshotDetail> m_snapshotDetails;
462  bool m_snapshotDetailsHasBeenSet;
463  Aws::String m_imageId;
464  bool m_imageIdHasBeenSet;
465  Aws::String m_progress;
466  bool m_progressHasBeenSet;
467  Aws::String m_statusMessage;
468  bool m_statusMessageHasBeenSet;
469  Aws::String m_status;
470  bool m_statusHasBeenSet;
471  };
472 
473 } // namespace Model
474 } // namespace EC2
475 } // namespace Aws
ImportImageTask & WithHypervisor(const char *value)
ImportImageTask & WithLicenseType(const Aws::String &value)
void SetStatusMessage(const Aws::String &value)
ImportImageTask & WithStatusMessage(Aws::String &&value)
ImportImageTask & AddSnapshotDetails(SnapshotDetail &&value)
ImportImageTask & WithProgress(const Aws::String &value)
ImportImageTask & WithProgress(Aws::String &&value)
ImportImageTask & WithImageId(Aws::String &&value)
ImportImageTask & WithStatus(const char *value)
void SetPlatform(const Aws::String &value)
ImportImageTask & WithDescription(const char *value)
void SetImageId(const Aws::String &value)
ImportImageTask & WithImportTaskId(const Aws::String &value)
void SetLicenseType(const char *value)
void SetSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
ImportImageTask & WithStatusMessage(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetArchitecture() const
void SetStatus(const Aws::String &value)
ImportImageTask & WithArchitecture(const char *value)
void SetPlatform(const char *value)
ImportImageTask & WithSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
const Aws::String & GetDescription() const
const Aws::String & GetImageId() const
void SetProgress(Aws::String &&value)
void SetHypervisor(Aws::String &&value)
const Aws::String & GetLicenseType() const
ImportImageTask & WithImportTaskId(Aws::String &&value)
ImportImageTask & WithArchitecture(const Aws::String &value)
void SetSnapshotDetails(Aws::Vector< SnapshotDetail > &&value)
void SetDescription(Aws::String &&value)
void SetImageId(const char *value)
ImportImageTask & WithStatus(const Aws::String &value)
void SetDescription(const char *value)
ImportImageTask & AddSnapshotDetails(const SnapshotDetail &value)
ImportImageTask & WithProgress(const char *value)
void SetArchitecture(Aws::String &&value)
ImportImageTask & WithPlatform(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetStatusMessage(Aws::String &&value)
ImportImageTask & WithImageId(const char *value)
ImportImageTask & WithHypervisor(const Aws::String &value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
void SetDescription(const Aws::String &value)
void SetImportTaskId(const char *value)
void SetProgress(const char *value)
void SetImportTaskId(Aws::String &&value)
void SetArchitecture(const char *value)
ImportImageTask & WithLicenseType(const char *value)
ImportImageTask & WithSnapshotDetails(const Aws::Vector< SnapshotDetail > &value)
void SetLicenseType(const Aws::String &value)
void SetImageId(Aws::String &&value)
void SetStatus(Aws::String &&value)
const Aws::String & GetStatusMessage() const
void SetProgress(const Aws::String &value)
ImportImageTask & WithImageId(const Aws::String &value)
void SetHypervisor(const Aws::String &value)
const Aws::String & GetProgress() const
ImportImageTask & WithDescription(Aws::String &&value)
const Aws::String & GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLicenseType(Aws::String &&value)
ImportImageTask & WithPlatform(const Aws::String &value)
ImportImageTask & WithImportTaskId(const char *value)
ImportImageTask & WithDescription(const Aws::String &value)
void SetArchitecture(const Aws::String &value)
const Aws::String & GetPlatform() const
ImportImageTask & WithHypervisor(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
const Aws::String & GetImportTaskId() const
void SetImportTaskId(const Aws::String &value)
ImportImageTask & WithStatusMessage(const Aws::String &value)
void SetHypervisor(const char *value)
void SetPlatform(Aws::String &&value)
ImportImageTask & WithArchitecture(Aws::String &&value)
void SetStatus(const char *value)
void SetStatusMessage(const char *value)
const Aws::String & GetHypervisor() const
ImportImageTask & WithPlatform(const char *value)
ImportImageTask & WithStatus(Aws::String &&value)
JSON (JavaScript Object Notation).
ImportImageTask & WithLicenseType(Aws::String &&value)