AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportInstanceTaskDetails.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/ec2/model/PlatformValues.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ImportInstanceVolumeDetailItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline ImportInstanceTaskDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline ImportInstanceTaskDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline ImportInstanceTaskDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
64 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
65 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
66 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
67 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
68 inline ImportInstanceTaskDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
69 inline ImportInstanceTaskDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
70 inline ImportInstanceTaskDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
72
74
77 inline const PlatformValues& GetPlatform() const{ return m_platform; }
78 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
79 inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
80 inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
81 inline ImportInstanceTaskDetails& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
82 inline ImportInstanceTaskDetails& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
84
86
89 inline const Aws::Vector<ImportInstanceVolumeDetailItem>& GetVolumes() const{ return m_volumes; }
90 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
91 inline void SetVolumes(const Aws::Vector<ImportInstanceVolumeDetailItem>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
92 inline void SetVolumes(Aws::Vector<ImportInstanceVolumeDetailItem>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
95 inline ImportInstanceTaskDetails& AddVolumes(const ImportInstanceVolumeDetailItem& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
96 inline ImportInstanceTaskDetails& AddVolumes(ImportInstanceVolumeDetailItem&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102
103 Aws::String m_instanceId;
104 bool m_instanceIdHasBeenSet = false;
105
106 PlatformValues m_platform;
107 bool m_platformHasBeenSet = false;
108
110 bool m_volumesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
void SetVolumes(Aws::Vector< ImportInstanceVolumeDetailItem > &&value)
ImportInstanceTaskDetails & WithDescription(const Aws::String &value)
ImportInstanceTaskDetails & WithDescription(const char *value)
AWS_EC2_API ImportInstanceTaskDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ImportInstanceTaskDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ImportInstanceVolumeDetailItem > & GetVolumes() const
ImportInstanceTaskDetails & WithVolumes(Aws::Vector< ImportInstanceVolumeDetailItem > &&value)
ImportInstanceTaskDetails & AddVolumes(ImportInstanceVolumeDetailItem &&value)
ImportInstanceTaskDetails & WithPlatform(const PlatformValues &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportInstanceTaskDetails & WithPlatform(PlatformValues &&value)
void SetVolumes(const Aws::Vector< ImportInstanceVolumeDetailItem > &value)
ImportInstanceTaskDetails & WithInstanceId(const char *value)
ImportInstanceTaskDetails & WithVolumes(const Aws::Vector< ImportInstanceVolumeDetailItem > &value)
ImportInstanceTaskDetails & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportInstanceTaskDetails & WithInstanceId(const Aws::String &value)
ImportInstanceTaskDetails & AddVolumes(const ImportInstanceVolumeDetailItem &value)
ImportInstanceTaskDetails & WithInstanceId(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