AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SnapshotDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/UserBucketDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API SnapshotDetail() = default;
32 AWS_EC2_API SnapshotDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 SnapshotDetail& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
61 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
62 template <typename DeviceNameT = Aws::String>
63 void SetDeviceName(DeviceNameT&& value) {
64 m_deviceNameHasBeenSet = true;
65 m_deviceName = std::forward<DeviceNameT>(value);
66 }
67 template <typename DeviceNameT = Aws::String>
68 SnapshotDetail& WithDeviceName(DeviceNameT&& value) {
69 SetDeviceName(std::forward<DeviceNameT>(value));
70 return *this;
71 }
73
75
78 inline double GetDiskImageSize() const { return m_diskImageSize; }
79 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
80 inline void SetDiskImageSize(double value) {
81 m_diskImageSizeHasBeenSet = true;
82 m_diskImageSize = value;
83 }
84 inline SnapshotDetail& WithDiskImageSize(double value) {
85 SetDiskImageSize(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetFormat() const { return m_format; }
95 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
96 template <typename FormatT = Aws::String>
97 void SetFormat(FormatT&& value) {
98 m_formatHasBeenSet = true;
99 m_format = std::forward<FormatT>(value);
100 }
101 template <typename FormatT = Aws::String>
102 SnapshotDetail& WithFormat(FormatT&& value) {
103 SetFormat(std::forward<FormatT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetProgress() const { return m_progress; }
113 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
114 template <typename ProgressT = Aws::String>
115 void SetProgress(ProgressT&& value) {
116 m_progressHasBeenSet = true;
117 m_progress = std::forward<ProgressT>(value);
118 }
119 template <typename ProgressT = Aws::String>
120 SnapshotDetail& WithProgress(ProgressT&& value) {
121 SetProgress(std::forward<ProgressT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
131 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
132 template <typename SnapshotIdT = Aws::String>
133 void SetSnapshotId(SnapshotIdT&& value) {
134 m_snapshotIdHasBeenSet = true;
135 m_snapshotId = std::forward<SnapshotIdT>(value);
136 }
137 template <typename SnapshotIdT = Aws::String>
138 SnapshotDetail& WithSnapshotId(SnapshotIdT&& value) {
139 SetSnapshotId(std::forward<SnapshotIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 template <typename StatusT = Aws::String>
151 void SetStatus(StatusT&& value) {
152 m_statusHasBeenSet = true;
153 m_status = std::forward<StatusT>(value);
154 }
155 template <typename StatusT = Aws::String>
156 SnapshotDetail& WithStatus(StatusT&& value) {
157 SetStatus(std::forward<StatusT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
167 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
168 template <typename StatusMessageT = Aws::String>
169 void SetStatusMessage(StatusMessageT&& value) {
170 m_statusMessageHasBeenSet = true;
171 m_statusMessage = std::forward<StatusMessageT>(value);
172 }
173 template <typename StatusMessageT = Aws::String>
174 SnapshotDetail& WithStatusMessage(StatusMessageT&& value) {
175 SetStatusMessage(std::forward<StatusMessageT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetUrl() const { return m_url; }
185 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
186 template <typename UrlT = Aws::String>
187 void SetUrl(UrlT&& value) {
188 m_urlHasBeenSet = true;
189 m_url = std::forward<UrlT>(value);
190 }
191 template <typename UrlT = Aws::String>
192 SnapshotDetail& WithUrl(UrlT&& value) {
193 SetUrl(std::forward<UrlT>(value));
194 return *this;
195 }
197
199
202 inline const UserBucketDetails& GetUserBucket() const { return m_userBucket; }
203 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
204 template <typename UserBucketT = UserBucketDetails>
205 void SetUserBucket(UserBucketT&& value) {
206 m_userBucketHasBeenSet = true;
207 m_userBucket = std::forward<UserBucketT>(value);
208 }
209 template <typename UserBucketT = UserBucketDetails>
210 SnapshotDetail& WithUserBucket(UserBucketT&& value) {
211 SetUserBucket(std::forward<UserBucketT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_description;
217
218 Aws::String m_deviceName;
219
220 double m_diskImageSize{0.0};
221
222 Aws::String m_format;
223
224 Aws::String m_progress;
225
226 Aws::String m_snapshotId;
227
228 Aws::String m_status;
229
230 Aws::String m_statusMessage;
231
232 Aws::String m_url;
233
234 UserBucketDetails m_userBucket;
235 bool m_descriptionHasBeenSet = false;
236 bool m_deviceNameHasBeenSet = false;
237 bool m_diskImageSizeHasBeenSet = false;
238 bool m_formatHasBeenSet = false;
239 bool m_progressHasBeenSet = false;
240 bool m_snapshotIdHasBeenSet = false;
241 bool m_statusHasBeenSet = false;
242 bool m_statusMessageHasBeenSet = false;
243 bool m_urlHasBeenSet = false;
244 bool m_userBucketHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace EC2
249} // namespace Aws
SnapshotDetail & WithStatus(StatusT &&value)
void SetDiskImageSize(double value)
void SetUserBucket(UserBucketT &&value)
SnapshotDetail & WithDeviceName(DeviceNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotDetail & WithSnapshotId(SnapshotIdT &&value)
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetUrl() const
const Aws::String & GetSnapshotId() const
const Aws::String & GetFormat() const
void SetStatus(StatusT &&value)
void SetDescription(DescriptionT &&value)
void SetFormat(FormatT &&value)
SnapshotDetail & WithUrl(UrlT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const UserBucketDetails & GetUserBucket() const
const Aws::String & GetDeviceName() const
SnapshotDetail & WithDiskImageSize(double value)
const Aws::String & GetStatus() const
AWS_EC2_API SnapshotDetail()=default
SnapshotDetail & WithProgress(ProgressT &&value)
void SetProgress(ProgressT &&value)
void SetDeviceName(DeviceNameT &&value)
const Aws::String & GetProgress() const
SnapshotDetail & WithFormat(FormatT &&value)
AWS_EC2_API SnapshotDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SnapshotDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDescription() const
void SetStatusMessage(StatusMessageT &&value)
SnapshotDetail & WithUserBucket(UserBucketT &&value)
const Aws::String & GetStatusMessage() const
SnapshotDetail & WithStatusMessage(StatusMessageT &&value)
SnapshotDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream