AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotDetail.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/UserBucketDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API SnapshotDetail();
37 AWS_EC2_API SnapshotDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
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& GetDescription() const{ return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline SnapshotDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline SnapshotDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline SnapshotDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
62 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
63 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
64 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
65 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
66 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
67 inline SnapshotDetail& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
68 inline SnapshotDetail& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
69 inline SnapshotDetail& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
71
73
76 inline double GetDiskImageSize() const{ return m_diskImageSize; }
77 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
78 inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
79 inline SnapshotDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
81
83
86 inline const Aws::String& GetFormat() const{ return m_format; }
87 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
88 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
89 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
90 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
91 inline SnapshotDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
92 inline SnapshotDetail& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
93 inline SnapshotDetail& WithFormat(const char* value) { SetFormat(value); return *this;}
95
97
100 inline const Aws::String& GetProgress() const{ return m_progress; }
101 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
102 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
103 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
104 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
105 inline SnapshotDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
106 inline SnapshotDetail& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
107 inline SnapshotDetail& WithProgress(const char* value) { SetProgress(value); return *this;}
109
111
114 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
115 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
116 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
117 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
118 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
119 inline SnapshotDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
120 inline SnapshotDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
121 inline SnapshotDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
123
125
128 inline const Aws::String& GetStatus() const{ return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
131 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
132 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
133 inline SnapshotDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
134 inline SnapshotDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
135 inline SnapshotDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
137
139
142 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
143 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
144 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
145 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
146 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
147 inline SnapshotDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
148 inline SnapshotDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
149 inline SnapshotDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
151
153
156 inline const Aws::String& GetUrl() const{ return m_url; }
157 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
158 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
159 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
160 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
161 inline SnapshotDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
162 inline SnapshotDetail& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
163 inline SnapshotDetail& WithUrl(const char* value) { SetUrl(value); return *this;}
165
167
170 inline const UserBucketDetails& GetUserBucket() const{ return m_userBucket; }
171 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
172 inline void SetUserBucket(const UserBucketDetails& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
173 inline void SetUserBucket(UserBucketDetails&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
174 inline SnapshotDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;}
175 inline SnapshotDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(std::move(value)); return *this;}
177 private:
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_deviceName;
183 bool m_deviceNameHasBeenSet = false;
184
185 double m_diskImageSize;
186 bool m_diskImageSizeHasBeenSet = false;
187
188 Aws::String m_format;
189 bool m_formatHasBeenSet = false;
190
191 Aws::String m_progress;
192 bool m_progressHasBeenSet = false;
193
194 Aws::String m_snapshotId;
195 bool m_snapshotIdHasBeenSet = false;
196
197 Aws::String m_status;
198 bool m_statusHasBeenSet = false;
199
200 Aws::String m_statusMessage;
201 bool m_statusMessageHasBeenSet = false;
202
203 Aws::String m_url;
204 bool m_urlHasBeenSet = false;
205
206 UserBucketDetails m_userBucket;
207 bool m_userBucketHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace EC2
212} // namespace Aws
void SetSnapshotId(Aws::String &&value)
void SetDiskImageSize(double value)
void SetStatus(const char *value)
void SetDeviceName(const char *value)
void SetUrl(Aws::String &&value)
void SetDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetUrl() const
void SetDescription(const Aws::String &value)
const Aws::String & GetSnapshotId() const
void SetUrl(const char *value)
const Aws::String & GetFormat() const
SnapshotDetail & WithUrl(Aws::String &&value)
void SetStatusMessage(Aws::String &&value)
SnapshotDetail & WithStatus(const Aws::String &value)
void SetDescription(Aws::String &&value)
SnapshotDetail & WithFormat(const char *value)
SnapshotDetail & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SnapshotDetail & WithUserBucket(const UserBucketDetails &value)
void SetStatusMessage(const Aws::String &value)
SnapshotDetail & WithStatusMessage(Aws::String &&value)
SnapshotDetail & WithSnapshotId(const char *value)
const UserBucketDetails & GetUserBucket() const
void SetStatusMessage(const char *value)
SnapshotDetail & WithSnapshotId(Aws::String &&value)
void SetFormat(const Aws::String &value)
void SetDeviceName(Aws::String &&value)
const Aws::String & GetDeviceName() const
SnapshotDetail & WithUrl(const char *value)
void SetFormat(Aws::String &&value)
SnapshotDetail & WithUrl(const Aws::String &value)
void SetSnapshotId(const char *value)
SnapshotDetail & WithProgress(const char *value)
void SetUserBucket(const UserBucketDetails &value)
SnapshotDetail & WithDiskImageSize(double value)
SnapshotDetail & WithStatusMessage(const char *value)
void SetUserBucket(UserBucketDetails &&value)
SnapshotDetail & WithDescription(const char *value)
void SetStatus(Aws::String &&value)
SnapshotDetail & WithStatus(const char *value)
SnapshotDetail & WithFormat(const Aws::String &value)
const Aws::String & GetStatus() const
void SetProgress(const Aws::String &value)
void SetStatus(const Aws::String &value)
SnapshotDetail & WithUserBucket(UserBucketDetails &&value)
void SetUrl(const Aws::String &value)
SnapshotDetail & WithStatusMessage(const Aws::String &value)
SnapshotDetail & WithDeviceName(const char *value)
void SetProgress(const char *value)
const Aws::String & GetProgress() const
AWS_EC2_API SnapshotDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SnapshotDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotDetail & WithStatus(Aws::String &&value)
void SetSnapshotId(const Aws::String &value)
SnapshotDetail & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
void SetDeviceName(const Aws::String &value)
SnapshotDetail & WithDeviceName(const Aws::String &value)
const Aws::String & GetStatusMessage() const
void SetFormat(const char *value)
SnapshotDetail & WithProgress(Aws::String &&value)
SnapshotDetail & WithFormat(Aws::String &&value)
SnapshotDetail & WithDeviceName(Aws::String &&value)
void SetProgress(Aws::String &&value)
SnapshotDetail & WithSnapshotId(const Aws::String &value)
SnapshotDetail & WithProgress(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