AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
55 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
56 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
57 inline SnapshotInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
58 inline SnapshotInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
59 inline SnapshotInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
61
63
66 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
67 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
68 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
69 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
70 inline SnapshotInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
71 inline SnapshotInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
72 inline SnapshotInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
73 inline SnapshotInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
75
77
80 inline bool GetEncrypted() const{ return m_encrypted; }
81 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
82 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
83 inline SnapshotInfo& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
85
87
90 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
91 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
92 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
93 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
94 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
95 inline SnapshotInfo& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
96 inline SnapshotInfo& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
97 inline SnapshotInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
99
101
104 inline const SnapshotState& GetState() const{ return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(const SnapshotState& value) { m_stateHasBeenSet = true; m_state = value; }
107 inline void SetState(SnapshotState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 inline SnapshotInfo& WithState(const SnapshotState& value) { SetState(value); return *this;}
109 inline SnapshotInfo& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;}
111
113
116 inline int GetVolumeSize() const{ return m_volumeSize; }
117 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
118 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
119 inline SnapshotInfo& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
121
123
127 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
128 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
129 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
130 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
131 inline SnapshotInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
132 inline SnapshotInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
134
136
139 inline const Aws::String& GetProgress() const{ return m_progress; }
140 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
141 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
142 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
143 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
144 inline SnapshotInfo& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
145 inline SnapshotInfo& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
146 inline SnapshotInfo& WithProgress(const char* value) { SetProgress(value); return *this;}
148
150
153 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
154 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
155 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
156 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
157 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
158 inline SnapshotInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
159 inline SnapshotInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
160 inline SnapshotInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
162
164
167 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
168 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
169 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
170 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
171 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
172 inline SnapshotInfo& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
173 inline SnapshotInfo& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
174 inline SnapshotInfo& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
176
178
184 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
185 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
186 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
187 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
188 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
189 inline SnapshotInfo& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
190 inline SnapshotInfo& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
191 inline SnapshotInfo& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
193
195
198 inline const SSEType& GetSseType() const{ return m_sseType; }
199 inline bool SseTypeHasBeenSet() const { return m_sseTypeHasBeenSet; }
200 inline void SetSseType(const SSEType& value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
201 inline void SetSseType(SSEType&& value) { m_sseTypeHasBeenSet = true; m_sseType = std::move(value); }
202 inline SnapshotInfo& WithSseType(const SSEType& value) { SetSseType(value); return *this;}
203 inline SnapshotInfo& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;}
205 private:
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212
213 bool m_encrypted;
214 bool m_encryptedHasBeenSet = false;
215
216 Aws::String m_volumeId;
217 bool m_volumeIdHasBeenSet = false;
218
219 SnapshotState m_state;
220 bool m_stateHasBeenSet = false;
221
222 int m_volumeSize;
223 bool m_volumeSizeHasBeenSet = false;
224
225 Aws::Utils::DateTime m_startTime;
226 bool m_startTimeHasBeenSet = false;
227
228 Aws::String m_progress;
229 bool m_progressHasBeenSet = false;
230
231 Aws::String m_ownerId;
232 bool m_ownerIdHasBeenSet = false;
233
234 Aws::String m_snapshotId;
235 bool m_snapshotIdHasBeenSet = false;
236
237 Aws::String m_outpostArn;
238 bool m_outpostArnHasBeenSet = false;
239
240 SSEType m_sseType;
241 bool m_sseTypeHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace EC2
246} // namespace Aws
const SSEType & GetSseType() const
SnapshotInfo & WithProgress(Aws::String &&value)
SnapshotInfo & WithDescription(const char *value)
SnapshotInfo & WithEncrypted(bool value)
SnapshotInfo & WithProgress(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(const Aws::String &value)
SnapshotInfo & WithSseType(const SSEType &value)
void SetProgress(const Aws::String &value)
SnapshotInfo & WithState(const SnapshotState &value)
const SnapshotState & GetState() const
void SetSnapshotId(Aws::String &&value)
void SetState(const SnapshotState &value)
SnapshotInfo & WithOwnerId(const Aws::String &value)
SnapshotInfo & WithVolumeId(const char *value)
void SetOutpostArn(const Aws::String &value)
const Aws::String & GetDescription() const
SnapshotInfo & WithOutpostArn(const Aws::String &value)
SnapshotInfo & WithProgress(const Aws::String &value)
void SetProgress(Aws::String &&value)
void SetOwnerId(const Aws::String &value)
SnapshotInfo & WithState(SnapshotState &&value)
SnapshotInfo & WithOutpostArn(Aws::String &&value)
SnapshotInfo & WithStartTime(const Aws::Utils::DateTime &value)
SnapshotInfo & AddTags(Tag &&value)
SnapshotInfo & WithVolumeId(const Aws::String &value)
void SetSnapshotId(const Aws::String &value)
const Aws::String & GetVolumeId() const
void SetProgress(const char *value)
void SetOutpostArn(Aws::String &&value)
void SetSnapshotId(const char *value)
SnapshotInfo & WithTags(const Aws::Vector< Tag > &value)
SnapshotInfo & WithVolumeId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
SnapshotInfo & WithTags(Aws::Vector< Tag > &&value)
SnapshotInfo & WithOwnerId(Aws::String &&value)
AWS_EC2_API SnapshotInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(Aws::String &&value)
SnapshotInfo & WithSseType(SSEType &&value)
const Aws::String & GetSnapshotId() const
void SetSseType(const SSEType &value)
void SetVolumeId(const char *value)
const Aws::String & GetProgress() const
void SetSseType(SSEType &&value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
void SetStartTime(const Aws::Utils::DateTime &value)
void SetOwnerId(const char *value)
void SetDescription(const char *value)
void SetState(SnapshotState &&value)
SnapshotInfo & WithDescription(const Aws::String &value)
AWS_EC2_API SnapshotInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOutpostArn(const char *value)
SnapshotInfo & WithStartTime(Aws::Utils::DateTime &&value)
SnapshotInfo & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotInfo & WithVolumeSize(int value)
SnapshotInfo & WithSnapshotId(Aws::String &&value)
void SetOwnerId(Aws::String &&value)
void SetVolumeId(Aws::String &&value)
SnapshotInfo & WithSnapshotId(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetVolumeId(const Aws::String &value)
SnapshotInfo & AddTags(const Tag &value)
SnapshotInfo & WithOwnerId(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
SnapshotInfo & WithSnapshotId(const char *value)
void SetEncrypted(bool value)
SnapshotInfo & WithOutpostArn(const char *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