AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
56 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
57 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
58 inline SnapshotTierStatus& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
59 inline SnapshotTierStatus& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
60 inline SnapshotTierStatus& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
62
64
67 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
68 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
69 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
70 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
71 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
72 inline SnapshotTierStatus& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
73 inline SnapshotTierStatus& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
74 inline SnapshotTierStatus& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
76
78
81 inline const SnapshotState& GetStatus() const{ return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(const SnapshotState& value) { m_statusHasBeenSet = true; m_status = value; }
84 inline void SetStatus(SnapshotState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
85 inline SnapshotTierStatus& WithStatus(const SnapshotState& value) { SetStatus(value); return *this;}
86 inline SnapshotTierStatus& WithStatus(SnapshotState&& value) { SetStatus(std::move(value)); return *this;}
88
90
93 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
94 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
95 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
96 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
97 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
98 inline SnapshotTierStatus& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
99 inline SnapshotTierStatus& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
100 inline SnapshotTierStatus& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
102
104
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline SnapshotTierStatus& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline SnapshotTierStatus& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline SnapshotTierStatus& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline SnapshotTierStatus& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116
118
124 inline const StorageTier& GetStorageTier() const{ return m_storageTier; }
125 inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; }
126 inline void SetStorageTier(const StorageTier& value) { m_storageTierHasBeenSet = true; m_storageTier = value; }
127 inline void SetStorageTier(StorageTier&& value) { m_storageTierHasBeenSet = true; m_storageTier = std::move(value); }
128 inline SnapshotTierStatus& WithStorageTier(const StorageTier& value) { SetStorageTier(value); return *this;}
129 inline SnapshotTierStatus& WithStorageTier(StorageTier&& value) { SetStorageTier(std::move(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetLastTieringStartTime() const{ return m_lastTieringStartTime; }
137 inline bool LastTieringStartTimeHasBeenSet() const { return m_lastTieringStartTimeHasBeenSet; }
138 inline void SetLastTieringStartTime(const Aws::Utils::DateTime& value) { m_lastTieringStartTimeHasBeenSet = true; m_lastTieringStartTime = value; }
139 inline void SetLastTieringStartTime(Aws::Utils::DateTime&& value) { m_lastTieringStartTimeHasBeenSet = true; m_lastTieringStartTime = std::move(value); }
143
145
148 inline int GetLastTieringProgress() const{ return m_lastTieringProgress; }
149 inline bool LastTieringProgressHasBeenSet() const { return m_lastTieringProgressHasBeenSet; }
150 inline void SetLastTieringProgress(int value) { m_lastTieringProgressHasBeenSet = true; m_lastTieringProgress = value; }
151 inline SnapshotTierStatus& WithLastTieringProgress(int value) { SetLastTieringProgress(value); return *this;}
153
155
158 inline const TieringOperationStatus& GetLastTieringOperationStatus() const{ return m_lastTieringOperationStatus; }
159 inline bool LastTieringOperationStatusHasBeenSet() const { return m_lastTieringOperationStatusHasBeenSet; }
160 inline void SetLastTieringOperationStatus(const TieringOperationStatus& value) { m_lastTieringOperationStatusHasBeenSet = true; m_lastTieringOperationStatus = value; }
161 inline void SetLastTieringOperationStatus(TieringOperationStatus&& value) { m_lastTieringOperationStatusHasBeenSet = true; m_lastTieringOperationStatus = std::move(value); }
165
167
170 inline const Aws::String& GetLastTieringOperationStatusDetail() const{ return m_lastTieringOperationStatusDetail; }
171 inline bool LastTieringOperationStatusDetailHasBeenSet() const { return m_lastTieringOperationStatusDetailHasBeenSet; }
172 inline void SetLastTieringOperationStatusDetail(const Aws::String& value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail = value; }
173 inline void SetLastTieringOperationStatusDetail(Aws::String&& value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail = std::move(value); }
174 inline void SetLastTieringOperationStatusDetail(const char* value) { m_lastTieringOperationStatusDetailHasBeenSet = true; m_lastTieringOperationStatusDetail.assign(value); }
179
181
184 inline const Aws::Utils::DateTime& GetArchivalCompleteTime() const{ return m_archivalCompleteTime; }
185 inline bool ArchivalCompleteTimeHasBeenSet() const { return m_archivalCompleteTimeHasBeenSet; }
186 inline void SetArchivalCompleteTime(const Aws::Utils::DateTime& value) { m_archivalCompleteTimeHasBeenSet = true; m_archivalCompleteTime = value; }
187 inline void SetArchivalCompleteTime(Aws::Utils::DateTime&& value) { m_archivalCompleteTimeHasBeenSet = true; m_archivalCompleteTime = std::move(value); }
191
193
198 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const{ return m_restoreExpiryTime; }
199 inline bool RestoreExpiryTimeHasBeenSet() const { return m_restoreExpiryTimeHasBeenSet; }
200 inline void SetRestoreExpiryTime(const Aws::Utils::DateTime& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = value; }
201 inline void SetRestoreExpiryTime(Aws::Utils::DateTime&& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = std::move(value); }
203 inline SnapshotTierStatus& WithRestoreExpiryTime(Aws::Utils::DateTime&& value) { SetRestoreExpiryTime(std::move(value)); return *this;}
205 private:
206
207 Aws::String m_snapshotId;
208 bool m_snapshotIdHasBeenSet = false;
209
210 Aws::String m_volumeId;
211 bool m_volumeIdHasBeenSet = false;
212
213 SnapshotState m_status;
214 bool m_statusHasBeenSet = false;
215
216 Aws::String m_ownerId;
217 bool m_ownerIdHasBeenSet = false;
218
219 Aws::Vector<Tag> m_tags;
220 bool m_tagsHasBeenSet = false;
221
222 StorageTier m_storageTier;
223 bool m_storageTierHasBeenSet = false;
224
225 Aws::Utils::DateTime m_lastTieringStartTime;
226 bool m_lastTieringStartTimeHasBeenSet = false;
227
228 int m_lastTieringProgress;
229 bool m_lastTieringProgressHasBeenSet = false;
230
231 TieringOperationStatus m_lastTieringOperationStatus;
232 bool m_lastTieringOperationStatusHasBeenSet = false;
233
234 Aws::String m_lastTieringOperationStatusDetail;
235 bool m_lastTieringOperationStatusDetailHasBeenSet = false;
236
237 Aws::Utils::DateTime m_archivalCompleteTime;
238 bool m_archivalCompleteTimeHasBeenSet = false;
239
240 Aws::Utils::DateTime m_restoreExpiryTime;
241 bool m_restoreExpiryTimeHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace EC2
246} // namespace Aws
const StorageTier & GetStorageTier() const
SnapshotTierStatus & WithStorageTier(const StorageTier &value)
SnapshotTierStatus & WithLastTieringOperationStatus(const TieringOperationStatus &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLastTieringOperationStatusDetail(const char *value)
SnapshotTierStatus & WithLastTieringOperationStatusDetail(Aws::String &&value)
SnapshotTierStatus & WithRestoreExpiryTime(const Aws::Utils::DateTime &value)
SnapshotTierStatus & WithVolumeId(Aws::String &&value)
void SetStorageTier(const StorageTier &value)
SnapshotTierStatus & WithVolumeId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetRestoreExpiryTime(Aws::Utils::DateTime &&value)
SnapshotTierStatus & WithLastTieringProgress(int value)
void SetVolumeId(Aws::String &&value)
void SetLastTieringOperationStatus(const TieringOperationStatus &value)
void SetStatus(SnapshotState &&value)
const Aws::String & GetVolumeId() const
void SetSnapshotId(const Aws::String &value)
SnapshotTierStatus & WithVolumeId(const char *value)
SnapshotTierStatus & AddTags(const Tag &value)
void SetStatus(const SnapshotState &value)
SnapshotTierStatus & WithSnapshotId(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
SnapshotTierStatus & WithLastTieringOperationStatusDetail(const Aws::String &value)
SnapshotTierStatus & WithSnapshotId(const char *value)
void SetStorageTier(StorageTier &&value)
const TieringOperationStatus & GetLastTieringOperationStatus() const
void SetArchivalCompleteTime(Aws::Utils::DateTime &&value)
void SetLastTieringStartTime(Aws::Utils::DateTime &&value)
SnapshotTierStatus & WithStatus(const SnapshotState &value)
SnapshotTierStatus & WithOwnerId(const Aws::String &value)
AWS_EC2_API SnapshotTierStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVolumeId(const Aws::String &value)
void SetOwnerId(Aws::String &&value)
const SnapshotState & GetStatus() const
SnapshotTierStatus & WithStorageTier(StorageTier &&value)
SnapshotTierStatus & WithArchivalCompleteTime(Aws::Utils::DateTime &&value)
SnapshotTierStatus & WithLastTieringOperationStatus(TieringOperationStatus &&value)
void SetRestoreExpiryTime(const Aws::Utils::DateTime &value)
void SetSnapshotId(Aws::String &&value)
AWS_EC2_API SnapshotTierStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotTierStatus & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetOwnerId() const
SnapshotTierStatus & WithSnapshotId(Aws::String &&value)
SnapshotTierStatus & WithLastTieringStartTime(Aws::Utils::DateTime &&value)
SnapshotTierStatus & WithOwnerId(const char *value)
SnapshotTierStatus & WithStatus(SnapshotState &&value)
void SetArchivalCompleteTime(const Aws::Utils::DateTime &value)
void SetTags(Aws::Vector< Tag > &&value)
SnapshotTierStatus & WithLastTieringOperationStatusDetail(const char *value)
void SetLastTieringOperationStatusDetail(Aws::String &&value)
void SetLastTieringOperationStatusDetail(const Aws::String &value)
SnapshotTierStatus & AddTags(Tag &&value)
SnapshotTierStatus & WithOwnerId(Aws::String &&value)
SnapshotTierStatus & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetLastTieringOperationStatusDetail() const
const Aws::Utils::DateTime & GetLastTieringStartTime() const
SnapshotTierStatus & WithArchivalCompleteTime(const Aws::Utils::DateTime &value)
SnapshotTierStatus & WithRestoreExpiryTime(Aws::Utils::DateTime &&value)
void SetLastTieringStartTime(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSnapshotId() const
SnapshotTierStatus & WithLastTieringStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetArchivalCompleteTime() const
void SetLastTieringOperationStatus(TieringOperationStatus &&value)
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