AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SnapshotInfo.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/SnapshotState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API SnapshotInfo() = default;
40 AWS_EC2_API SnapshotInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API SnapshotInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 SnapshotInfo& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
65 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
66 template<typename TagsT = Aws::Vector<Tag>>
67 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
68 template<typename TagsT = Aws::Vector<Tag>>
69 SnapshotInfo& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
70 template<typename TagsT = Tag>
71 SnapshotInfo& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
73
75
78 inline bool GetEncrypted() const { return m_encrypted; }
79 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
80 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
81 inline SnapshotInfo& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
83
85
88 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
89 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
90 template<typename VolumeIdT = Aws::String>
91 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
92 template<typename VolumeIdT = Aws::String>
93 SnapshotInfo& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
95
97
100 inline SnapshotState GetState() const { return m_state; }
101 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 inline void SetState(SnapshotState value) { m_stateHasBeenSet = true; m_state = value; }
103 inline SnapshotInfo& WithState(SnapshotState value) { SetState(value); return *this;}
105
107
110 inline int GetVolumeSize() const { return m_volumeSize; }
111 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
112 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
113 inline SnapshotInfo& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
122 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
123 template<typename StartTimeT = Aws::Utils::DateTime>
124 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
125 template<typename StartTimeT = Aws::Utils::DateTime>
126 SnapshotInfo& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
128
130
133 inline const Aws::String& GetProgress() const { return m_progress; }
134 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
135 template<typename ProgressT = Aws::String>
136 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
137 template<typename ProgressT = Aws::String>
138 SnapshotInfo& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
140
142
145 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
146 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
147 template<typename OwnerIdT = Aws::String>
148 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
149 template<typename OwnerIdT = Aws::String>
150 SnapshotInfo& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
152
154
157 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
158 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
159 template<typename SnapshotIdT = Aws::String>
160 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
161 template<typename SnapshotIdT = Aws::String>
162 SnapshotInfo& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
164
166
172 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
173 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
174 template<typename OutpostArnT = Aws::String>
175 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
176 template<typename OutpostArnT = Aws::String>
177 SnapshotInfo& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
179
181
184 inline SSEType GetSseType() const { return m_sseType; }
185 inline bool SseTypeHasBeenSet() const { return m_sseTypeHasBeenSet; }
186 inline void SetSseType(SSEType value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
187 inline SnapshotInfo& WithSseType(SSEType value) { SetSseType(value); return *this;}
189
191
196 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
197 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
198 template<typename AvailabilityZoneT = Aws::String>
199 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
200 template<typename AvailabilityZoneT = Aws::String>
201 SnapshotInfo& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
203 private:
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_tagsHasBeenSet = false;
210
211 bool m_encrypted{false};
212 bool m_encryptedHasBeenSet = false;
213
214 Aws::String m_volumeId;
215 bool m_volumeIdHasBeenSet = false;
216
218 bool m_stateHasBeenSet = false;
219
220 int m_volumeSize{0};
221 bool m_volumeSizeHasBeenSet = false;
222
223 Aws::Utils::DateTime m_startTime{};
224 bool m_startTimeHasBeenSet = false;
225
226 Aws::String m_progress;
227 bool m_progressHasBeenSet = false;
228
229 Aws::String m_ownerId;
230 bool m_ownerIdHasBeenSet = false;
231
232 Aws::String m_snapshotId;
233 bool m_snapshotIdHasBeenSet = false;
234
235 Aws::String m_outpostArn;
236 bool m_outpostArnHasBeenSet = false;
237
238 SSEType m_sseType{SSEType::NOT_SET};
239 bool m_sseTypeHasBeenSet = false;
240
241 Aws::String m_availabilityZone;
242 bool m_availabilityZoneHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace EC2
247} // namespace Aws
void SetSnapshotId(SnapshotIdT &&value)
void SetOutpostArn(OutpostArnT &&value)
SnapshotInfo & WithEncrypted(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(TagsT &&value)
void SetStartTime(StartTimeT &&value)
SnapshotInfo & WithVolumeId(VolumeIdT &&value)
SnapshotInfo & WithProgress(ProgressT &&value)
const Aws::String & GetDescription() const
SnapshotInfo & WithOwnerId(OwnerIdT &&value)
bool AvailabilityZoneHasBeenSet() const
void SetDescription(DescriptionT &&value)
SnapshotInfo & AddTags(TagsT &&value)
SnapshotInfo & WithTags(TagsT &&value)
SnapshotInfo & WithSnapshotId(SnapshotIdT &&value)
const Aws::String & GetVolumeId() const
void SetSseType(SSEType value)
AWS_EC2_API SnapshotInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotInfo & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetProgress() const
void SetVolumeId(VolumeIdT &&value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
void SetOwnerId(OwnerIdT &&value)
void SetProgress(ProgressT &&value)
SnapshotInfo & WithState(SnapshotState value)
SnapshotInfo & WithStartTime(StartTimeT &&value)
SnapshotState GetState() const
AWS_EC2_API SnapshotInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(SnapshotState value)
SnapshotInfo & WithOutpostArn(OutpostArnT &&value)
SnapshotInfo & WithSseType(SSEType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotInfo & WithVolumeSize(int value)
SnapshotInfo & WithDescription(DescriptionT &&value)
const Aws::String & GetAvailabilityZone() const
const Aws::Utils::DateTime & GetStartTime() const
AWS_EC2_API SnapshotInfo()=default
void SetEncrypted(bool value)
const Aws::String & GetOwnerId() 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