AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportInstanceVolumeDetailItem.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/DiskImageDescription.h>
11#include <aws/ec2/model/DiskImageVolumeDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
49 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
50 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
51 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
52 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
54 inline ImportInstanceVolumeDetailItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
55 inline ImportInstanceVolumeDetailItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
57
59
62 inline long long GetBytesConverted() const{ return m_bytesConverted; }
63 inline bool BytesConvertedHasBeenSet() const { return m_bytesConvertedHasBeenSet; }
64 inline void SetBytesConverted(long long value) { m_bytesConvertedHasBeenSet = true; m_bytesConverted = value; }
65 inline ImportInstanceVolumeDetailItem& WithBytesConverted(long long value) { SetBytesConverted(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline ImportInstanceVolumeDetailItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline ImportInstanceVolumeDetailItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline ImportInstanceVolumeDetailItem& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const DiskImageDescription& GetImage() const{ return m_image; }
87 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
88 inline void SetImage(const DiskImageDescription& value) { m_imageHasBeenSet = true; m_image = value; }
89 inline void SetImage(DiskImageDescription&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
90 inline ImportInstanceVolumeDetailItem& WithImage(const DiskImageDescription& value) { SetImage(value); return *this;}
91 inline ImportInstanceVolumeDetailItem& WithImage(DiskImageDescription&& value) { SetImage(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetStatus() const{ return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
101 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
103 inline ImportInstanceVolumeDetailItem& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
104 inline ImportInstanceVolumeDetailItem& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
105 inline ImportInstanceVolumeDetailItem& WithStatus(const char* value) { SetStatus(value); return *this;}
107
109
112 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
113 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
114 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
115 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
116 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
118 inline ImportInstanceVolumeDetailItem& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
119 inline ImportInstanceVolumeDetailItem& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
121
123
126 inline const DiskImageVolumeDescription& GetVolume() const{ return m_volume; }
127 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
128 inline void SetVolume(const DiskImageVolumeDescription& value) { m_volumeHasBeenSet = true; m_volume = value; }
129 inline void SetVolume(DiskImageVolumeDescription&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
131 inline ImportInstanceVolumeDetailItem& WithVolume(DiskImageVolumeDescription&& value) { SetVolume(std::move(value)); return *this;}
133 private:
134
135 Aws::String m_availabilityZone;
136 bool m_availabilityZoneHasBeenSet = false;
137
138 long long m_bytesConverted;
139 bool m_bytesConvertedHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 DiskImageDescription m_image;
145 bool m_imageHasBeenSet = false;
146
147 Aws::String m_status;
148 bool m_statusHasBeenSet = false;
149
150 Aws::String m_statusMessage;
151 bool m_statusMessageHasBeenSet = false;
152
154 bool m_volumeHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
ImportInstanceVolumeDetailItem & WithAvailabilityZone(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportInstanceVolumeDetailItem & WithDescription(const Aws::String &value)
ImportInstanceVolumeDetailItem & WithAvailabilityZone(Aws::String &&value)
AWS_EC2_API ImportInstanceVolumeDetailItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportInstanceVolumeDetailItem & WithImage(DiskImageDescription &&value)
ImportInstanceVolumeDetailItem & WithVolume(const DiskImageVolumeDescription &value)
ImportInstanceVolumeDetailItem & WithAvailabilityZone(const Aws::String &value)
ImportInstanceVolumeDetailItem & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportInstanceVolumeDetailItem & WithVolume(DiskImageVolumeDescription &&value)
ImportInstanceVolumeDetailItem & WithStatus(Aws::String &&value)
ImportInstanceVolumeDetailItem & WithDescription(const char *value)
ImportInstanceVolumeDetailItem & WithImage(const DiskImageDescription &value)
ImportInstanceVolumeDetailItem & WithStatusMessage(Aws::String &&value)
void SetVolume(const DiskImageVolumeDescription &value)
AWS_EC2_API ImportInstanceVolumeDetailItem(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportInstanceVolumeDetailItem & WithStatus(const char *value)
ImportInstanceVolumeDetailItem & WithStatusMessage(const char *value)
ImportInstanceVolumeDetailItem & WithStatusMessage(const Aws::String &value)
ImportInstanceVolumeDetailItem & WithBytesConverted(long long value)
const DiskImageVolumeDescription & GetVolume() const
ImportInstanceVolumeDetailItem & WithStatus(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream