AWS SDK for C++  1.9.70
AWS SDK for C++
SnapshotDetail.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
52  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 
57  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 
62  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 
67  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 
72  inline SnapshotDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 
77  inline SnapshotDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 
82  inline SnapshotDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
83 
84 
88  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
89 
93  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
94 
98  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
99 
103  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
104 
108  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
109 
113  inline SnapshotDetail& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
114 
118  inline SnapshotDetail& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
119 
123  inline SnapshotDetail& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
124 
125 
129  inline double GetDiskImageSize() const{ return m_diskImageSize; }
130 
134  inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
135 
139  inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
140 
144  inline SnapshotDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
145 
146 
150  inline const Aws::String& GetFormat() const{ return m_format; }
151 
155  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
156 
160  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
161 
165  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
166 
170  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
171 
175  inline SnapshotDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
176 
180  inline SnapshotDetail& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
181 
185  inline SnapshotDetail& WithFormat(const char* value) { SetFormat(value); return *this;}
186 
187 
191  inline const Aws::String& GetProgress() const{ return m_progress; }
192 
196  inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
197 
201  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
202 
206  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
207 
211  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
212 
216  inline SnapshotDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
217 
221  inline SnapshotDetail& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
222 
226  inline SnapshotDetail& WithProgress(const char* value) { SetProgress(value); return *this;}
227 
228 
232  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
233 
237  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
238 
242  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
243 
247  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
248 
252  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
253 
257  inline SnapshotDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
258 
262  inline SnapshotDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
263 
267  inline SnapshotDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
268 
269 
273  inline const Aws::String& GetStatus() const{ return m_status; }
274 
278  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
279 
283  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
284 
288  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
289 
293  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
294 
298  inline SnapshotDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
299 
303  inline SnapshotDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
304 
308  inline SnapshotDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
309 
310 
314  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
315 
319  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
320 
324  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
325 
329  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
330 
334  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
335 
339  inline SnapshotDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
340 
344  inline SnapshotDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
345 
349  inline SnapshotDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
350 
351 
355  inline const Aws::String& GetUrl() const{ return m_url; }
356 
360  inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
361 
365  inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
366 
370  inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
371 
375  inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
376 
380  inline SnapshotDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
381 
385  inline SnapshotDetail& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
386 
390  inline SnapshotDetail& WithUrl(const char* value) { SetUrl(value); return *this;}
391 
392 
396  inline const UserBucketDetails& GetUserBucket() const{ return m_userBucket; }
397 
401  inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
402 
406  inline void SetUserBucket(const UserBucketDetails& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
407 
411  inline void SetUserBucket(UserBucketDetails&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
412 
416  inline SnapshotDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;}
417 
421  inline SnapshotDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(std::move(value)); return *this;}
422 
423  private:
424 
425  Aws::String m_description;
426  bool m_descriptionHasBeenSet;
427 
428  Aws::String m_deviceName;
429  bool m_deviceNameHasBeenSet;
430 
431  double m_diskImageSize;
432  bool m_diskImageSizeHasBeenSet;
433 
434  Aws::String m_format;
435  bool m_formatHasBeenSet;
436 
437  Aws::String m_progress;
438  bool m_progressHasBeenSet;
439 
440  Aws::String m_snapshotId;
441  bool m_snapshotIdHasBeenSet;
442 
443  Aws::String m_status;
444  bool m_statusHasBeenSet;
445 
446  Aws::String m_statusMessage;
447  bool m_statusMessageHasBeenSet;
448 
449  Aws::String m_url;
450  bool m_urlHasBeenSet;
451 
452  UserBucketDetails m_userBucket;
453  bool m_userBucketHasBeenSet;
454  };
455 
456 } // namespace Model
457 } // namespace EC2
458 } // namespace Aws
Aws::EC2::Model::SnapshotDetail::WithFormat
SnapshotDetail & WithFormat(Aws::String &&value)
Definition: SnapshotDetail.h:180
Aws::EC2::Model::SnapshotDetail::DiskImageSizeHasBeenSet
bool DiskImageSizeHasBeenSet() const
Definition: SnapshotDetail.h:134
Aws::EC2::Model::SnapshotDetail::SetFormat
void SetFormat(const Aws::String &value)
Definition: SnapshotDetail.h:160
Aws::EC2::Model::SnapshotDetail::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: SnapshotDetail.h:103
Aws::EC2::Model::SnapshotDetail::WithFormat
SnapshotDetail & WithFormat(const char *value)
Definition: SnapshotDetail.h:185
Aws::EC2::Model::SnapshotDetail::WithDeviceName
SnapshotDetail & WithDeviceName(Aws::String &&value)
Definition: SnapshotDetail.h:118
Aws::EC2::Model::UserBucketDetails
Definition: UserBucketDetails.h:33
Aws::EC2::Model::SnapshotDetail::WithDeviceName
SnapshotDetail & WithDeviceName(const Aws::String &value)
Definition: SnapshotDetail.h:113
Aws::EC2::Model::SnapshotDetail::WithSnapshotId
SnapshotDetail & WithSnapshotId(const Aws::String &value)
Definition: SnapshotDetail.h:257
Aws::EC2::Model::SnapshotDetail::WithProgress
SnapshotDetail & WithProgress(const Aws::String &value)
Definition: SnapshotDetail.h:216
Aws::EC2::Model::SnapshotDetail::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: SnapshotDetail.h:252
Aws::EC2::Model::SnapshotDetail::GetUrl
const Aws::String & GetUrl() const
Definition: SnapshotDetail.h:355
Aws::EC2::Model::SnapshotDetail::WithSnapshotId
SnapshotDetail & WithSnapshotId(Aws::String &&value)
Definition: SnapshotDetail.h:262
Aws::EC2::Model::SnapshotDetail::SetUrl
void SetUrl(Aws::String &&value)
Definition: SnapshotDetail.h:370
Aws::EC2::Model::SnapshotDetail::GetDescription
const Aws::String & GetDescription() const
Definition: SnapshotDetail.h:47
Aws::EC2::Model::SnapshotDetail::WithUserBucket
SnapshotDetail & WithUserBucket(const UserBucketDetails &value)
Definition: SnapshotDetail.h:416
Aws::EC2::Model::SnapshotDetail::SetProgress
void SetProgress(const char *value)
Definition: SnapshotDetail.h:211
Aws::EC2::Model::SnapshotDetail::WithStatus
SnapshotDetail & WithStatus(const Aws::String &value)
Definition: SnapshotDetail.h:298
UserBucketDetails.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SnapshotDetail::ProgressHasBeenSet
bool ProgressHasBeenSet() const
Definition: SnapshotDetail.h:196
Aws::EC2::Model::SnapshotDetail::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: SnapshotDetail.h:278
Aws::EC2::Model::SnapshotDetail::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: SnapshotDetail.h:319
AWSStreamFwd.h
Aws::EC2::Model::SnapshotDetail::WithProgress
SnapshotDetail & WithProgress(const char *value)
Definition: SnapshotDetail.h:226
Aws::EC2::Model::SnapshotDetail::SetFormat
void SetFormat(const char *value)
Definition: SnapshotDetail.h:170
Aws::EC2::Model::SnapshotDetail::WithSnapshotId
SnapshotDetail & WithSnapshotId(const char *value)
Definition: SnapshotDetail.h:267
Aws::EC2::Model::SnapshotDetail::WithStatusMessage
SnapshotDetail & WithStatusMessage(Aws::String &&value)
Definition: SnapshotDetail.h:344
Aws::EC2::Model::SnapshotDetail::SetFormat
void SetFormat(Aws::String &&value)
Definition: SnapshotDetail.h:165
Aws::EC2::Model::SnapshotDetail::SnapshotDetail
SnapshotDetail()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SnapshotDetail::WithUrl
SnapshotDetail & WithUrl(const char *value)
Definition: SnapshotDetail.h:390
Aws::EC2::Model::SnapshotDetail::WithFormat
SnapshotDetail & WithFormat(const Aws::String &value)
Definition: SnapshotDetail.h:175
Aws::EC2::Model::SnapshotDetail::GetStatus
const Aws::String & GetStatus() const
Definition: SnapshotDetail.h:273
Aws::EC2::Model::SnapshotDetail::WithDeviceName
SnapshotDetail & WithDeviceName(const char *value)
Definition: SnapshotDetail.h:123
Aws::EC2::Model::SnapshotDetail::WithStatusMessage
SnapshotDetail & WithStatusMessage(const char *value)
Definition: SnapshotDetail.h:349
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SnapshotDetail::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: SnapshotDetail.h:98
Aws::EC2::Model::SnapshotDetail::SetUrl
void SetUrl(const char *value)
Definition: SnapshotDetail.h:375
Aws::EC2::Model::SnapshotDetail::SetStatus
void SetStatus(Aws::String &&value)
Definition: SnapshotDetail.h:288
Aws::EC2::Model::SnapshotDetail::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: SnapshotDetail.h:88
Aws::EC2::Model::SnapshotDetail::GetFormat
const Aws::String & GetFormat() const
Definition: SnapshotDetail.h:150
Aws::EC2::Model::SnapshotDetail::SetDeviceName
void SetDeviceName(const char *value)
Definition: SnapshotDetail.h:108
Aws::EC2::Model::SnapshotDetail::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: SnapshotDetail.h:155
Aws::EC2::Model::SnapshotDetail::SetProgress
void SetProgress(const Aws::String &value)
Definition: SnapshotDetail.h:201
Aws::EC2::Model::SnapshotDetail::SetProgress
void SetProgress(Aws::String &&value)
Definition: SnapshotDetail.h:206
Aws::EC2::Model::SnapshotDetail::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: SnapshotDetail.h:314
Aws::EC2::Model::SnapshotDetail::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: SnapshotDetail.h:324
Aws::EC2::Model::SnapshotDetail::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SnapshotDetail::SetUrl
void SetUrl(const Aws::String &value)
Definition: SnapshotDetail.h:365
Aws::EC2::Model::SnapshotDetail::WithDescription
SnapshotDetail & WithDescription(Aws::String &&value)
Definition: SnapshotDetail.h:77
Aws::EC2::Model::SnapshotDetail::GetUserBucket
const UserBucketDetails & GetUserBucket() const
Definition: SnapshotDetail.h:396
Aws::EC2::Model::SnapshotDetail::SetUserBucket
void SetUserBucket(UserBucketDetails &&value)
Definition: SnapshotDetail.h:411
Aws::EC2::Model::SnapshotDetail::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: SnapshotDetail.h:242
AWSString.h
Aws::EC2::Model::SnapshotDetail::WithUserBucket
SnapshotDetail & WithUserBucket(UserBucketDetails &&value)
Definition: SnapshotDetail.h:421
Aws::EC2::Model::SnapshotDetail::GetProgress
const Aws::String & GetProgress() const
Definition: SnapshotDetail.h:191
Aws::EC2::Model::SnapshotDetail::SetDescription
void SetDescription(const char *value)
Definition: SnapshotDetail.h:67
Aws::EC2::Model::SnapshotDetail::SetUserBucket
void SetUserBucket(const UserBucketDetails &value)
Definition: SnapshotDetail.h:406
Aws::EC2::Model::SnapshotDetail::SetDescription
void SetDescription(Aws::String &&value)
Definition: SnapshotDetail.h:62
Aws::EC2::Model::SnapshotDetail::SetStatus
void SetStatus(const Aws::String &value)
Definition: SnapshotDetail.h:283
Aws::EC2::Model::SnapshotDetail::UserBucketHasBeenSet
bool UserBucketHasBeenSet() const
Definition: SnapshotDetail.h:401
Aws::EC2::Model::SnapshotDetail::WithDescription
SnapshotDetail & WithDescription(const char *value)
Definition: SnapshotDetail.h:82
Aws::EC2::Model::SnapshotDetail::UrlHasBeenSet
bool UrlHasBeenSet() const
Definition: SnapshotDetail.h:360
Aws::EC2::Model::SnapshotDetail::WithUrl
SnapshotDetail & WithUrl(Aws::String &&value)
Definition: SnapshotDetail.h:385
Aws::EC2::Model::SnapshotDetail::WithDescription
SnapshotDetail & WithDescription(const Aws::String &value)
Definition: SnapshotDetail.h:72
Aws::EC2::Model::SnapshotDetail::WithUrl
SnapshotDetail & WithUrl(const Aws::String &value)
Definition: SnapshotDetail.h:380
Aws::EC2::Model::SnapshotDetail::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: SnapshotDetail.h:93
Aws::EC2::Model::SnapshotDetail::SetDiskImageSize
void SetDiskImageSize(double value)
Definition: SnapshotDetail.h:139
Aws::EC2::Model::SnapshotDetail::GetDiskImageSize
double GetDiskImageSize() const
Definition: SnapshotDetail.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SnapshotDetail::SetStatus
void SetStatus(const char *value)
Definition: SnapshotDetail.h:293
Aws::EC2::Model::SnapshotDetail::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SnapshotDetail::WithStatus
SnapshotDetail & WithStatus(Aws::String &&value)
Definition: SnapshotDetail.h:303
Aws::EC2::Model::SnapshotDetail::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: SnapshotDetail.h:334
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SnapshotDetail::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: SnapshotDetail.h:329
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SnapshotDetail::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: SnapshotDetail.h:247
Aws::EC2::Model::SnapshotDetail
Definition: SnapshotDetail.h:34
Aws::EC2::Model::SnapshotDetail::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: SnapshotDetail.h:232
Aws::EC2::Model::SnapshotDetail::SnapshotDetail
SnapshotDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotDetail::WithDiskImageSize
SnapshotDetail & WithDiskImageSize(double value)
Definition: SnapshotDetail.h:144
Aws::EC2::Model::SnapshotDetail::WithStatusMessage
SnapshotDetail & WithStatusMessage(const Aws::String &value)
Definition: SnapshotDetail.h:339
Aws::EC2::Model::SnapshotDetail::SetDescription
void SetDescription(const Aws::String &value)
Definition: SnapshotDetail.h:57
EC2_EXPORTS.h
Aws::EC2::Model::SnapshotDetail::WithProgress
SnapshotDetail & WithProgress(Aws::String &&value)
Definition: SnapshotDetail.h:221
Aws::EC2::Model::SnapshotDetail::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: SnapshotDetail.h:237
Aws::EC2::Model::SnapshotDetail::WithStatus
SnapshotDetail & WithStatus(const char *value)
Definition: SnapshotDetail.h:308
Aws::EC2::Model::SnapshotDetail::operator=
SnapshotDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotDetail::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: SnapshotDetail.h:52