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/OperatorResponse.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/Tag.h>
15#include <aws/ec2/model/VolumeAttachment.h>
16#include <aws/ec2/model/VolumeState.h>
17#include <aws/ec2/model/VolumeType.h>
22template <
typename RESULT_TYPE>
23class AmazonWebServiceResult;
48 template <
typename AvailabilityZoneIdT = Aws::String>
50 m_availabilityZoneIdHasBeenSet =
true;
51 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
53 template <
typename AvailabilityZoneIdT = Aws::String>
65 template <
typename OutpostArnT = Aws::String>
67 m_outpostArnHasBeenSet =
true;
68 m_outpostArn = std::forward<OutpostArnT>(value);
70 template <
typename OutpostArnT = Aws::String>
83 template <
typename SourceVolumeIdT = Aws::String>
85 m_sourceVolumeIdHasBeenSet =
true;
86 m_sourceVolumeId = std::forward<SourceVolumeIdT>(value);
88 template <
typename SourceVolumeIdT = Aws::String>
105 m_iopsHasBeenSet =
true;
119 template <
typename TagsT = Aws::Vector<Tag>>
121 m_tagsHasBeenSet =
true;
122 m_tags = std::forward<TagsT>(value);
124 template <
typename TagsT = Aws::Vector<Tag>>
126 SetTags(std::forward<TagsT>(value));
129 template <
typename TagsT = Tag>
131 m_tagsHasBeenSet =
true;
132 m_tags.emplace_back(std::forward<TagsT>(value));
143 m_volumeTypeHasBeenSet =
true;
144 m_volumeType = value;
159 m_fastRestoredHasBeenSet =
true;
160 m_fastRestored = value;
174 m_multiAttachEnabledHasBeenSet =
true;
175 m_multiAttachEnabled = value;
189 m_throughputHasBeenSet =
true;
190 m_throughput = value;
205 m_sseTypeHasBeenSet =
true;
219 template <
typename OperatorT = OperatorResponse>
221 m_operatorHasBeenSet =
true;
222 m_operator = std::forward<OperatorT>(value);
224 template <
typename OperatorT = OperatorResponse>
239 m_volumeInitializationRateHasBeenSet =
true;
240 m_volumeInitializationRate = value;
253 template <
typename VolumeIdT = Aws::String>
255 m_volumeIdHasBeenSet =
true;
256 m_volumeId = std::forward<VolumeIdT>(value);
258 template <
typename VolumeIdT = Aws::String>
271 m_sizeHasBeenSet =
true;
285 template <
typename SnapshotIdT = Aws::String>
287 m_snapshotIdHasBeenSet =
true;
288 m_snapshotId = std::forward<SnapshotIdT>(value);
290 template <
typename SnapshotIdT = Aws::String>
302 template <
typename AvailabilityZoneT = Aws::String>
304 m_availabilityZoneHasBeenSet =
true;
305 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
307 template <
typename AvailabilityZoneT = Aws::String>
320 m_stateHasBeenSet =
true;
334 template <
typename CreateTimeT = Aws::Utils::DateTime>
336 m_createTimeHasBeenSet =
true;
337 m_createTime = std::forward<CreateTimeT>(value);
339 template <
typename CreateTimeT = Aws::Utils::DateTime>
352 template <
typename AttachmentsT = Aws::Vector<VolumeAttachment>>
354 m_attachmentsHasBeenSet =
true;
355 m_attachments = std::forward<AttachmentsT>(value);
357 template <
typename AttachmentsT = Aws::Vector<VolumeAttachment>>
362 template <
typename AttachmentsT = VolumeAttachment>
364 m_attachmentsHasBeenSet =
true;
365 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
376 m_encryptedHasBeenSet =
true;
391 template <
typename KmsKeyIdT = Aws::String>
393 m_kmsKeyIdHasBeenSet =
true;
394 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
396 template <
typename KmsKeyIdT = Aws::String>
406 template <
typename ResponseMetadataT = ResponseMetadata>
408 m_responseMetadataHasBeenSet =
true;
409 m_responseMetadata = std::forward<ResponseMetadataT>(value);
411 template <
typename ResponseMetadataT = ResponseMetadata>
430 bool m_fastRestored{
false};
432 bool m_multiAttachEnabled{
false};
438 OperatorResponse m_operator;
440 int m_volumeInitializationRate{0};
456 bool m_encrypted{
false};
460 ResponseMetadata m_responseMetadata;
461 bool m_availabilityZoneIdHasBeenSet =
false;
462 bool m_outpostArnHasBeenSet =
false;
463 bool m_sourceVolumeIdHasBeenSet =
false;
464 bool m_iopsHasBeenSet =
false;
465 bool m_tagsHasBeenSet =
false;
466 bool m_volumeTypeHasBeenSet =
false;
467 bool m_fastRestoredHasBeenSet =
false;
468 bool m_multiAttachEnabledHasBeenSet =
false;
469 bool m_throughputHasBeenSet =
false;
470 bool m_sseTypeHasBeenSet =
false;
471 bool m_operatorHasBeenSet =
false;
472 bool m_volumeInitializationRateHasBeenSet =
false;
473 bool m_volumeIdHasBeenSet =
false;
474 bool m_sizeHasBeenSet =
false;
475 bool m_snapshotIdHasBeenSet =
false;
476 bool m_availabilityZoneHasBeenSet =
false;
477 bool m_stateHasBeenSet =
false;
478 bool m_createTimeHasBeenSet =
false;
479 bool m_attachmentsHasBeenSet =
false;
480 bool m_encryptedHasBeenSet =
false;
481 bool m_kmsKeyIdHasBeenSet =
false;
482 bool m_responseMetadataHasBeenSet =
false;
CreateVolumeResponse & WithVolumeType(VolumeType value)
const Aws::String & GetSnapshotId() const
SSEType GetSseType() const
void SetSseType(SSEType value)
const Aws::String & GetAvailabilityZone() const
void SetOutpostArn(OutpostArnT &&value)
CreateVolumeResponse & WithThroughput(int value)
const Aws::String & GetAvailabilityZoneId() const
CreateVolumeResponse & AddTags(TagsT &&value)
bool GetFastRestored() const
CreateVolumeResponse & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetKmsKeyId() const
CreateVolumeResponse & WithAvailabilityZone(AvailabilityZoneT &&value)
VolumeState GetState() const
AWS_EC2_API CreateVolumeResponse()=default
void SetMultiAttachEnabled(bool value)
const Aws::String & GetSourceVolumeId() const
const Aws::Vector< VolumeAttachment > & GetAttachments() const
void SetEncrypted(bool value)
void SetState(VolumeState value)
CreateVolumeResponse & WithCreateTime(CreateTimeT &&value)
void SetSnapshotId(SnapshotIdT &&value)
void SetVolumeInitializationRate(int value)
void SetVolumeType(VolumeType value)
CreateVolumeResponse & WithSize(int value)
AWS_EC2_API CreateVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateVolumeResponse & WithSourceVolumeId(SourceVolumeIdT &&value)
const Aws::String & GetVolumeId() const
CreateVolumeResponse & AddAttachments(AttachmentsT &&value)
AWS_EC2_API CreateVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetFastRestored(bool value)
CreateVolumeResponse & WithTags(TagsT &&value)
CreateVolumeResponse & WithMultiAttachEnabled(bool value)
CreateVolumeResponse & WithResponseMetadata(ResponseMetadataT &&value)
void SetThroughput(int value)
CreateVolumeResponse & WithIops(int value)
void SetTags(TagsT &&value)
void SetOperator(OperatorT &&value)
CreateVolumeResponse & WithVolumeInitializationRate(int value)
bool GetMultiAttachEnabled() const
CreateVolumeResponse & WithState(VolumeState value)
bool GetEncrypted() const
void SetCreateTime(CreateTimeT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateVolumeResponse & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetSourceVolumeId(SourceVolumeIdT &&value)
VolumeType GetVolumeType() const
CreateVolumeResponse & WithAttachments(AttachmentsT &&value)
int GetVolumeInitializationRate() const
void SetKmsKeyId(KmsKeyIdT &&value)
CreateVolumeResponse & WithVolumeId(VolumeIdT &&value)
CreateVolumeResponse & WithOutpostArn(OutpostArnT &&value)
int GetThroughput() const
void SetResponseMetadata(ResponseMetadataT &&value)
CreateVolumeResponse & WithSnapshotId(SnapshotIdT &&value)
CreateVolumeResponse & WithOperator(OperatorT &&value)
CreateVolumeResponse & WithFastRestored(bool value)
void SetAttachments(AttachmentsT &&value)
const OperatorResponse & GetOperator() const
CreateVolumeResponse & WithSseType(SSEType value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetVolumeId(VolumeIdT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
CreateVolumeResponse & WithEncrypted(bool value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument