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/TransferType.h>
15#include <aws/ec2/model/SnapshotState.h>
16#include <aws/ec2/model/ResponseMetadata.h>
17#include <aws/ec2/model/Tag.h>
58 template<
typename OwnerAliasT = Aws::String>
59 void SetOwnerAlias(OwnerAliasT&& value) { m_ownerAliasHasBeenSet =
true; m_ownerAlias = std::forward<OwnerAliasT>(value); }
60 template<
typename OwnerAliasT = Aws::String>
73 template<
typename OutpostArnT = Aws::String>
74 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
75 template<
typename OutpostArnT = Aws::String>
85 template<
typename TagsT = Aws::Vector<Tag>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
87 template<
typename TagsT = Aws::Vector<Tag>>
89 template<
typename TagsT = Tag>
90 Snapshot&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
114 template<
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
115 void SetRestoreExpiryTime(RestoreExpiryTimeT&& value) { m_restoreExpiryTimeHasBeenSet =
true; m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value); }
116 template<
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
138 template<
typename AvailabilityZoneT = Aws::String>
139 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
140 template<
typename AvailabilityZoneT = Aws::String>
179 template<
typename CompletionTimeT = Aws::Utils::DateTime>
180 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet =
true; m_completionTime = std::forward<CompletionTimeT>(value); }
181 template<
typename CompletionTimeT = Aws::Utils::DateTime>
205 template<
typename SnapshotIdT = Aws::String>
206 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet =
true; m_snapshotId = std::forward<SnapshotIdT>(value); }
207 template<
typename SnapshotIdT = Aws::String>
219 template<
typename VolumeIdT = Aws::String>
220 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet =
true; m_volumeId = std::forward<VolumeIdT>(value); }
221 template<
typename VolumeIdT = Aws::String>
244 template<
typename StateMessageT = Aws::String>
245 void SetStateMessage(StateMessageT&& value) { m_stateMessageHasBeenSet =
true; m_stateMessage = std::forward<StateMessageT>(value); }
246 template<
typename StateMessageT = Aws::String>
256 template<
typename StartTimeT = Aws::Utils::DateTime>
257 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
258 template<
typename StartTimeT = Aws::Utils::DateTime>
268 template<
typename ProgressT = Aws::String>
269 void SetProgress(ProgressT&& value) { m_progressHasBeenSet =
true; m_progress = std::forward<ProgressT>(value); }
270 template<
typename ProgressT = Aws::String>
280 template<
typename OwnerIdT = Aws::String>
281 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
282 template<
typename OwnerIdT = Aws::String>
292 template<
typename DescriptionT = Aws::String>
293 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
294 template<
typename DescriptionT = Aws::String>
304 inline void SetVolumeSize(
int value) { m_volumeSizeHasBeenSet =
true; m_volumeSize = value; }
314 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
325 template<
typename KmsKeyIdT = Aws::String>
326 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
327 template<
typename KmsKeyIdT = Aws::String>
342 template<
typename DataEncryptionKeyIdT = Aws::String>
343 void SetDataEncryptionKeyId(DataEncryptionKeyIdT&& value) { m_dataEncryptionKeyIdHasBeenSet =
true; m_dataEncryptionKeyId = std::forward<DataEncryptionKeyIdT>(value); }
344 template<
typename DataEncryptionKeyIdT = Aws::String>
351 template<
typename ResponseMetadataT = ResponseMetadata>
352 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet =
true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
353 template<
typename ResponseMetadataT = ResponseMetadata>
359 bool m_ownerAliasHasBeenSet =
false;
362 bool m_outpostArnHasBeenSet =
false;
365 bool m_tagsHasBeenSet =
false;
368 bool m_storageTierHasBeenSet =
false;
371 bool m_restoreExpiryTimeHasBeenSet =
false;
374 bool m_sseTypeHasBeenSet =
false;
377 bool m_availabilityZoneHasBeenSet =
false;
380 bool m_transferTypeHasBeenSet =
false;
382 int m_completionDurationMinutes{0};
383 bool m_completionDurationMinutesHasBeenSet =
false;
386 bool m_completionTimeHasBeenSet =
false;
388 long long m_fullSnapshotSizeInBytes{0};
389 bool m_fullSnapshotSizeInBytesHasBeenSet =
false;
392 bool m_snapshotIdHasBeenSet =
false;
395 bool m_volumeIdHasBeenSet =
false;
398 bool m_stateHasBeenSet =
false;
401 bool m_stateMessageHasBeenSet =
false;
404 bool m_startTimeHasBeenSet =
false;
407 bool m_progressHasBeenSet =
false;
410 bool m_ownerIdHasBeenSet =
false;
413 bool m_descriptionHasBeenSet =
false;
416 bool m_volumeSizeHasBeenSet =
false;
418 bool m_encrypted{
false};
419 bool m_encryptedHasBeenSet =
false;
422 bool m_kmsKeyIdHasBeenSet =
false;
425 bool m_dataEncryptionKeyIdHasBeenSet =
false;
427 ResponseMetadata m_responseMetadata;
428 bool m_responseMetadataHasBeenSet =
true;
Snapshot & WithStorageTier(StorageTier value)
Snapshot & WithOutpostArn(OutpostArnT &&value)
bool ProgressHasBeenSet() const
int GetVolumeSize() const
void SetProgress(ProgressT &&value)
bool SnapshotIdHasBeenSet() const
AWS_EC2_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
void SetVolumeId(VolumeIdT &&value)
bool DescriptionHasBeenSet() const
Snapshot & WithProgress(ProgressT &&value)
bool SseTypeHasBeenSet() const
void SetCompletionDurationMinutes(int value)
bool CompletionDurationMinutesHasBeenSet() const
void SetOwnerId(OwnerIdT &&value)
bool TransferTypeHasBeenSet() const
void SetSseType(SSEType value)
void SetFullSnapshotSizeInBytes(long long value)
const ResponseMetadata & GetResponseMetadata() const
Snapshot & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Utils::DateTime & GetCompletionTime() const
const Aws::String & GetOwnerAlias() const
Snapshot & WithSseType(SSEType value)
void SetStateMessage(StateMessageT &&value)
const Aws::String & GetProgress() const
Snapshot & WithStateMessage(StateMessageT &&value)
int GetCompletionDurationMinutes() const
StorageTier GetStorageTier() const
const Aws::String & GetOutpostArn() const
void SetSnapshotId(SnapshotIdT &&value)
bool StateHasBeenSet() const
SSEType GetSseType() const
void SetVolumeSize(int value)
Snapshot & WithEncrypted(bool value)
Snapshot & AddTags(TagsT &&value)
SnapshotState GetState() const
void SetState(SnapshotState value)
Snapshot & WithVolumeSize(int value)
Snapshot & WithDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
const Aws::Vector< Tag > & GetTags() const
Snapshot & WithDescription(DescriptionT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
void SetKmsKeyId(KmsKeyIdT &&value)
bool DataEncryptionKeyIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetResponseMetadata(ResponseMetadataT &&value)
Snapshot & WithTransferType(TransferType value)
Snapshot & WithOwnerAlias(OwnerAliasT &&value)
bool AvailabilityZoneHasBeenSet() const
void SetOwnerAlias(OwnerAliasT &&value)
const Aws::String & GetStateMessage() const
bool VolumeIdHasBeenSet() const
const Aws::Utils::DateTime & GetStartTime() const
Snapshot & WithTags(TagsT &&value)
const Aws::String & GetAvailabilityZone() const
bool GetEncrypted() const
void SetDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
TransferType GetTransferType() const
const Aws::String & GetKmsKeyId() const
Snapshot & WithOwnerId(OwnerIdT &&value)
bool VolumeSizeHasBeenSet() const
void SetCompletionTime(CompletionTimeT &&value)
long long GetFullSnapshotSizeInBytes() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OutpostArnHasBeenSet() const
Snapshot & WithFullSnapshotSizeInBytes(long long value)
const Aws::String & GetDataEncryptionKeyId() const
bool CompletionTimeHasBeenSet() const
void SetTransferType(TransferType value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetOwnerId() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetStartTime(StartTimeT &&value)
AWS_EC2_API Snapshot()=default
Snapshot & WithStartTime(StartTimeT &&value)
Snapshot & WithRestoreExpiryTime(RestoreExpiryTimeT &&value)
bool FullSnapshotSizeInBytesHasBeenSet() const
void SetOutpostArn(OutpostArnT &&value)
Snapshot & WithVolumeId(VolumeIdT &&value)
AWS_EC2_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStorageTier(StorageTier value)
const Aws::String & GetSnapshotId() const
bool OwnerIdHasBeenSet() const
bool StorageTierHasBeenSet() const
const Aws::String & GetVolumeId() const
void SetRestoreExpiryTime(RestoreExpiryTimeT &&value)
bool OwnerAliasHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
void SetEncrypted(bool value)
Snapshot & WithAvailabilityZone(AvailabilityZoneT &&value)
Snapshot & WithSnapshotId(SnapshotIdT &&value)
bool EncryptedHasBeenSet() const
bool StateMessageHasBeenSet() const
bool RestoreExpiryTimeHasBeenSet() const
Snapshot & WithCompletionTime(CompletionTimeT &&value)
bool StartTimeHasBeenSet() const
Snapshot & WithState(SnapshotState value)
Snapshot & WithKmsKeyId(KmsKeyIdT &&value)
Snapshot & WithCompletionDurationMinutes(int value)
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