AWS SDK for C++

AWS SDK for C++ Version 1.11.633

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& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
54 template<typename AvailabilityZoneIdT = Aws::String>
55 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
56 template<typename AvailabilityZoneIdT = Aws::String>
57 CreateVolumeResponse& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
65 template<typename OutpostArnT = Aws::String>
66 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
67 template<typename OutpostArnT = Aws::String>
68 CreateVolumeResponse& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
70
72
79 inline int GetIops() const { return m_iops; }
80 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
81 inline CreateVolumeResponse& WithIops(int value) { SetIops(value); return *this;}
83
85
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CreateVolumeResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CreateVolumeResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96
98
101 inline VolumeType GetVolumeType() const { return m_volumeType; }
102 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
103 inline CreateVolumeResponse& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
105
107
111 inline bool GetFastRestored() const { return m_fastRestored; }
112 inline void SetFastRestored(bool value) { m_fastRestoredHasBeenSet = true; m_fastRestored = value; }
113 inline CreateVolumeResponse& WithFastRestored(bool value) { SetFastRestored(value); return *this;}
115
117
120 inline bool GetMultiAttachEnabled() const { return m_multiAttachEnabled; }
121 inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; }
122 inline CreateVolumeResponse& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;}
124
126
129 inline int GetThroughput() const { return m_throughput; }
130 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
131 inline CreateVolumeResponse& WithThroughput(int value) { SetThroughput(value); return *this;}
133
135
139 inline SSEType GetSseType() const { return m_sseType; }
140 inline void SetSseType(SSEType value) { m_sseTypeHasBeenSet = true; m_sseType = value; }
141 inline CreateVolumeResponse& WithSseType(SSEType value) { SetSseType(value); return *this;}
143
145
148 inline const OperatorResponse& GetOperator() const { return m_operator; }
149 template<typename OperatorT = OperatorResponse>
150 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
151 template<typename OperatorT = OperatorResponse>
152 CreateVolumeResponse& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
154
156
161 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
162 inline void SetVolumeInitializationRate(int value) { m_volumeInitializationRateHasBeenSet = true; m_volumeInitializationRate = value; }
165
167
170 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
171 template<typename VolumeIdT = Aws::String>
172 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
173 template<typename VolumeIdT = Aws::String>
174 CreateVolumeResponse& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
176
178
181 inline int GetSize() const { return m_size; }
182 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
183 inline CreateVolumeResponse& WithSize(int value) { SetSize(value); return *this;}
185
187
190 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
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>
194 CreateVolumeResponse& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
196
198
201 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
202 template<typename AvailabilityZoneT = Aws::String>
203 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
204 template<typename AvailabilityZoneT = Aws::String>
205 CreateVolumeResponse& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
207
209
212 inline VolumeState GetState() const { return m_state; }
213 inline void SetState(VolumeState value) { m_stateHasBeenSet = true; m_state = value; }
214 inline CreateVolumeResponse& WithState(VolumeState value) { SetState(value); return *this;}
216
218
221 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
222 template<typename CreateTimeT = Aws::Utils::DateTime>
223 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
224 template<typename CreateTimeT = Aws::Utils::DateTime>
225 CreateVolumeResponse& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
227
229
233 inline const Aws::Vector<VolumeAttachment>& GetAttachments() const { return m_attachments; }
234 template<typename AttachmentsT = Aws::Vector<VolumeAttachment>>
235 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
236 template<typename AttachmentsT = Aws::Vector<VolumeAttachment>>
237 CreateVolumeResponse& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
238 template<typename AttachmentsT = VolumeAttachment>
239 CreateVolumeResponse& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
241
243
246 inline bool GetEncrypted() const { return m_encrypted; }
247 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
248 inline CreateVolumeResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
250
252
256 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
257 template<typename KmsKeyIdT = Aws::String>
258 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
259 template<typename KmsKeyIdT = Aws::String>
260 CreateVolumeResponse& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
262
264
265 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
266 template<typename ResponseMetadataT = ResponseMetadata>
267 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
268 template<typename ResponseMetadataT = ResponseMetadata>
269 CreateVolumeResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
271 private:
272
273 Aws::String m_availabilityZoneId;
274 bool m_availabilityZoneIdHasBeenSet = false;
275
276 Aws::String m_outpostArn;
277 bool m_outpostArnHasBeenSet = false;
278
279 int m_iops{0};
280 bool m_iopsHasBeenSet = false;
281
282 Aws::Vector<Tag> m_tags;
283 bool m_tagsHasBeenSet = false;
284
285 VolumeType m_volumeType{VolumeType::NOT_SET};
286 bool m_volumeTypeHasBeenSet = false;
287
288 bool m_fastRestored{false};
289 bool m_fastRestoredHasBeenSet = false;
290
291 bool m_multiAttachEnabled{false};
292 bool m_multiAttachEnabledHasBeenSet = false;
293
294 int m_throughput{0};
295 bool m_throughputHasBeenSet = false;
296
297 SSEType m_sseType{SSEType::NOT_SET};
298 bool m_sseTypeHasBeenSet = false;
299
300 OperatorResponse m_operator;
301 bool m_operatorHasBeenSet = false;
302
303 int m_volumeInitializationRate{0};
304 bool m_volumeInitializationRateHasBeenSet = false;
305
306 Aws::String m_volumeId;
307 bool m_volumeIdHasBeenSet = false;
308
309 int m_size{0};
310 bool m_sizeHasBeenSet = false;
311
312 Aws::String m_snapshotId;
313 bool m_snapshotIdHasBeenSet = false;
314
315 Aws::String m_availabilityZone;
316 bool m_availabilityZoneHasBeenSet = false;
317
319 bool m_stateHasBeenSet = false;
320
321 Aws::Utils::DateTime m_createTime{};
322 bool m_createTimeHasBeenSet = false;
323
324 Aws::Vector<VolumeAttachment> m_attachments;
325 bool m_attachmentsHasBeenSet = false;
326
327 bool m_encrypted{false};
328 bool m_encryptedHasBeenSet = false;
329
330 Aws::String m_kmsKeyId;
331 bool m_kmsKeyIdHasBeenSet = false;
332
333 ResponseMetadata m_responseMetadata;
334 bool m_responseMetadataHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace EC2
339} // namespace Aws
CreateVolumeResponse & WithVolumeType(VolumeType value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetAvailabilityZone() const
CreateVolumeResponse & WithThroughput(int value)
const Aws::String & GetAvailabilityZoneId() const
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 & WithAvailabilityZoneId(AvailabilityZoneIdT &&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)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&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