AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapshotTaskDetail.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
33 {
34 public:
35 AWS_EC2_API SnapshotTaskDetail();
36 AWS_EC2_API SnapshotTaskDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline SnapshotTaskDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline SnapshotTaskDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline SnapshotTaskDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
61 inline double GetDiskImageSize() const{ return m_diskImageSize; }
62 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
63 inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
64 inline SnapshotTaskDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
66
68
71 inline bool GetEncrypted() const{ return m_encrypted; }
72 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
73 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
74 inline SnapshotTaskDetail& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
76
78
81 inline const Aws::String& GetFormat() const{ return m_format; }
82 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
83 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
84 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
85 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
86 inline SnapshotTaskDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
87 inline SnapshotTaskDetail& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
88 inline SnapshotTaskDetail& WithFormat(const char* value) { SetFormat(value); return *this;}
90
92
96 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
97 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
98 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
99 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
100 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
101 inline SnapshotTaskDetail& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
102 inline SnapshotTaskDetail& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
103 inline SnapshotTaskDetail& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
105
107
110 inline const Aws::String& GetProgress() const{ return m_progress; }
111 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
112 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
113 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
114 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
115 inline SnapshotTaskDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
116 inline SnapshotTaskDetail& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
117 inline SnapshotTaskDetail& WithProgress(const char* value) { SetProgress(value); return *this;}
119
121
124 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
125 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
126 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
127 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
128 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
129 inline SnapshotTaskDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
130 inline SnapshotTaskDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
131 inline SnapshotTaskDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
133
135
138 inline const Aws::String& GetStatus() const{ return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
141 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
142 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
143 inline SnapshotTaskDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
144 inline SnapshotTaskDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
145 inline SnapshotTaskDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
147
149
152 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
153 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
154 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
155 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
156 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
157 inline SnapshotTaskDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
158 inline SnapshotTaskDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
159 inline SnapshotTaskDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
161
163
166 inline const Aws::String& GetUrl() const{ return m_url; }
167 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
168 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
169 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
170 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
171 inline SnapshotTaskDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
172 inline SnapshotTaskDetail& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
173 inline SnapshotTaskDetail& WithUrl(const char* value) { SetUrl(value); return *this;}
175
177
180 inline const UserBucketDetails& GetUserBucket() const{ return m_userBucket; }
181 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
182 inline void SetUserBucket(const UserBucketDetails& value) { m_userBucketHasBeenSet = true; m_userBucket = value; }
183 inline void SetUserBucket(UserBucketDetails&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); }
184 inline SnapshotTaskDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;}
185 inline SnapshotTaskDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(std::move(value)); return *this;}
187 private:
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 double m_diskImageSize;
193 bool m_diskImageSizeHasBeenSet = false;
194
195 bool m_encrypted;
196 bool m_encryptedHasBeenSet = false;
197
198 Aws::String m_format;
199 bool m_formatHasBeenSet = false;
200
201 Aws::String m_kmsKeyId;
202 bool m_kmsKeyIdHasBeenSet = false;
203
204 Aws::String m_progress;
205 bool m_progressHasBeenSet = false;
206
207 Aws::String m_snapshotId;
208 bool m_snapshotIdHasBeenSet = false;
209
210 Aws::String m_status;
211 bool m_statusHasBeenSet = false;
212
213 Aws::String m_statusMessage;
214 bool m_statusMessageHasBeenSet = false;
215
216 Aws::String m_url;
217 bool m_urlHasBeenSet = false;
218
219 UserBucketDetails m_userBucket;
220 bool m_userBucketHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace EC2
225} // namespace Aws
SnapshotTaskDetail & WithUrl(const char *value)
void SetSnapshotId(Aws::String &&value)
SnapshotTaskDetail & WithUrl(const Aws::String &value)
SnapshotTaskDetail & WithKmsKeyId(const Aws::String &value)
void SetFormat(const Aws::String &value)
const Aws::String & GetStatus() const
SnapshotTaskDetail & WithDescription(Aws::String &&value)
SnapshotTaskDetail & WithEncrypted(bool value)
void SetProgress(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotTaskDetail & WithKmsKeyId(const char *value)
SnapshotTaskDetail & WithDescription(const char *value)
SnapshotTaskDetail & WithProgress(const char *value)
SnapshotTaskDetail & WithDiskImageSize(double value)
void SetProgress(const Aws::String &value)
void SetUserBucket(const UserBucketDetails &value)
AWS_EC2_API SnapshotTaskDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetProgress() const
SnapshotTaskDetail & WithUrl(Aws::String &&value)
SnapshotTaskDetail & WithStatus(Aws::String &&value)
AWS_EC2_API SnapshotTaskDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKmsKeyId(Aws::String &&value)
SnapshotTaskDetail & WithProgress(const Aws::String &value)
void SetDescription(const Aws::String &value)
SnapshotTaskDetail & WithProgress(Aws::String &&value)
void SetSnapshotId(const Aws::String &value)
const Aws::String & GetUrl() const
const UserBucketDetails & GetUserBucket() const
SnapshotTaskDetail & WithUserBucket(UserBucketDetails &&value)
SnapshotTaskDetail & WithFormat(const char *value)
const Aws::String & GetSnapshotId() const
SnapshotTaskDetail & WithStatus(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SnapshotTaskDetail & WithStatusMessage(const char *value)
const Aws::String & GetDescription() const
const Aws::String & GetKmsKeyId() const
SnapshotTaskDetail & WithFormat(Aws::String &&value)
void SetFormat(Aws::String &&value)
SnapshotTaskDetail & WithUserBucket(const UserBucketDetails &value)
SnapshotTaskDetail & WithSnapshotId(const Aws::String &value)
void SetStatusMessage(const Aws::String &value)
SnapshotTaskDetail & WithKmsKeyId(Aws::String &&value)
void SetUrl(const Aws::String &value)
SnapshotTaskDetail & WithStatusMessage(const Aws::String &value)
void SetStatus(const Aws::String &value)
SnapshotTaskDetail & WithStatusMessage(Aws::String &&value)
SnapshotTaskDetail & WithStatus(const Aws::String &value)
void SetUserBucket(UserBucketDetails &&value)
const Aws::String & GetStatusMessage() const
void SetKmsKeyId(const Aws::String &value)
SnapshotTaskDetail & WithSnapshotId(const char *value)
void SetStatusMessage(Aws::String &&value)
SnapshotTaskDetail & WithSnapshotId(Aws::String &&value)
SnapshotTaskDetail & WithFormat(const Aws::String &value)
const Aws::String & GetFormat() const
void SetDescription(Aws::String &&value)
SnapshotTaskDetail & WithDescription(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