7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/SnapshotState.h>
15#include <aws/ec2/model/StorageTier.h>
16#include <aws/ec2/model/Tag.h>
17#include <aws/ec2/model/TransferType.h>
22template <
typename RESULT_TYPE>
23class AmazonWebServiceResult;
50 template <
typename OwnerAliasT = Aws::String>
52 m_ownerAliasHasBeenSet =
true;
53 m_ownerAlias = std::forward<OwnerAliasT>(value);
55 template <
typename OwnerAliasT = Aws::String>
70 template <
typename OutpostArnT = Aws::String>
72 m_outpostArnHasBeenSet =
true;
73 m_outpostArn = std::forward<OutpostArnT>(value);
75 template <
typename OutpostArnT = Aws::String>
87 template <
typename TagsT = Aws::Vector<Tag>>
89 m_tagsHasBeenSet =
true;
90 m_tags = std::forward<TagsT>(value);
92 template <
typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
97 template <
typename TagsT = Tag>
99 m_tagsHasBeenSet =
true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
114 m_storageTierHasBeenSet =
true;
115 m_storageTier = value;
130 template <
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
132 m_restoreExpiryTimeHasBeenSet =
true;
133 m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value);
135 template <
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
148 m_sseTypeHasBeenSet =
true;
164 template <
typename AvailabilityZoneT = Aws::String>
166 m_availabilityZoneHasBeenSet =
true;
167 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
169 template <
typename AvailabilityZoneT = Aws::String>
189 m_transferTypeHasBeenSet =
true;
190 m_transferType = value;
206 m_completionDurationMinutesHasBeenSet =
true;
207 m_completionDurationMinutes = value;
220 template <
typename CompletionTimeT = Aws::Utils::DateTime>
222 m_completionTimeHasBeenSet =
true;
223 m_completionTime = std::forward<CompletionTimeT>(value);
225 template <
typename CompletionTimeT = Aws::Utils::DateTime>
241 m_fullSnapshotSizeInBytesHasBeenSet =
true;
242 m_fullSnapshotSizeInBytes = value;
256 template <
typename SnapshotIdT = Aws::String>
258 m_snapshotIdHasBeenSet =
true;
259 m_snapshotId = std::forward<SnapshotIdT>(value);
261 template <
typename SnapshotIdT = Aws::String>
275 template <
typename VolumeIdT = Aws::String>
277 m_volumeIdHasBeenSet =
true;
278 m_volumeId = std::forward<VolumeIdT>(value);
280 template <
typename VolumeIdT = Aws::String>
293 m_stateHasBeenSet =
true;
310 template <
typename StateMessageT = Aws::String>
312 m_stateMessageHasBeenSet =
true;
313 m_stateMessage = std::forward<StateMessageT>(value);
315 template <
typename StateMessageT = Aws::String>
327 template <
typename StartTimeT = Aws::Utils::DateTime>
329 m_startTimeHasBeenSet =
true;
330 m_startTime = std::forward<StartTimeT>(value);
332 template <
typename StartTimeT = Aws::Utils::DateTime>
344 template <
typename ProgressT = Aws::String>
346 m_progressHasBeenSet =
true;
347 m_progress = std::forward<ProgressT>(value);
349 template <
typename ProgressT = Aws::String>
361 template <
typename OwnerIdT = Aws::String>
363 m_ownerIdHasBeenSet =
true;
364 m_ownerId = std::forward<OwnerIdT>(value);
366 template <
typename OwnerIdT = Aws::String>
378 template <
typename DescriptionT = Aws::String>
380 m_descriptionHasBeenSet =
true;
381 m_description = std::forward<DescriptionT>(value);
383 template <
typename DescriptionT = Aws::String>
396 m_volumeSizeHasBeenSet =
true;
397 m_volumeSize = value;
411 m_encryptedHasBeenSet =
true;
426 template <
typename KmsKeyIdT = Aws::String>
428 m_kmsKeyIdHasBeenSet =
true;
429 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
431 template <
typename KmsKeyIdT = Aws::String>
448 template <
typename DataEncryptionKeyIdT = Aws::String>
450 m_dataEncryptionKeyIdHasBeenSet =
true;
451 m_dataEncryptionKeyId = std::forward<DataEncryptionKeyIdT>(value);
453 template <
typename DataEncryptionKeyIdT = Aws::String>
463 template <
typename ResponseMetadataT = ResponseMetadata>
465 m_responseMetadataHasBeenSet =
true;
466 m_responseMetadata = std::forward<ResponseMetadataT>(value);
468 template <
typename ResponseMetadataT = ResponseMetadata>
493 int m_completionDurationMinutes{0};
497 long long m_fullSnapshotSizeInBytes{0};
517 bool m_encrypted{
false};
523 ResponseMetadata m_responseMetadata;
525 bool m_ownerAliasHasBeenSet =
false;
526 bool m_outpostArnHasBeenSet =
false;
527 bool m_tagsHasBeenSet =
false;
528 bool m_storageTierHasBeenSet =
false;
529 bool m_restoreExpiryTimeHasBeenSet =
false;
530 bool m_sseTypeHasBeenSet =
false;
531 bool m_availabilityZoneHasBeenSet =
false;
532 bool m_transferTypeHasBeenSet =
false;
533 bool m_completionDurationMinutesHasBeenSet =
false;
534 bool m_completionTimeHasBeenSet =
false;
535 bool m_fullSnapshotSizeInBytesHasBeenSet =
false;
536 bool m_snapshotIdHasBeenSet =
false;
537 bool m_volumeIdHasBeenSet =
false;
538 bool m_stateHasBeenSet =
false;
539 bool m_stateMessageHasBeenSet =
false;
540 bool m_startTimeHasBeenSet =
false;
541 bool m_progressHasBeenSet =
false;
542 bool m_ownerIdHasBeenSet =
false;
543 bool m_descriptionHasBeenSet =
false;
544 bool m_volumeSizeHasBeenSet =
false;
545 bool m_encryptedHasBeenSet =
false;
546 bool m_kmsKeyIdHasBeenSet =
false;
547 bool m_dataEncryptionKeyIdHasBeenSet =
false;
548 bool m_responseMetadataHasBeenSet =
false;
CreateSnapshotResponse & WithFullSnapshotSizeInBytes(long long value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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