AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SnapshotTierStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/SnapshotState.h>
13#include <aws/ec2/model/StorageTier.h>
14#include <aws/ec2/model/Tag.h>
15#include <aws/ec2/model/TieringOperationStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
27
35 public:
36 AWS_EC2_API SnapshotTierStatus() = default;
37 AWS_EC2_API SnapshotTierStatus(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
44
47 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
48 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
49 template <typename SnapshotIdT = Aws::String>
50 void SetSnapshotId(SnapshotIdT&& value) {
51 m_snapshotIdHasBeenSet = true;
52 m_snapshotId = std::forward<SnapshotIdT>(value);
53 }
54 template <typename SnapshotIdT = Aws::String>
55 SnapshotTierStatus& WithSnapshotId(SnapshotIdT&& value) {
56 SetSnapshotId(std::forward<SnapshotIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
66 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
67 template <typename VolumeIdT = Aws::String>
68 void SetVolumeId(VolumeIdT&& value) {
69 m_volumeIdHasBeenSet = true;
70 m_volumeId = std::forward<VolumeIdT>(value);
71 }
72 template <typename VolumeIdT = Aws::String>
73 SnapshotTierStatus& WithVolumeId(VolumeIdT&& value) {
74 SetVolumeId(std::forward<VolumeIdT>(value));
75 return *this;
76 }
78
80
83 inline SnapshotState GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(SnapshotState value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
100 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
101 template <typename OwnerIdT = Aws::String>
102 void SetOwnerId(OwnerIdT&& value) {
103 m_ownerIdHasBeenSet = true;
104 m_ownerId = std::forward<OwnerIdT>(value);
105 }
106 template <typename OwnerIdT = Aws::String>
107 SnapshotTierStatus& WithOwnerId(OwnerIdT&& value) {
108 SetOwnerId(std::forward<OwnerIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Vector<Tag>>
125 SnapshotTierStatus& WithTags(TagsT&& value) {
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsT = Tag>
130 SnapshotTierStatus& AddTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace_back(std::forward<TagsT>(value));
133 return *this;
134 }
136
138
144 inline StorageTier GetStorageTier() const { return m_storageTier; }
145 inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; }
146 inline void SetStorageTier(StorageTier value) {
147 m_storageTierHasBeenSet = true;
148 m_storageTier = value;
149 }
151 SetStorageTier(value);
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetLastTieringStartTime() const { return m_lastTieringStartTime; }
161 inline bool LastTieringStartTimeHasBeenSet() const { return m_lastTieringStartTimeHasBeenSet; }
162 template <typename LastTieringStartTimeT = Aws::Utils::DateTime>
163 void SetLastTieringStartTime(LastTieringStartTimeT&& value) {
164 m_lastTieringStartTimeHasBeenSet = true;
165 m_lastTieringStartTime = std::forward<LastTieringStartTimeT>(value);
166 }
167 template <typename LastTieringStartTimeT = Aws::Utils::DateTime>
168 SnapshotTierStatus& WithLastTieringStartTime(LastTieringStartTimeT&& value) {
169 SetLastTieringStartTime(std::forward<LastTieringStartTimeT>(value));
170 return *this;
171 }
173
175
178 inline int GetLastTieringProgress() const { return m_lastTieringProgress; }
179 inline bool LastTieringProgressHasBeenSet() const { return m_lastTieringProgressHasBeenSet; }
180 inline void SetLastTieringProgress(int value) {
181 m_lastTieringProgressHasBeenSet = true;
182 m_lastTieringProgress = value;
183 }
186 return *this;
187 }
189
191
194 inline TieringOperationStatus GetLastTieringOperationStatus() const { return m_lastTieringOperationStatus; }
195 inline bool LastTieringOperationStatusHasBeenSet() const { return m_lastTieringOperationStatusHasBeenSet; }
197 m_lastTieringOperationStatusHasBeenSet = true;
198 m_lastTieringOperationStatus = value;
199 }
202 return *this;
203 }
205
207
210 inline const Aws::String& GetLastTieringOperationStatusDetail() const { return m_lastTieringOperationStatusDetail; }
211 inline bool LastTieringOperationStatusDetailHasBeenSet() const { return m_lastTieringOperationStatusDetailHasBeenSet; }
212 template <typename LastTieringOperationStatusDetailT = Aws::String>
213 void SetLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT&& value) {
214 m_lastTieringOperationStatusDetailHasBeenSet = true;
215 m_lastTieringOperationStatusDetail = std::forward<LastTieringOperationStatusDetailT>(value);
216 }
217 template <typename LastTieringOperationStatusDetailT = Aws::String>
218 SnapshotTierStatus& WithLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT&& value) {
219 SetLastTieringOperationStatusDetail(std::forward<LastTieringOperationStatusDetailT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetArchivalCompleteTime() const { return m_archivalCompleteTime; }
229 inline bool ArchivalCompleteTimeHasBeenSet() const { return m_archivalCompleteTimeHasBeenSet; }
230 template <typename ArchivalCompleteTimeT = Aws::Utils::DateTime>
231 void SetArchivalCompleteTime(ArchivalCompleteTimeT&& value) {
232 m_archivalCompleteTimeHasBeenSet = true;
233 m_archivalCompleteTime = std::forward<ArchivalCompleteTimeT>(value);
234 }
235 template <typename ArchivalCompleteTimeT = Aws::Utils::DateTime>
236 SnapshotTierStatus& WithArchivalCompleteTime(ArchivalCompleteTimeT&& value) {
237 SetArchivalCompleteTime(std::forward<ArchivalCompleteTimeT>(value));
238 return *this;
239 }
241
243
248 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const { return m_restoreExpiryTime; }
249 inline bool RestoreExpiryTimeHasBeenSet() const { return m_restoreExpiryTimeHasBeenSet; }
250 template <typename RestoreExpiryTimeT = Aws::Utils::DateTime>
251 void SetRestoreExpiryTime(RestoreExpiryTimeT&& value) {
252 m_restoreExpiryTimeHasBeenSet = true;
253 m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value);
254 }
255 template <typename RestoreExpiryTimeT = Aws::Utils::DateTime>
256 SnapshotTierStatus& WithRestoreExpiryTime(RestoreExpiryTimeT&& value) {
257 SetRestoreExpiryTime(std::forward<RestoreExpiryTimeT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_snapshotId;
263
264 Aws::String m_volumeId;
265
267
268 Aws::String m_ownerId;
269
270 Aws::Vector<Tag> m_tags;
271
272 StorageTier m_storageTier{StorageTier::NOT_SET};
273
274 Aws::Utils::DateTime m_lastTieringStartTime{};
275
276 int m_lastTieringProgress{0};
277
278 TieringOperationStatus m_lastTieringOperationStatus{TieringOperationStatus::NOT_SET};
279
280 Aws::String m_lastTieringOperationStatusDetail;
281
282 Aws::Utils::DateTime m_archivalCompleteTime{};
283
284 Aws::Utils::DateTime m_restoreExpiryTime{};
285 bool m_snapshotIdHasBeenSet = false;
286 bool m_volumeIdHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_ownerIdHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290 bool m_storageTierHasBeenSet = false;
291 bool m_lastTieringStartTimeHasBeenSet = false;
292 bool m_lastTieringProgressHasBeenSet = false;
293 bool m_lastTieringOperationStatusHasBeenSet = false;
294 bool m_lastTieringOperationStatusDetailHasBeenSet = false;
295 bool m_archivalCompleteTimeHasBeenSet = false;
296 bool m_restoreExpiryTimeHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace EC2
301} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetRestoreExpiryTime(RestoreExpiryTimeT &&value)
AWS_EC2_API SnapshotTierStatus()=default
SnapshotTierStatus & WithLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT &&value)
SnapshotTierStatus & AddTags(TagsT &&value)
SnapshotTierStatus & WithLastTieringProgress(int value)
const Aws::String & GetVolumeId() const
SnapshotTierStatus & WithStatus(SnapshotState value)
void SetLastTieringStartTime(LastTieringStartTimeT &&value)
AWS_EC2_API SnapshotTierStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotTierStatus & WithLastTieringStartTime(LastTieringStartTimeT &&value)
void SetLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT &&value)
TieringOperationStatus GetLastTieringOperationStatus() const
SnapshotTierStatus & WithStorageTier(StorageTier value)
void SetStatus(SnapshotState value)
SnapshotTierStatus & WithTags(TagsT &&value)
SnapshotTierStatus & WithRestoreExpiryTime(RestoreExpiryTimeT &&value)
AWS_EC2_API SnapshotTierStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotTierStatus & WithVolumeId(VolumeIdT &&value)
SnapshotTierStatus & WithLastTieringOperationStatus(TieringOperationStatus value)
const Aws::String & GetOwnerId() const
void SetSnapshotId(SnapshotIdT &&value)
SnapshotTierStatus & WithSnapshotId(SnapshotIdT &&value)
void SetArchivalCompleteTime(ArchivalCompleteTimeT &&value)
SnapshotTierStatus & WithArchivalCompleteTime(ArchivalCompleteTimeT &&value)
const Aws::Vector< Tag > & GetTags() const
SnapshotTierStatus & WithOwnerId(OwnerIdT &&value)
const Aws::String & GetLastTieringOperationStatusDetail() const
const Aws::Utils::DateTime & GetLastTieringStartTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSnapshotId() const
void SetLastTieringOperationStatus(TieringOperationStatus value)
const Aws::Utils::DateTime & GetArchivalCompleteTime() const
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream