7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/StorageTier.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/SSEType.h>
13#include <aws/ec2/model/TransferType.h>
14#include <aws/ec2/model/SnapshotState.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16#include <aws/ec2/model/Tag.h>
21template<
typename RESULT_TYPE>
22class AmazonWebServiceResult;
55 template<
typename OwnerAliasT = Aws::String>
56 void SetOwnerAlias(OwnerAliasT&& value) { m_ownerAliasHasBeenSet =
true; m_ownerAlias = std::forward<OwnerAliasT>(value); }
57 template<
typename OwnerAliasT = Aws::String>
69 template<
typename OutpostArnT = Aws::String>
70 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
71 template<
typename OutpostArnT = Aws::String>
80 template<
typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
82 template<
typename TagsT = Aws::Vector<Tag>>
84 template<
typename TagsT = Tag>
107 template<
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
108 void SetRestoreExpiryTime(RestoreExpiryTimeT&& value) { m_restoreExpiryTimeHasBeenSet =
true; m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value); }
109 template<
typename RestoreExpiryTimeT = Aws::Utils::DateTime>
129 template<
typename AvailabilityZoneT = Aws::String>
130 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
131 template<
typename AvailabilityZoneT = Aws::String>
167 template<
typename CompletionTimeT = Aws::Utils::DateTime>
168 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet =
true; m_completionTime = std::forward<CompletionTimeT>(value); }
169 template<
typename CompletionTimeT = Aws::Utils::DateTime>
191 template<
typename SnapshotIdT = Aws::String>
192 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet =
true; m_snapshotId = std::forward<SnapshotIdT>(value); }
193 template<
typename SnapshotIdT = Aws::String>
204 template<
typename VolumeIdT = Aws::String>
205 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet =
true; m_volumeId = std::forward<VolumeIdT>(value); }
206 template<
typename VolumeIdT = Aws::String>
227 template<
typename StateMessageT = Aws::String>
228 void SetStateMessage(StateMessageT&& value) { m_stateMessageHasBeenSet =
true; m_stateMessage = std::forward<StateMessageT>(value); }
229 template<
typename StateMessageT = Aws::String>
238 template<
typename StartTimeT = Aws::Utils::DateTime>
239 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
240 template<
typename StartTimeT = Aws::Utils::DateTime>
249 template<
typename ProgressT = Aws::String>
250 void SetProgress(ProgressT&& value) { m_progressHasBeenSet =
true; m_progress = std::forward<ProgressT>(value); }
251 template<
typename ProgressT = Aws::String>
260 template<
typename OwnerIdT = Aws::String>
261 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
262 template<
typename OwnerIdT = Aws::String>
271 template<
typename DescriptionT = Aws::String>
272 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
273 template<
typename DescriptionT = Aws::String>
282 inline void SetVolumeSize(
int value) { m_volumeSizeHasBeenSet =
true; m_volumeSize = value; }
291 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
301 template<
typename KmsKeyIdT = Aws::String>
302 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
303 template<
typename KmsKeyIdT = Aws::String>
317 template<
typename DataEncryptionKeyIdT = Aws::String>
318 void SetDataEncryptionKeyId(DataEncryptionKeyIdT&& value) { m_dataEncryptionKeyIdHasBeenSet =
true; m_dataEncryptionKeyId = std::forward<DataEncryptionKeyIdT>(value); }
319 template<
typename DataEncryptionKeyIdT = Aws::String>
326 template<
typename ResponseMetadataT = ResponseMetadata>
327 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet =
true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
328 template<
typename ResponseMetadataT = ResponseMetadata>
334 bool m_ownerAliasHasBeenSet =
false;
337 bool m_outpostArnHasBeenSet =
false;
340 bool m_tagsHasBeenSet =
false;
343 bool m_storageTierHasBeenSet =
false;
346 bool m_restoreExpiryTimeHasBeenSet =
false;
349 bool m_sseTypeHasBeenSet =
false;
352 bool m_availabilityZoneHasBeenSet =
false;
355 bool m_transferTypeHasBeenSet =
false;
357 int m_completionDurationMinutes{0};
358 bool m_completionDurationMinutesHasBeenSet =
false;
361 bool m_completionTimeHasBeenSet =
false;
363 long long m_fullSnapshotSizeInBytes{0};
364 bool m_fullSnapshotSizeInBytesHasBeenSet =
false;
367 bool m_snapshotIdHasBeenSet =
false;
370 bool m_volumeIdHasBeenSet =
false;
373 bool m_stateHasBeenSet =
false;
376 bool m_stateMessageHasBeenSet =
false;
379 bool m_startTimeHasBeenSet =
false;
382 bool m_progressHasBeenSet =
false;
385 bool m_ownerIdHasBeenSet =
false;
388 bool m_descriptionHasBeenSet =
false;
391 bool m_volumeSizeHasBeenSet =
false;
393 bool m_encrypted{
false};
394 bool m_encryptedHasBeenSet =
false;
397 bool m_kmsKeyIdHasBeenSet =
false;
400 bool m_dataEncryptionKeyIdHasBeenSet =
false;
402 ResponseMetadata m_responseMetadata;
403 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