AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SnapshotTierStatus.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/SnapshotState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/StorageTier.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ec2/model/TieringOperationStatus.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_EC2_API SnapshotTierStatus() = default;
42 AWS_EC2_API SnapshotTierStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
54 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
55 template<typename SnapshotIdT = Aws::String>
56 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
57 template<typename SnapshotIdT = Aws::String>
58 SnapshotTierStatus& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
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) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
69 template<typename VolumeIdT = Aws::String>
70 SnapshotTierStatus& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
72
74
77 inline SnapshotState GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(SnapshotState value) { m_statusHasBeenSet = true; m_status = value; }
80 inline SnapshotTierStatus& WithStatus(SnapshotState value) { SetStatus(value); return *this;}
82
84
87 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
88 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
89 template<typename OwnerIdT = Aws::String>
90 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
91 template<typename OwnerIdT = Aws::String>
92 SnapshotTierStatus& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
94
96
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 SnapshotTierStatus& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 SnapshotTierStatus& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108
110
116 inline StorageTier GetStorageTier() const { return m_storageTier; }
117 inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; }
118 inline void SetStorageTier(StorageTier value) { m_storageTierHasBeenSet = true; m_storageTier = value; }
119 inline SnapshotTierStatus& WithStorageTier(StorageTier value) { SetStorageTier(value); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastTieringStartTime() const { return m_lastTieringStartTime; }
127 inline bool LastTieringStartTimeHasBeenSet() const { return m_lastTieringStartTimeHasBeenSet; }
128 template<typename LastTieringStartTimeT = Aws::Utils::DateTime>
129 void SetLastTieringStartTime(LastTieringStartTimeT&& value) { m_lastTieringStartTimeHasBeenSet = true; m_lastTieringStartTime = std::forward<LastTieringStartTimeT>(value); }
130 template<typename LastTieringStartTimeT = Aws::Utils::DateTime>
131 SnapshotTierStatus& WithLastTieringStartTime(LastTieringStartTimeT&& value) { SetLastTieringStartTime(std::forward<LastTieringStartTimeT>(value)); return *this;}
133
135
138 inline int GetLastTieringProgress() const { return m_lastTieringProgress; }
139 inline bool LastTieringProgressHasBeenSet() const { return m_lastTieringProgressHasBeenSet; }
140 inline void SetLastTieringProgress(int value) { m_lastTieringProgressHasBeenSet = true; m_lastTieringProgress = value; }
141 inline SnapshotTierStatus& WithLastTieringProgress(int value) { SetLastTieringProgress(value); return *this;}
143
145
148 inline TieringOperationStatus GetLastTieringOperationStatus() const { return m_lastTieringOperationStatus; }
149 inline bool LastTieringOperationStatusHasBeenSet() const { return m_lastTieringOperationStatusHasBeenSet; }
150 inline void SetLastTieringOperationStatus(TieringOperationStatus value) { m_lastTieringOperationStatusHasBeenSet = true; m_lastTieringOperationStatus = value; }
153
155
158 inline const Aws::String& GetLastTieringOperationStatusDetail() const { return m_lastTieringOperationStatusDetail; }
159 inline bool LastTieringOperationStatusDetailHasBeenSet() const { return m_lastTieringOperationStatusDetailHasBeenSet; }
160 template<typename LastTieringOperationStatusDetailT = Aws::String>
161 void SetLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT&& value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail = std::forward<LastTieringOperationStatusDetailT>(value); }
162 template<typename LastTieringOperationStatusDetailT = Aws::String>
163 SnapshotTierStatus& WithLastTieringOperationStatusDetail(LastTieringOperationStatusDetailT&& value) { SetLastTieringOperationStatusDetail(std::forward<LastTieringOperationStatusDetailT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetArchivalCompleteTime() const { return m_archivalCompleteTime; }
171 inline bool ArchivalCompleteTimeHasBeenSet() const { return m_archivalCompleteTimeHasBeenSet; }
172 template<typename ArchivalCompleteTimeT = Aws::Utils::DateTime>
173 void SetArchivalCompleteTime(ArchivalCompleteTimeT&& value) { m_archivalCompleteTimeHasBeenSet = true; m_archivalCompleteTime = std::forward<ArchivalCompleteTimeT>(value); }
174 template<typename ArchivalCompleteTimeT = Aws::Utils::DateTime>
175 SnapshotTierStatus& WithArchivalCompleteTime(ArchivalCompleteTimeT&& value) { SetArchivalCompleteTime(std::forward<ArchivalCompleteTimeT>(value)); return *this;}
177
179
184 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const { return m_restoreExpiryTime; }
185 inline bool RestoreExpiryTimeHasBeenSet() const { return m_restoreExpiryTimeHasBeenSet; }
186 template<typename RestoreExpiryTimeT = Aws::Utils::DateTime>
187 void SetRestoreExpiryTime(RestoreExpiryTimeT&& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value); }
188 template<typename RestoreExpiryTimeT = Aws::Utils::DateTime>
189 SnapshotTierStatus& WithRestoreExpiryTime(RestoreExpiryTimeT&& value) { SetRestoreExpiryTime(std::forward<RestoreExpiryTimeT>(value)); return *this;}
191 private:
192
193 Aws::String m_snapshotId;
194 bool m_snapshotIdHasBeenSet = false;
195
196 Aws::String m_volumeId;
197 bool m_volumeIdHasBeenSet = false;
198
200 bool m_statusHasBeenSet = false;
201
202 Aws::String m_ownerId;
203 bool m_ownerIdHasBeenSet = false;
204
205 Aws::Vector<Tag> m_tags;
206 bool m_tagsHasBeenSet = false;
207
208 StorageTier m_storageTier{StorageTier::NOT_SET};
209 bool m_storageTierHasBeenSet = false;
210
211 Aws::Utils::DateTime m_lastTieringStartTime{};
212 bool m_lastTieringStartTimeHasBeenSet = false;
213
214 int m_lastTieringProgress{0};
215 bool m_lastTieringProgressHasBeenSet = false;
216
217 TieringOperationStatus m_lastTieringOperationStatus{TieringOperationStatus::NOT_SET};
218 bool m_lastTieringOperationStatusHasBeenSet = false;
219
220 Aws::String m_lastTieringOperationStatusDetail;
221 bool m_lastTieringOperationStatusDetailHasBeenSet = false;
222
223 Aws::Utils::DateTime m_archivalCompleteTime{};
224 bool m_archivalCompleteTimeHasBeenSet = false;
225
226 Aws::Utils::DateTime m_restoreExpiryTime{};
227 bool m_restoreExpiryTimeHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace EC2
232} // 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