AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 SnapshotDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
61 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
62 template<typename DeviceNameT = Aws::String>
63 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
64 template<typename DeviceNameT = Aws::String>
65 SnapshotDetail& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
67
69
72 inline double GetDiskImageSize() const { return m_diskImageSize; }
73 inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; }
74 inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; }
75 inline SnapshotDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;}
77
79
82 inline const Aws::String& GetFormat() const { return m_format; }
83 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
84 template<typename FormatT = Aws::String>
85 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
86 template<typename FormatT = Aws::String>
87 SnapshotDetail& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
89
91
94 inline const Aws::String& GetProgress() const { return m_progress; }
95 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
96 template<typename ProgressT = Aws::String>
97 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
98 template<typename ProgressT = Aws::String>
99 SnapshotDetail& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
101
103
106 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
107 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
108 template<typename SnapshotIdT = Aws::String>
109 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
110 template<typename SnapshotIdT = Aws::String>
111 SnapshotDetail& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
113
115
118 inline const Aws::String& GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 template<typename StatusT = Aws::String>
121 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
122 template<typename StatusT = Aws::String>
123 SnapshotDetail& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
125
127
130 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
131 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
132 template<typename StatusMessageT = Aws::String>
133 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
134 template<typename StatusMessageT = Aws::String>
135 SnapshotDetail& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
137
139
142 inline const Aws::String& GetUrl() const { return m_url; }
143 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
144 template<typename UrlT = Aws::String>
145 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
146 template<typename UrlT = Aws::String>
147 SnapshotDetail& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
149
151
154 inline const UserBucketDetails& GetUserBucket() const { return m_userBucket; }
155 inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; }
156 template<typename UserBucketT = UserBucketDetails>
157 void SetUserBucket(UserBucketT&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::forward<UserBucketT>(value); }
158 template<typename UserBucketT = UserBucketDetails>
159 SnapshotDetail& WithUserBucket(UserBucketT&& value) { SetUserBucket(std::forward<UserBucketT>(value)); return *this;}
161 private:
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 Aws::String m_deviceName;
167 bool m_deviceNameHasBeenSet = false;
168
169 double m_diskImageSize{0.0};
170 bool m_diskImageSizeHasBeenSet = false;
171
172 Aws::String m_format;
173 bool m_formatHasBeenSet = false;
174
175 Aws::String m_progress;
176 bool m_progressHasBeenSet = false;
177
178 Aws::String m_snapshotId;
179 bool m_snapshotIdHasBeenSet = false;
180
181 Aws::String m_status;
182 bool m_statusHasBeenSet = false;
183
184 Aws::String m_statusMessage;
185 bool m_statusMessageHasBeenSet = false;
186
187 Aws::String m_url;
188 bool m_urlHasBeenSet = false;
189
190 UserBucketDetails m_userBucket;
191 bool m_userBucketHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace EC2
196} // namespace Aws
SnapshotDetail & WithStatus(StatusT &&value)
void SetDiskImageSize(double value)
void SetUserBucket(UserBucketT &&value)
SnapshotDetail & WithDeviceName(DeviceNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotDetail & WithSnapshotId(SnapshotIdT &&value)
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetUrl() const
const Aws::String & GetSnapshotId() const
const Aws::String & GetFormat() const
void SetStatus(StatusT &&value)
void SetDescription(DescriptionT &&value)
void SetFormat(FormatT &&value)
SnapshotDetail & WithUrl(UrlT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const UserBucketDetails & GetUserBucket() const
const Aws::String & GetDeviceName() const
SnapshotDetail & WithDiskImageSize(double value)
const Aws::String & GetStatus() const
AWS_EC2_API SnapshotDetail()=default
SnapshotDetail & WithProgress(ProgressT &&value)
void SetProgress(ProgressT &&value)
void SetDeviceName(DeviceNameT &&value)
const Aws::String & GetProgress() const
SnapshotDetail & WithFormat(FormatT &&value)
AWS_EC2_API SnapshotDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SnapshotDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDescription() const
void SetStatusMessage(StatusMessageT &&value)
SnapshotDetail & WithUserBucket(UserBucketT &&value)
const Aws::String & GetStatusMessage() const
SnapshotDetail & WithStatusMessage(StatusMessageT &&value)
SnapshotDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream