AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateVolumeResponse.h
1
6#pragma once
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/VolumeType.h>
11#include <aws/ec2/model/SSEType.h>
12#include <aws/ec2/model/OperatorResponse.h>
13#include <aws/ec2/model/VolumeState.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16#include <aws/ec2/model/Tag.h>
17#include <aws/ec2/model/VolumeAttachment.h>
18#include <utility>
19
20namespace Aws
21{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Xml
28{
29 class XmlDocument;
30} // namespace Xml
31} // namespace Utils
32namespace EC2
33{
34namespace Model
35{
42 {
43 public:
44 AWS_EC2_API CreateVolumeResponse() = default;
47
48
50
53 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
54 template<typename OutpostArnT = Aws::String>
55 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
56 template<typename OutpostArnT = Aws::String>
57 CreateVolumeResponse& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
59
61
68 inline int GetIops() const { return m_iops; }
69 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
70 inline CreateVolumeResponse& WithIops(int value) { SetIops(value); return *this;}
72
74
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 CreateVolumeResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 CreateVolumeResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85
87
90 inline VolumeType GetVolumeType() const { return m_volumeType; }
91 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
92 inline CreateVolumeResponse& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
94
96
100 inline bool GetFastRestored() const { return m_fastRestored; }
101 inline void SetFastRestored(bool value) { m_fastRestoredHasBeenSet = true; m_fastRestored = value; }
102 inline CreateVolumeResponse& WithFastRestored(bool value) { SetFastRestored(value); return *this;}
104
106
109 inline bool GetMultiAttachEnabled() const { return m_multiAttachEnabled; }
110 inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
111 inline CreateVolumeResponse& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
113
115
118 inline int GetThroughput() const { return m_throughput; }
119 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
120 inline CreateVolumeResponse& WithThroughput(int value) { SetThroughput(value); return *this;}
122
124
128 inline SSEType GetSseType() const { return m_sseType; }
129 inline void SetSseType(SSEType value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
130 inline CreateVolumeResponse& WithSseType(SSEType value) { SetSseType(value); return *this;}
132
134
137 inline const OperatorResponse& GetOperator() const { return m_operator; }
138 template<typename OperatorT = OperatorResponse>
139 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
140 template<typename OperatorT = OperatorResponse>
141 CreateVolumeResponse& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
143
145
150 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
151 inline void SetVolumeInitializationRate(int value) { m_volumeInitializationRateHasBeenSet = true; m_volumeInitializationRate = value; }
154
156
159 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
160 template<typename VolumeIdT = Aws::String>
161 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
162 template<typename VolumeIdT = Aws::String>
163 CreateVolumeResponse& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
165
167
170 inline int GetSize() const { return m_size; }
171 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
172 inline CreateVolumeResponse& WithSize(int value) { SetSize(value); return *this;}
174
176
179 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
180 template<typename SnapshotIdT = Aws::String>
181 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
182 template<typename SnapshotIdT = Aws::String>
183 CreateVolumeResponse& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
185
187
190 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
191 template<typename AvailabilityZoneT = Aws::String>
192 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
193 template<typename AvailabilityZoneT = Aws::String>
194 CreateVolumeResponse& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
196
198
201 inline VolumeState GetState() const { return m_state; }
202 inline void SetState(VolumeState value) { m_stateHasBeenSet = true; m_state = value; }
203 inline CreateVolumeResponse& WithState(VolumeState value) { SetState(value); return *this;}
205
207
210 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
211 template<typename CreateTimeT = Aws::Utils::DateTime>
212 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
213 template<typename CreateTimeT = Aws::Utils::DateTime>
214 CreateVolumeResponse& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
216
218
222 inline const Aws::Vector<VolumeAttachment>& GetAttachments() const { return m_attachments; }
223 template<typename AttachmentsT = Aws::Vector<VolumeAttachment>>
224 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
225 template<typename AttachmentsT = Aws::Vector<VolumeAttachment>>
226 CreateVolumeResponse& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
227 template<typename AttachmentsT = VolumeAttachment>
228 CreateVolumeResponse& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
230
232
235 inline bool GetEncrypted() const { return m_encrypted; }
236 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
237 inline CreateVolumeResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
239
241
245 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
246 template<typename KmsKeyIdT = Aws::String>
247 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
248 template<typename KmsKeyIdT = Aws::String>
249 CreateVolumeResponse& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
251
253
254 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
255 template<typename ResponseMetadataT = ResponseMetadata>
256 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
257 template<typename ResponseMetadataT = ResponseMetadata>
258 CreateVolumeResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
260 private:
261
262 Aws::String m_outpostArn;
263 bool m_outpostArnHasBeenSet = false;
264
265 int m_iops{0};
266 bool m_iopsHasBeenSet = false;
267
268 Aws::Vector<Tag> m_tags;
269 bool m_tagsHasBeenSet = false;
270
271 VolumeType m_volumeType{VolumeType::NOT_SET};
272 bool m_volumeTypeHasBeenSet = false;
273
274 bool m_fastRestored{false};
275 bool m_fastRestoredHasBeenSet = false;
276
277 bool m_multiAttachEnabled{false};
278 bool m_multiAttachEnabledHasBeenSet = false;
279
280 int m_throughput{0};
281 bool m_throughputHasBeenSet = false;
282
283 SSEType m_sseType{SSEType::NOT_SET};
284 bool m_sseTypeHasBeenSet = false;
285
286 OperatorResponse m_operator;
287 bool m_operatorHasBeenSet = false;
288
289 int m_volumeInitializationRate{0};
290 bool m_volumeInitializationRateHasBeenSet = false;
291
292 Aws::String m_volumeId;
293 bool m_volumeIdHasBeenSet = false;
294
295 int m_size{0};
296 bool m_sizeHasBeenSet = false;
297
298 Aws::String m_snapshotId;
299 bool m_snapshotIdHasBeenSet = false;
300
301 Aws::String m_availabilityZone;
302 bool m_availabilityZoneHasBeenSet = false;
303
305 bool m_stateHasBeenSet = false;
306
307 Aws::Utils::DateTime m_createTime{};
308 bool m_createTimeHasBeenSet = false;
309
310 Aws::Vector<VolumeAttachment> m_attachments;
311 bool m_attachmentsHasBeenSet = false;
312
313 bool m_encrypted{false};
314 bool m_encryptedHasBeenSet = false;
315
316 Aws::String m_kmsKeyId;
317 bool m_kmsKeyIdHasBeenSet = false;
318
319 ResponseMetadata m_responseMetadata;
320 bool m_responseMetadataHasBeenSet = false;
321 };
322
323} // namespace Model
324} // namespace EC2
325} // namespace Aws
CreateVolumeResponse & WithVolumeType(VolumeType value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetAvailabilityZone() const
CreateVolumeResponse & WithThroughput(int value)
CreateVolumeResponse & AddTags(TagsT &&value)
CreateVolumeResponse & WithKmsKeyId(KmsKeyIdT &&value)
CreateVolumeResponse & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API CreateVolumeResponse()=default
const Aws::Vector< VolumeAttachment > & GetAttachments() const
CreateVolumeResponse & WithCreateTime(CreateTimeT &&value)
CreateVolumeResponse & WithSize(int value)
AWS_EC2_API CreateVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateVolumeResponse & AddAttachments(AttachmentsT &&value)
AWS_EC2_API CreateVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateVolumeResponse & WithTags(TagsT &&value)
CreateVolumeResponse & WithMultiAttachEnabled(bool value)
CreateVolumeResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateVolumeResponse & WithIops(int value)
CreateVolumeResponse & WithVolumeInitializationRate(int value)
CreateVolumeResponse & WithState(VolumeState value)
const ResponseMetadata & GetResponseMetadata() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateVolumeResponse & WithAttachments(AttachmentsT &&value)
CreateVolumeResponse & WithVolumeId(VolumeIdT &&value)
CreateVolumeResponse & WithOutpostArn(OutpostArnT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
CreateVolumeResponse & WithSnapshotId(SnapshotIdT &&value)
CreateVolumeResponse & WithOperator(OperatorT &&value)
CreateVolumeResponse & WithFastRestored(bool value)
const OperatorResponse & GetOperator() const
CreateVolumeResponse & WithSseType(SSEType 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