AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Snapshot.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/StorageTier.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/SnapshotState.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16#include <aws/ec2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_EC2_API Snapshot();
42 AWS_EC2_API Snapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_EC2_API Snapshot& operator=(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
55 inline const Aws::String& GetOwnerAlias() const{ return m_ownerAlias; }
56 inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; }
57 inline void SetOwnerAlias(const Aws::String& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = value; }
58 inline void SetOwnerAlias(Aws::String&& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = std::move(value); }
59 inline void SetOwnerAlias(const char* value) { m_ownerAliasHasBeenSet = true; m_ownerAlias.assign(value); }
60 inline Snapshot& WithOwnerAlias(const Aws::String& value) { SetOwnerAlias(value); return *this;}
61 inline Snapshot& WithOwnerAlias(Aws::String&& value) { SetOwnerAlias(std::move(value)); return *this;}
62 inline Snapshot& WithOwnerAlias(const char* value) { SetOwnerAlias(value); return *this;}
64
66
72 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
73 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
74 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
75 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
76 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
77 inline Snapshot& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
78 inline Snapshot& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
79 inline Snapshot& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
81
83
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline Snapshot& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline Snapshot& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline Snapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline Snapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95
97
103 inline const StorageTier& GetStorageTier() const{ return m_storageTier; }
104 inline bool StorageTierHasBeenSet() const { return m_storageTierHasBeenSet; }
105 inline void SetStorageTier(const StorageTier& value) { m_storageTierHasBeenSet = true; m_storageTier = value; }
106 inline void SetStorageTier(StorageTier&& value) { m_storageTierHasBeenSet = true; m_storageTier = std::move(value); }
107 inline Snapshot& WithStorageTier(const StorageTier& value) { SetStorageTier(value); return *this;}
108 inline Snapshot& WithStorageTier(StorageTier&& value) { SetStorageTier(std::move(value)); return *this;}
110
112
117 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const{ return m_restoreExpiryTime; }
118 inline bool RestoreExpiryTimeHasBeenSet() const { return m_restoreExpiryTimeHasBeenSet; }
119 inline void SetRestoreExpiryTime(const Aws::Utils::DateTime& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = value; }
120 inline void SetRestoreExpiryTime(Aws::Utils::DateTime&& value) { m_restoreExpiryTimeHasBeenSet = true; m_restoreExpiryTime = std::move(value); }
121 inline Snapshot& WithRestoreExpiryTime(const Aws::Utils::DateTime& value) { SetRestoreExpiryTime(value); return *this;}
122 inline Snapshot& WithRestoreExpiryTime(Aws::Utils::DateTime&& value) { SetRestoreExpiryTime(std::move(value)); return *this;}
124
126
129 inline const SSEType& GetSseType() const{ return m_sseType; }
130 inline bool SseTypeHasBeenSet() const { return m_sseTypeHasBeenSet; }
131 inline void SetSseType(const SSEType& value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
132 inline void SetSseType(SSEType&& value) { m_sseTypeHasBeenSet = true; m_sseType = std::move(value); }
133 inline Snapshot& WithSseType(const SSEType& value) { SetSseType(value); return *this;}
134 inline Snapshot& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;}
136
138
142 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
143 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
144 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
145 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
146 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
147 inline Snapshot& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
148 inline Snapshot& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
149 inline Snapshot& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
151
153
158 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
159 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
160 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
161 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
162 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
163 inline Snapshot& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
164 inline Snapshot& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
165 inline Snapshot& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
167
169
172 inline const SnapshotState& GetState() const{ return m_state; }
173 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
174 inline void SetState(const SnapshotState& value) { m_stateHasBeenSet = true; m_state = value; }
175 inline void SetState(SnapshotState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
176 inline Snapshot& WithState(const SnapshotState& value) { SetState(value); return *this;}
177 inline Snapshot& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;}
179
181
187 inline const Aws::String& GetStateMessage() const{ return m_stateMessage; }
188 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
189 inline void SetStateMessage(const Aws::String& value) { m_stateMessageHasBeenSet = true; m_stateMessage = value; }
190 inline void SetStateMessage(Aws::String&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::move(value); }
191 inline void SetStateMessage(const char* value) { m_stateMessageHasBeenSet = true; m_stateMessage.assign(value); }
192 inline Snapshot& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;}
193 inline Snapshot& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;}
194 inline Snapshot& WithStateMessage(const char* value) { SetStateMessage(value); return *this;}
196
198
201 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
202 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
203 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
204 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
205 inline Snapshot& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
206 inline Snapshot& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
208
210
213 inline const Aws::String& GetProgress() const{ return m_progress; }
214 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
215 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
216 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
217 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
218 inline Snapshot& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
219 inline Snapshot& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
220 inline Snapshot& WithProgress(const char* value) { SetProgress(value); return *this;}
222
224
227 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
228 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
229 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
230 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
231 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
232 inline Snapshot& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
233 inline Snapshot& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
234 inline Snapshot& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
236
238
241 inline const Aws::String& GetDescription() const{ return m_description; }
242 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
243 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
244 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
245 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
246 inline Snapshot& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
247 inline Snapshot& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
248 inline Snapshot& WithDescription(const char* value) { SetDescription(value); return *this;}
250
252
255 inline int GetVolumeSize() const{ return m_volumeSize; }
256 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
257 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
258 inline Snapshot& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
260
262
265 inline bool GetEncrypted() const{ return m_encrypted; }
266 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
267 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
268 inline Snapshot& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
270
272
276 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
277 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
278 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
279 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
280 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
281 inline Snapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
282 inline Snapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
283 inline Snapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
285
287
295 inline const Aws::String& GetDataEncryptionKeyId() const{ return m_dataEncryptionKeyId; }
296 inline bool DataEncryptionKeyIdHasBeenSet() const { return m_dataEncryptionKeyIdHasBeenSet; }
297 inline void SetDataEncryptionKeyId(const Aws::String& value) { m_dataEncryptionKeyIdHasBeenSet = true; m_dataEncryptionKeyId = value; }
298 inline void SetDataEncryptionKeyId(Aws::String&& value) { m_dataEncryptionKeyIdHasBeenSet = true; m_dataEncryptionKeyId = std::move(value); }
299 inline void SetDataEncryptionKeyId(const char* value) { m_dataEncryptionKeyIdHasBeenSet = true; m_dataEncryptionKeyId.assign(value); }
300 inline Snapshot& WithDataEncryptionKeyId(const Aws::String& value) { SetDataEncryptionKeyId(value); return *this;}
301 inline Snapshot& WithDataEncryptionKeyId(Aws::String&& value) { SetDataEncryptionKeyId(std::move(value)); return *this;}
302 inline Snapshot& WithDataEncryptionKeyId(const char* value) { SetDataEncryptionKeyId(value); return *this;}
304
306
307 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
308 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
309 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
310 inline Snapshot& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
311 inline Snapshot& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
313 private:
314
315 Aws::String m_ownerAlias;
316 bool m_ownerAliasHasBeenSet = false;
317
318 Aws::String m_outpostArn;
319 bool m_outpostArnHasBeenSet = false;
320
321 Aws::Vector<Tag> m_tags;
322 bool m_tagsHasBeenSet = false;
323
324 StorageTier m_storageTier;
325 bool m_storageTierHasBeenSet = false;
326
327 Aws::Utils::DateTime m_restoreExpiryTime;
328 bool m_restoreExpiryTimeHasBeenSet = false;
329
330 SSEType m_sseType;
331 bool m_sseTypeHasBeenSet = false;
332
333 Aws::String m_snapshotId;
334 bool m_snapshotIdHasBeenSet = false;
335
336 Aws::String m_volumeId;
337 bool m_volumeIdHasBeenSet = false;
338
339 SnapshotState m_state;
340 bool m_stateHasBeenSet = false;
341
342 Aws::String m_stateMessage;
343 bool m_stateMessageHasBeenSet = false;
344
345 Aws::Utils::DateTime m_startTime;
346 bool m_startTimeHasBeenSet = false;
347
348 Aws::String m_progress;
349 bool m_progressHasBeenSet = false;
350
351 Aws::String m_ownerId;
352 bool m_ownerIdHasBeenSet = false;
353
354 Aws::String m_description;
355 bool m_descriptionHasBeenSet = false;
356
357 int m_volumeSize;
358 bool m_volumeSizeHasBeenSet = false;
359
360 bool m_encrypted;
361 bool m_encryptedHasBeenSet = false;
362
363 Aws::String m_kmsKeyId;
364 bool m_kmsKeyIdHasBeenSet = false;
365
366 Aws::String m_dataEncryptionKeyId;
367 bool m_dataEncryptionKeyIdHasBeenSet = false;
368
369 ResponseMetadata m_responseMetadata;
370 };
371
372} // namespace Model
373} // namespace EC2
374} // namespace Aws
const StorageTier & GetStorageTier() const
Definition Snapshot.h:103
Snapshot & WithDataEncryptionKeyId(const char *value)
Definition Snapshot.h:302
bool ProgressHasBeenSet() const
Definition Snapshot.h:214
void SetOwnerId(const Aws::String &value)
Definition Snapshot.h:229
Snapshot & WithOwnerAlias(const Aws::String &value)
Definition Snapshot.h:60
int GetVolumeSize() const
Definition Snapshot.h:255
bool SnapshotIdHasBeenSet() const
Definition Snapshot.h:143
AWS_EC2_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
Definition Snapshot.h:87
Snapshot & WithVolumeId(const char *value)
Definition Snapshot.h:165
bool DescriptionHasBeenSet() const
Definition Snapshot.h:242
bool SseTypeHasBeenSet() const
Definition Snapshot.h:130
Snapshot & WithStorageTier(StorageTier &&value)
Definition Snapshot.h:108
void SetTags(Aws::Vector< Tag > &&value)
Definition Snapshot.h:89
void SetSnapshotId(Aws::String &&value)
Definition Snapshot.h:145
void SetOwnerAlias(const char *value)
Definition Snapshot.h:59
void SetDescription(const char *value)
Definition Snapshot.h:245
void SetStateMessage(const Aws::String &value)
Definition Snapshot.h:189
const ResponseMetadata & GetResponseMetadata() const
Definition Snapshot.h:307
void SetOutpostArn(Aws::String &&value)
Definition Snapshot.h:75
void SetState(SnapshotState &&value)
Definition Snapshot.h:175
Snapshot & WithOwnerAlias(Aws::String &&value)
Definition Snapshot.h:61
Snapshot & WithDescription(Aws::String &&value)
Definition Snapshot.h:247
Snapshot & WithStorageTier(const StorageTier &value)
Definition Snapshot.h:107
const Aws::String & GetOwnerAlias() const
Definition Snapshot.h:55
void SetTags(const Aws::Vector< Tag > &value)
Definition Snapshot.h:88
Snapshot & WithTags(Aws::Vector< Tag > &&value)
Definition Snapshot.h:91
Snapshot & WithState(SnapshotState &&value)
Definition Snapshot.h:177
void SetOwnerId(const char *value)
Definition Snapshot.h:231
void SetOwnerId(Aws::String &&value)
Definition Snapshot.h:230
Snapshot & WithDescription(const char *value)
Definition Snapshot.h:248
const Aws::String & GetProgress() const
Definition Snapshot.h:213
void SetDescription(Aws::String &&value)
Definition Snapshot.h:244
void SetStorageTier(const StorageTier &value)
Definition Snapshot.h:105
void SetVolumeId(const Aws::String &value)
Definition Snapshot.h:160
Snapshot & WithStartTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:205
const Aws::String & GetOutpostArn() const
Definition Snapshot.h:72
bool StateHasBeenSet() const
Definition Snapshot.h:173
Snapshot & WithOutpostArn(const Aws::String &value)
Definition Snapshot.h:77
void SetState(const SnapshotState &value)
Definition Snapshot.h:174
void SetVolumeSize(int value)
Definition Snapshot.h:257
Snapshot & WithSnapshotId(Aws::String &&value)
Definition Snapshot.h:148
Snapshot & WithProgress(const char *value)
Definition Snapshot.h:220
Snapshot & WithEncrypted(bool value)
Definition Snapshot.h:268
Snapshot & AddTags(const Tag &value)
Definition Snapshot.h:92
void SetResponseMetadata(ResponseMetadata &&value)
Definition Snapshot.h:309
void SetOwnerAlias(const Aws::String &value)
Definition Snapshot.h:57
void SetKmsKeyId(const Aws::String &value)
Definition Snapshot.h:278
Snapshot & WithStateMessage(const char *value)
Definition Snapshot.h:194
void SetOwnerAlias(Aws::String &&value)
Definition Snapshot.h:58
Snapshot & WithVolumeSize(int value)
Definition Snapshot.h:258
Snapshot & WithVolumeId(Aws::String &&value)
Definition Snapshot.h:164
const Aws::Vector< Tag > & GetTags() const
Definition Snapshot.h:86
void SetDataEncryptionKeyId(const char *value)
Definition Snapshot.h:299
Snapshot & WithStateMessage(const Aws::String &value)
Definition Snapshot.h:192
void SetResponseMetadata(const ResponseMetadata &value)
Definition Snapshot.h:308
Snapshot & WithVolumeId(const Aws::String &value)
Definition Snapshot.h:163
const Aws::String & GetDescription() const
Definition Snapshot.h:241
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
Definition Snapshot.h:117
bool DataEncryptionKeyIdHasBeenSet() const
Definition Snapshot.h:296
void SetVolumeId(const char *value)
Definition Snapshot.h:162
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSnapshotId(const char *value)
Definition Snapshot.h:146
Snapshot & WithResponseMetadata(ResponseMetadata &&value)
Definition Snapshot.h:311
const Aws::String & GetStateMessage() const
Definition Snapshot.h:187
bool VolumeIdHasBeenSet() const
Definition Snapshot.h:159
const Aws::Utils::DateTime & GetStartTime() const
Definition Snapshot.h:201
Snapshot & WithKmsKeyId(const Aws::String &value)
Definition Snapshot.h:281
Snapshot & WithRestoreExpiryTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:122
void SetSnapshotId(const Aws::String &value)
Definition Snapshot.h:144
void SetStateMessage(const char *value)
Definition Snapshot.h:191
Snapshot & WithRestoreExpiryTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:121
void SetSseType(SSEType &&value)
Definition Snapshot.h:132
Snapshot & WithOutpostArn(const char *value)
Definition Snapshot.h:79
void SetRestoreExpiryTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:119
Snapshot & WithOutpostArn(Aws::String &&value)
Definition Snapshot.h:78
bool GetEncrypted() const
Definition Snapshot.h:265
const Aws::String & GetKmsKeyId() const
Definition Snapshot.h:276
void SetSseType(const SSEType &value)
Definition Snapshot.h:131
Snapshot & WithOwnerId(const char *value)
Definition Snapshot.h:234
bool VolumeSizeHasBeenSet() const
Definition Snapshot.h:256
void SetProgress(const char *value)
Definition Snapshot.h:217
Snapshot & WithKmsKeyId(Aws::String &&value)
Definition Snapshot.h:282
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OutpostArnHasBeenSet() const
Definition Snapshot.h:73
void SetDataEncryptionKeyId(Aws::String &&value)
Definition Snapshot.h:298
Snapshot & WithResponseMetadata(const ResponseMetadata &value)
Definition Snapshot.h:310
const Aws::String & GetDataEncryptionKeyId() const
Definition Snapshot.h:295
void SetStateMessage(Aws::String &&value)
Definition Snapshot.h:190
Snapshot & WithDataEncryptionKeyId(Aws::String &&value)
Definition Snapshot.h:301
void SetProgress(Aws::String &&value)
Definition Snapshot.h:216
Snapshot & WithStartTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:206
const Aws::String & GetOwnerId() const
Definition Snapshot.h:227
Snapshot & WithSnapshotId(const char *value)
Definition Snapshot.h:149
void SetDataEncryptionKeyId(const Aws::String &value)
Definition Snapshot.h:297
void SetStorageTier(StorageTier &&value)
Definition Snapshot.h:106
Snapshot & WithStateMessage(Aws::String &&value)
Definition Snapshot.h:193
void SetKmsKeyId(Aws::String &&value)
Definition Snapshot.h:279
Snapshot & WithSseType(const SSEType &value)
Definition Snapshot.h:133
Snapshot & WithKmsKeyId(const char *value)
Definition Snapshot.h:283
Snapshot & WithDescription(const Aws::String &value)
Definition Snapshot.h:246
void SetOutpostArn(const char *value)
Definition Snapshot.h:76
Snapshot & WithProgress(Aws::String &&value)
Definition Snapshot.h:219
const SnapshotState & GetState() const
Definition Snapshot.h:172
AWS_EC2_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithTags(const Aws::Vector< Tag > &value)
Definition Snapshot.h:90
Snapshot & WithOwnerId(const Aws::String &value)
Definition Snapshot.h:232
Snapshot & WithDataEncryptionKeyId(const Aws::String &value)
Definition Snapshot.h:300
void SetRestoreExpiryTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:120
const Aws::String & GetSnapshotId() const
Definition Snapshot.h:142
Snapshot & WithOwnerId(Aws::String &&value)
Definition Snapshot.h:233
bool OwnerIdHasBeenSet() const
Definition Snapshot.h:228
bool StorageTierHasBeenSet() const
Definition Snapshot.h:104
const Aws::String & GetVolumeId() const
Definition Snapshot.h:158
Snapshot & AddTags(Tag &&value)
Definition Snapshot.h:93
Snapshot & WithSnapshotId(const Aws::String &value)
Definition Snapshot.h:147
Snapshot & WithProgress(const Aws::String &value)
Definition Snapshot.h:218
bool OwnerAliasHasBeenSet() const
Definition Snapshot.h:56
bool KmsKeyIdHasBeenSet() const
Definition Snapshot.h:277
void SetVolumeId(Aws::String &&value)
Definition Snapshot.h:161
void SetEncrypted(bool value)
Definition Snapshot.h:267
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:204
Snapshot & WithState(const SnapshotState &value)
Definition Snapshot.h:176
void SetOutpostArn(const Aws::String &value)
Definition Snapshot.h:74
bool EncryptedHasBeenSet() const
Definition Snapshot.h:266
bool StateMessageHasBeenSet() const
Definition Snapshot.h:188
bool RestoreExpiryTimeHasBeenSet() const
Definition Snapshot.h:118
bool StartTimeHasBeenSet() const
Definition Snapshot.h:202
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:203
Snapshot & WithOwnerAlias(const char *value)
Definition Snapshot.h:62
void SetKmsKeyId(const char *value)
Definition Snapshot.h:280
void SetProgress(const Aws::String &value)
Definition Snapshot.h:215
Snapshot & WithSseType(SSEType &&value)
Definition Snapshot.h:134
const SSEType & GetSseType() const
Definition Snapshot.h:129
void SetDescription(const Aws::String &value)
Definition Snapshot.h:243
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