AWS SDK for C++

AWS SDK for C++ Version 1.11.605

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() = default;
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 template<typename DescriptionT = Aws::String>
50 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
51 template<typename DescriptionT = Aws::String>
52 SnapshotTaskDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
54
56
59 inline double GetDiskImageSize() const { return m_diskImageSize; }
60 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
61 inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
62 inline SnapshotTaskDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
64
66
69 inline bool GetEncrypted() const { return m_encrypted; }
70 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
71 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
72 inline SnapshotTaskDetail& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
74
76
79 inline const Aws::String& GetFormat() const { return m_format; }
80 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
81 template<typename FormatT = Aws::String>
82 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
83 template<typename FormatT = Aws::String>
84 SnapshotTaskDetail& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
86
88
92 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
93 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
94 template<typename KmsKeyIdT = Aws::String>
95 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
96 template<typename KmsKeyIdT = Aws::String>
97 SnapshotTaskDetail& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
99
101
104 inline const Aws::String& GetProgress() const { return m_progress; }
105 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
106 template<typename ProgressT = Aws::String>
107 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
108 template<typename ProgressT = Aws::String>
109 SnapshotTaskDetail& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
111
113
116 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
117 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
118 template<typename SnapshotIdT = Aws::String>
119 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
120 template<typename SnapshotIdT = Aws::String>
121 SnapshotTaskDetail& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
123
125
128 inline const Aws::String& GetStatus() const { return m_status; }
129 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 template<typename StatusT = Aws::String>
131 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
132 template<typename StatusT = Aws::String>
133 SnapshotTaskDetail& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
135
137
140 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
141 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
142 template<typename StatusMessageT = Aws::String>
143 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
144 template<typename StatusMessageT = Aws::String>
145 SnapshotTaskDetail& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
147
149
152 inline const Aws::String& GetUrl() const { return m_url; }
153 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
154 template<typename UrlT = Aws::String>
155 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
156 template<typename UrlT = Aws::String>
157 SnapshotTaskDetail& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
159
161
164 inline const UserBucketDetails& GetUserBucket() const { return m_userBucket; }
165 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
166 template<typename UserBucketT = UserBucketDetails>
167 void SetUserBucket(UserBucketT&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::forward<UserBucketT>(value); }
168 template<typename UserBucketT = UserBucketDetails>
169 SnapshotTaskDetail& WithUserBucket(UserBucketT&& value) { SetUserBucket(std::forward<UserBucketT>(value)); return *this;}
171 private:
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 double m_diskImageSize{0.0};
177 bool m_diskImageSizeHasBeenSet = false;
178
179 bool m_encrypted{false};
180 bool m_encryptedHasBeenSet = false;
181
182 Aws::String m_format;
183 bool m_formatHasBeenSet = false;
184
185 Aws::String m_kmsKeyId;
186 bool m_kmsKeyIdHasBeenSet = false;
187
188 Aws::String m_progress;
189 bool m_progressHasBeenSet = false;
190
191 Aws::String m_snapshotId;
192 bool m_snapshotIdHasBeenSet = false;
193
194 Aws::String m_status;
195 bool m_statusHasBeenSet = false;
196
197 Aws::String m_statusMessage;
198 bool m_statusMessageHasBeenSet = false;
199
200 Aws::String m_url;
201 bool m_urlHasBeenSet = false;
202
203 UserBucketDetails m_userBucket;
204 bool m_userBucketHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EC2
209} // 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