7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/SSEType.h>
13#include <aws/ec2/model/SnapshotState.h>
14#include <aws/ec2/model/StorageTier.h>
15#include <aws/ec2/model/Tag.h>
16#include <aws/ec2/model/TransferType.h>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
49 template <
typename OwnerAliasT = Aws::String>
51 m_ownerAliasHasBeenSet =
true;
52 m_ownerAlias = std::forward<OwnerAliasT>(value);
54 template <
typename OwnerAliasT = Aws::String>
69 template <
typename OutpostArnT = Aws::String>
71 m_outpostArnHasBeenSet =
true;
72 m_outpostArn = std::forward<OutpostArnT>(value);
74 template <
typename OutpostArnT = Aws::String>
86 template <
typename TagsT = Aws::Vector<Tag>>
88 m_tagsHasBeenSet =
true;
89 m_tags = std::forward<TagsT>(value);
91 template <
typename TagsT = Aws::Vector<Tag>>
93 SetTags(std::forward<TagsT>(value));
96 template <
typename TagsT = Tag>
98 m_tagsHasBeenSet =
true;
99 m_tags.emplace_back(std::forward<TagsT>(value));
113 m_storageTierHasBeenSet =
true;
114 m_storageTier = value;
129 template <
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
131 m_restoreExpiryTimeHasBeenSet =
true;
132 m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value);
134 template <
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
147 m_sseTypeHasBeenSet =
true;
163 template <
typename AvailabilityZoneT = Aws::String>
165 m_availabilityZoneHasBeenSet =
true;
166 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
168 template <
typename AvailabilityZoneT = Aws::String>
188 m_transferTypeHasBeenSet =
true;
189 m_transferType = value;
205 m_completionDurationMinutesHasBeenSet =
true;
206 m_completionDurationMinutes = value;
219 template <
typename CompletionTimeT = Aws::Utils::DateTime>
221 m_completionTimeHasBeenSet =
true;
222 m_completionTime = std::forward<CompletionTimeT>(value);
224 template <
typename CompletionTimeT = Aws::Utils::DateTime>
240 m_fullSnapshotSizeInBytesHasBeenSet =
true;
241 m_fullSnapshotSizeInBytes = value;
255 template <
typename SnapshotIdT = Aws::String>
257 m_snapshotIdHasBeenSet =
true;
258 m_snapshotId = std::forward<SnapshotIdT>(value);
260 template <
typename SnapshotIdT = Aws::String>
274 template <
typename VolumeIdT = Aws::String>
276 m_volumeIdHasBeenSet =
true;
277 m_volumeId = std::forward<VolumeIdT>(value);
279 template <
typename VolumeIdT = Aws::String>
292 m_stateHasBeenSet =
true;
309 template <
typename StateMessageT = Aws::String>
311 m_stateMessageHasBeenSet =
true;
312 m_stateMessage = std::forward<StateMessageT>(value);
314 template <
typename StateMessageT = Aws::String>
326 template <
typename StartTimeT = Aws::Utils::DateTime>
328 m_startTimeHasBeenSet =
true;
329 m_startTime = std::forward<StartTimeT>(value);
331 template <
typename StartTimeT = Aws::Utils::DateTime>
343 template <
typename ProgressT = Aws::String>
345 m_progressHasBeenSet =
true;
346 m_progress = std::forward<ProgressT>(value);
348 template <
typename ProgressT = Aws::String>
360 template <
typename OwnerIdT = Aws::String>
362 m_ownerIdHasBeenSet =
true;
363 m_ownerId = std::forward<OwnerIdT>(value);
365 template <
typename OwnerIdT = Aws::String>
377 template <
typename DescriptionT = Aws::String>
379 m_descriptionHasBeenSet =
true;
380 m_description = std::forward<DescriptionT>(value);
382 template <
typename DescriptionT = Aws::String>
395 m_volumeSizeHasBeenSet =
true;
396 m_volumeSize = value;
410 m_encryptedHasBeenSet =
true;
425 template <
typename KmsKeyIdT = Aws::String>
427 m_kmsKeyIdHasBeenSet =
true;
428 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
430 template <
typename KmsKeyIdT = Aws::String>
447 template <
typename DataEncryptionKeyIdT = Aws::String>
449 m_dataEncryptionKeyIdHasBeenSet =
true;
450 m_dataEncryptionKeyId = std::forward<DataEncryptionKeyIdT>(value);
452 template <
typename DataEncryptionKeyIdT = Aws::String>
462 template <
typename ResponseMetadataT = ResponseMetadata>
464 m_responseMetadataHasBeenSet =
true;
465 m_responseMetadata = std::forward<ResponseMetadataT>(value);
467 template <
typename ResponseMetadataT = ResponseMetadata>
490 int m_completionDurationMinutes{0};
494 long long m_fullSnapshotSizeInBytes{0};
514 bool m_encrypted{
false};
520 ResponseMetadata m_responseMetadata;
521 bool m_ownerAliasHasBeenSet =
false;
522 bool m_outpostArnHasBeenSet =
false;
523 bool m_tagsHasBeenSet =
false;
524 bool m_storageTierHasBeenSet =
false;
525 bool m_restoreExpiryTimeHasBeenSet =
false;
526 bool m_sseTypeHasBeenSet =
false;
527 bool m_availabilityZoneHasBeenSet =
false;
528 bool m_transferTypeHasBeenSet =
false;
529 bool m_completionDurationMinutesHasBeenSet =
false;
530 bool m_completionTimeHasBeenSet =
false;
531 bool m_fullSnapshotSizeInBytesHasBeenSet =
false;
532 bool m_snapshotIdHasBeenSet =
false;
533 bool m_volumeIdHasBeenSet =
false;
534 bool m_stateHasBeenSet =
false;
535 bool m_stateMessageHasBeenSet =
false;
536 bool m_startTimeHasBeenSet =
false;
537 bool m_progressHasBeenSet =
false;
538 bool m_ownerIdHasBeenSet =
false;
539 bool m_descriptionHasBeenSet =
false;
540 bool m_volumeSizeHasBeenSet =
false;
541 bool m_encryptedHasBeenSet =
false;
542 bool m_kmsKeyIdHasBeenSet =
false;
543 bool m_dataEncryptionKeyIdHasBeenSet =
false;
544 bool m_responseMetadataHasBeenSet =
false;
CreateSnapshotResponse & WithFullSnapshotSizeInBytes(long long value)
const Aws::String & GetProgress() const
CreateSnapshotResponse & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateSnapshotResponse & WithCompletionDurationMinutes(int value)
const Aws::Utils::DateTime & GetStartTime() const
bool GetEncrypted() const
long long GetFullSnapshotSizeInBytes() const
AWS_EC2_API CreateSnapshotResponse()=default
void SetSseType(SSEType value)
CreateSnapshotResponse & WithTags(TagsT &&value)
CreateSnapshotResponse & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetStateMessage() const
void SetSnapshotId(SnapshotIdT &&value)
const Aws::Vector< Tag > & GetTags() const
StorageTier GetStorageTier() const
CreateSnapshotResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateSnapshotResponse & AddTags(TagsT &&value)
void SetEncrypted(bool value)
const Aws::Utils::DateTime & GetCompletionTime() const
CreateSnapshotResponse & WithStateMessage(StateMessageT &&value)
int GetVolumeSize() const
const Aws::String & GetVolumeId() const
void SetStateMessage(StateMessageT &&value)
SnapshotState GetState() const
CreateSnapshotResponse & WithOutpostArn(OutpostArnT &&value)
void SetFullSnapshotSizeInBytes(long long value)
const Aws::String & GetKmsKeyId() const
void SetStartTime(StartTimeT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetOwnerId() const
CreateSnapshotResponse & WithRestoreExpiryTime(RestoreExpiryTimeT &&value)
CreateSnapshotResponse & WithEncrypted(bool value)
CreateSnapshotResponse & WithState(SnapshotState value)
void SetDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
const Aws::String & GetSnapshotId() const
CreateSnapshotResponse & WithCompletionTime(CompletionTimeT &&value)
const Aws::String & GetAvailabilityZone() const
void SetProgress(ProgressT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetCompletionDurationMinutes(int value)
CreateSnapshotResponse & WithVolumeSize(int value)
void SetOwnerId(OwnerIdT &&value)
void SetRestoreExpiryTime(RestoreExpiryTimeT &&value)
CreateSnapshotResponse & WithOwnerAlias(OwnerAliasT &&value)
int GetCompletionDurationMinutes() const
CreateSnapshotResponse & WithVolumeId(VolumeIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateSnapshotResponse & WithSnapshotId(SnapshotIdT &&value)
const Aws::String & GetOutpostArn() const
const Aws::String & GetOwnerAlias() const
void SetVolumeSize(int value)
void SetCompletionTime(CompletionTimeT &&value)
void SetOwnerAlias(OwnerAliasT &&value)
CreateSnapshotResponse & WithDescription(DescriptionT &&value)
void SetOutpostArn(OutpostArnT &&value)
CreateSnapshotResponse & WithStartTime(StartTimeT &&value)
CreateSnapshotResponse & WithTransferType(TransferType value)
void SetKmsKeyId(KmsKeyIdT &&value)
void SetState(SnapshotState value)
const Aws::String & GetDataEncryptionKeyId() const
void SetTags(TagsT &&value)
CreateSnapshotResponse & WithOwnerId(OwnerIdT &&value)
void SetTransferType(TransferType value)
void SetVolumeId(VolumeIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
AWS_EC2_API CreateSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API CreateSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSnapshotResponse & WithSseType(SSEType value)
TransferType GetTransferType() const
SSEType GetSseType() const
const Aws::String & GetDescription() const
CreateSnapshotResponse & WithStorageTier(StorageTier value)
CreateSnapshotResponse & WithDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
void SetStorageTier(StorageTier value)
CreateSnapshotResponse & WithProgress(ProgressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument