AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SnapshotTaskDetail.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
29 public:
30 AWS_EC2_API SnapshotTaskDetail() = default;
31 AWS_EC2_API SnapshotTaskDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
49 SnapshotTaskDetail& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline double GetDiskImageSize() const { return m_diskImageSize; }
60 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
61 inline void SetDiskImageSize(double value) {
62 m_diskImageSizeHasBeenSet = true;
63 m_diskImageSize = value;
64 }
65 inline SnapshotTaskDetail& WithDiskImageSize(double value) {
66 SetDiskImageSize(value);
67 return *this;
68 }
70
72
75 inline bool GetEncrypted() const { return m_encrypted; }
76 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
77 inline void SetEncrypted(bool value) {
78 m_encryptedHasBeenSet = true;
79 m_encrypted = value;
80 }
81 inline SnapshotTaskDetail& WithEncrypted(bool value) {
82 SetEncrypted(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetFormat() const { return m_format; }
92 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
93 template <typename FormatT = Aws::String>
94 void SetFormat(FormatT&& value) {
95 m_formatHasBeenSet = true;
96 m_format = std::forward<FormatT>(value);
97 }
98 template <typename FormatT = Aws::String>
99 SnapshotTaskDetail& WithFormat(FormatT&& value) {
100 SetFormat(std::forward<FormatT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
111 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
112 template <typename KmsKeyIdT = Aws::String>
113 void SetKmsKeyId(KmsKeyIdT&& value) {
114 m_kmsKeyIdHasBeenSet = true;
115 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
116 }
117 template <typename KmsKeyIdT = Aws::String>
118 SnapshotTaskDetail& WithKmsKeyId(KmsKeyIdT&& value) {
119 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetProgress() const { return m_progress; }
129 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
130 template <typename ProgressT = Aws::String>
131 void SetProgress(ProgressT&& value) {
132 m_progressHasBeenSet = true;
133 m_progress = std::forward<ProgressT>(value);
134 }
135 template <typename ProgressT = Aws::String>
136 SnapshotTaskDetail& WithProgress(ProgressT&& value) {
137 SetProgress(std::forward<ProgressT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
147 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
148 template <typename SnapshotIdT = Aws::String>
149 void SetSnapshotId(SnapshotIdT&& value) {
150 m_snapshotIdHasBeenSet = true;
151 m_snapshotId = std::forward<SnapshotIdT>(value);
152 }
153 template <typename SnapshotIdT = Aws::String>
154 SnapshotTaskDetail& WithSnapshotId(SnapshotIdT&& value) {
155 SetSnapshotId(std::forward<SnapshotIdT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetStatus() const { return m_status; }
165 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
166 template <typename StatusT = Aws::String>
167 void SetStatus(StatusT&& value) {
168 m_statusHasBeenSet = true;
169 m_status = std::forward<StatusT>(value);
170 }
171 template <typename StatusT = Aws::String>
172 SnapshotTaskDetail& WithStatus(StatusT&& value) {
173 SetStatus(std::forward<StatusT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
183 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
184 template <typename StatusMessageT = Aws::String>
185 void SetStatusMessage(StatusMessageT&& value) {
186 m_statusMessageHasBeenSet = true;
187 m_statusMessage = std::forward<StatusMessageT>(value);
188 }
189 template <typename StatusMessageT = Aws::String>
190 SnapshotTaskDetail& WithStatusMessage(StatusMessageT&& value) {
191 SetStatusMessage(std::forward<StatusMessageT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetUrl() const { return m_url; }
201 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
202 template <typename UrlT = Aws::String>
203 void SetUrl(UrlT&& value) {
204 m_urlHasBeenSet = true;
205 m_url = std::forward<UrlT>(value);
206 }
207 template <typename UrlT = Aws::String>
209 SetUrl(std::forward<UrlT>(value));
210 return *this;
211 }
213
215
218 inline const UserBucketDetails& GetUserBucket() const { return m_userBucket; }
219 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
220 template <typename UserBucketT = UserBucketDetails>
221 void SetUserBucket(UserBucketT&& value) {
222 m_userBucketHasBeenSet = true;
223 m_userBucket = std::forward<UserBucketT>(value);
224 }
225 template <typename UserBucketT = UserBucketDetails>
226 SnapshotTaskDetail& WithUserBucket(UserBucketT&& value) {
227 SetUserBucket(std::forward<UserBucketT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_description;
233
234 double m_diskImageSize{0.0};
235
236 bool m_encrypted{false};
237
238 Aws::String m_format;
239
240 Aws::String m_kmsKeyId;
241
242 Aws::String m_progress;
243
244 Aws::String m_snapshotId;
245
246 Aws::String m_status;
247
248 Aws::String m_statusMessage;
249
250 Aws::String m_url;
251
252 UserBucketDetails m_userBucket;
253 bool m_descriptionHasBeenSet = false;
254 bool m_diskImageSizeHasBeenSet = false;
255 bool m_encryptedHasBeenSet = false;
256 bool m_formatHasBeenSet = false;
257 bool m_kmsKeyIdHasBeenSet = false;
258 bool m_progressHasBeenSet = false;
259 bool m_snapshotIdHasBeenSet = false;
260 bool m_statusHasBeenSet = false;
261 bool m_statusMessageHasBeenSet = false;
262 bool m_urlHasBeenSet = false;
263 bool m_userBucketHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace EC2
268} // namespace Aws
const Aws::String & GetStatus() const
SnapshotTaskDetail & WithUrl(UrlT &&value)
SnapshotTaskDetail & WithEncrypted(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotTaskDetail & WithDiskImageSize(double value)
void SetUserBucket(UserBucketT &&value)
void SetStatusMessage(StatusMessageT &&value)
AWS_EC2_API SnapshotTaskDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetProgress() const
AWS_EC2_API SnapshotTaskDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetUrl() const
const UserBucketDetails & GetUserBucket() const
SnapshotTaskDetail & WithProgress(ProgressT &&value)
SnapshotTaskDetail & WithFormat(FormatT &&value)
const Aws::String & GetSnapshotId() const
SnapshotTaskDetail & WithStatusMessage(StatusMessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDescription() const
const Aws::String & GetKmsKeyId() const
SnapshotTaskDetail & WithUserBucket(UserBucketT &&value)
AWS_EC2_API SnapshotTaskDetail()=default
const Aws::String & GetStatusMessage() const
SnapshotTaskDetail & WithKmsKeyId(KmsKeyIdT &&value)
SnapshotTaskDetail & WithStatus(StatusT &&value)
const Aws::String & GetFormat() const
void SetDescription(DescriptionT &&value)
SnapshotTaskDetail & WithDescription(DescriptionT &&value)
SnapshotTaskDetail & WithSnapshotId(SnapshotIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream