AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSnapshotResponse.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/StorageTier.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/SSEType.h>
13#include <aws/ec2/model/SnapshotState.h>
14#include <aws/ec2/model/ResponseMetadata.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Xml
26{
27 class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace EC2
31{
32namespace Model
33{
40 {
41 public:
45
46
48
53 inline const Aws::String& GetOwnerAlias() const{ return m_ownerAlias; }
54 inline void SetOwnerAlias(const Aws::String& value) { m_ownerAlias = value; }
55 inline void SetOwnerAlias(Aws::String&& value) { m_ownerAlias = std::move(value); }
56 inline void SetOwnerAlias(const char* value) { m_ownerAlias.assign(value); }
57 inline CreateSnapshotResponse& WithOwnerAlias(const Aws::String& value) { SetOwnerAlias(value); return *this;}
58 inline CreateSnapshotResponse& WithOwnerAlias(Aws::String&& value) { SetOwnerAlias(std::move(value)); return *this;}
59 inline CreateSnapshotResponse& WithOwnerAlias(const char* value) { SetOwnerAlias(value); return *this;}
61
63
69 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
70 inline void SetOutpostArn(const Aws::String& value) { m_outpostArn = value; }
71 inline void SetOutpostArn(Aws::String&& value) { m_outpostArn = std::move(value); }
72 inline void SetOutpostArn(const char* value) { m_outpostArn.assign(value); }
73 inline CreateSnapshotResponse& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
74 inline CreateSnapshotResponse& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
75 inline CreateSnapshotResponse& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
77
79
82 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
83 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
84 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
85 inline CreateSnapshotResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
86 inline CreateSnapshotResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
87 inline CreateSnapshotResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
88 inline CreateSnapshotResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
90
92
98 inline const StorageTier& GetStorageTier() const{ return m_storageTier; }
99 inline void SetStorageTier(const StorageTier& value) { m_storageTier = value; }
100 inline void SetStorageTier(StorageTier&& value) { m_storageTier = std::move(value); }
101 inline CreateSnapshotResponse& WithStorageTier(const StorageTier& value) { SetStorageTier(value); return *this;}
102 inline CreateSnapshotResponse& WithStorageTier(StorageTier&& value) { SetStorageTier(std::move(value)); return *this;}
104
106
111 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const{ return m_restoreExpiryTime; }
112 inline void SetRestoreExpiryTime(const Aws::Utils::DateTime& value) { m_restoreExpiryTime = value; }
113 inline void SetRestoreExpiryTime(Aws::Utils::DateTime&& value) { m_restoreExpiryTime = std::move(value); }
117
119
122 inline const SSEType& GetSseType() const{ return m_sseType; }
123 inline void SetSseType(const SSEType& value) { m_sseType = value; }
124 inline void SetSseType(SSEType&& value) { m_sseType = std::move(value); }
125 inline CreateSnapshotResponse& WithSseType(const SSEType& value) { SetSseType(value); return *this;}
126 inline CreateSnapshotResponse& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;}
128
130
134 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
135 inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
136 inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
137 inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
138 inline CreateSnapshotResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
139 inline CreateSnapshotResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
140 inline CreateSnapshotResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
142
144
149 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
150 inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
151 inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
152 inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
153 inline CreateSnapshotResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
154 inline CreateSnapshotResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
155 inline CreateSnapshotResponse& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
157
159
162 inline const SnapshotState& GetState() const{ return m_state; }
163 inline void SetState(const SnapshotState& value) { m_state = value; }
164 inline void SetState(SnapshotState&& value) { m_state = std::move(value); }
165 inline CreateSnapshotResponse& WithState(const SnapshotState& value) { SetState(value); return *this;}
166 inline CreateSnapshotResponse& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;}
168
170
176 inline const Aws::String& GetStateMessage() const{ return m_stateMessage; }
177 inline void SetStateMessage(const Aws::String& value) { m_stateMessage = value; }
178 inline void SetStateMessage(Aws::String&& value) { m_stateMessage = std::move(value); }
179 inline void SetStateMessage(const char* value) { m_stateMessage.assign(value); }
180 inline CreateSnapshotResponse& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;}
181 inline CreateSnapshotResponse& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;}
182 inline CreateSnapshotResponse& WithStateMessage(const char* value) { SetStateMessage(value); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
190 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
191 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
192 inline CreateSnapshotResponse& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
193 inline CreateSnapshotResponse& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
195
197
200 inline const Aws::String& GetProgress() const{ return m_progress; }
201 inline void SetProgress(const Aws::String& value) { m_progress = value; }
202 inline void SetProgress(Aws::String&& value) { m_progress = std::move(value); }
203 inline void SetProgress(const char* value) { m_progress.assign(value); }
204 inline CreateSnapshotResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
205 inline CreateSnapshotResponse& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
206 inline CreateSnapshotResponse& WithProgress(const char* value) { SetProgress(value); return *this;}
208
210
213 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
214 inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
215 inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
216 inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
217 inline CreateSnapshotResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
218 inline CreateSnapshotResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
219 inline CreateSnapshotResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
221
223
226 inline const Aws::String& GetDescription() const{ return m_description; }
227 inline void SetDescription(const Aws::String& value) { m_description = value; }
228 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
229 inline void SetDescription(const char* value) { m_description.assign(value); }
230 inline CreateSnapshotResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
231 inline CreateSnapshotResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
232 inline CreateSnapshotResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
234
236
239 inline int GetVolumeSize() const{ return m_volumeSize; }
240 inline void SetVolumeSize(int value) { m_volumeSize = value; }
241 inline CreateSnapshotResponse& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
243
245
248 inline bool GetEncrypted() const{ return m_encrypted; }
249 inline void SetEncrypted(bool value) { m_encrypted = value; }
250 inline CreateSnapshotResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
252
254
258 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
259 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
260 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
261 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
262 inline CreateSnapshotResponse& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
263 inline CreateSnapshotResponse& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
264 inline CreateSnapshotResponse& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
266
268
276 inline const Aws::String& GetDataEncryptionKeyId() const{ return m_dataEncryptionKeyId; }
277 inline void SetDataEncryptionKeyId(const Aws::String& value) { m_dataEncryptionKeyId = value; }
278 inline void SetDataEncryptionKeyId(Aws::String&& value) { m_dataEncryptionKeyId = std::move(value); }
279 inline void SetDataEncryptionKeyId(const char* value) { m_dataEncryptionKeyId.assign(value); }
281 inline CreateSnapshotResponse& WithDataEncryptionKeyId(Aws::String&& value) { SetDataEncryptionKeyId(std::move(value)); return *this;}
282 inline CreateSnapshotResponse& WithDataEncryptionKeyId(const char* value) { SetDataEncryptionKeyId(value); return *this;}
284
286
287 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
288 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
289 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
291 inline CreateSnapshotResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
293 private:
294
295 Aws::String m_ownerAlias;
296
297 Aws::String m_outpostArn;
298
299 Aws::Vector<Tag> m_tags;
300
301 StorageTier m_storageTier;
302
303 Aws::Utils::DateTime m_restoreExpiryTime;
304
305 SSEType m_sseType;
306
307 Aws::String m_snapshotId;
308
309 Aws::String m_volumeId;
310
311 SnapshotState m_state;
312
313 Aws::String m_stateMessage;
314
315 Aws::Utils::DateTime m_startTime;
316
317 Aws::String m_progress;
318
319 Aws::String m_ownerId;
320
321 Aws::String m_description;
322
323 int m_volumeSize;
324
325 bool m_encrypted;
326
327 Aws::String m_kmsKeyId;
328
329 Aws::String m_dataEncryptionKeyId;
330
331 ResponseMetadata m_responseMetadata;
332 };
333
334} // namespace Model
335} // namespace EC2
336} // namespace Aws
CreateSnapshotResponse & WithTags(const Aws::Vector< Tag > &value)
void SetRestoreExpiryTime(Aws::Utils::DateTime &&value)
void SetOwnerAlias(const Aws::String &value)
CreateSnapshotResponse & AddTags(Tag &&value)
CreateSnapshotResponse & WithKmsKeyId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
CreateSnapshotResponse & WithOutpostArn(Aws::String &&value)
void SetRestoreExpiryTime(const Aws::Utils::DateTime &value)
void SetResponseMetadata(ResponseMetadata &&value)
CreateSnapshotResponse & WithVolumeId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateSnapshotResponse & WithOwnerId(const char *value)
CreateSnapshotResponse & WithSnapshotId(const char *value)
CreateSnapshotResponse & WithOwnerId(Aws::String &&value)
CreateSnapshotResponse & WithKmsKeyId(Aws::String &&value)
CreateSnapshotResponse & WithStartTime(Aws::Utils::DateTime &&value)
CreateSnapshotResponse & AddTags(const Tag &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateSnapshotResponse & WithState(SnapshotState &&value)
CreateSnapshotResponse & WithVolumeId(Aws::String &&value)
void SetStorageTier(const StorageTier &value)
void SetDataEncryptionKeyId(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
CreateSnapshotResponse & WithDescription(const char *value)
CreateSnapshotResponse & WithEncrypted(bool value)
CreateSnapshotResponse & WithStateMessage(const Aws::String &value)
CreateSnapshotResponse & WithStorageTier(const StorageTier &value)
void SetSnapshotId(const Aws::String &value)
CreateSnapshotResponse & WithRestoreExpiryTime(Aws::Utils::DateTime &&value)
CreateSnapshotResponse & WithVolumeId(const char *value)
CreateSnapshotResponse & WithVolumeSize(int value)
CreateSnapshotResponse & WithProgress(const char *value)
CreateSnapshotResponse & WithTags(Aws::Vector< Tag > &&value)
CreateSnapshotResponse & WithRestoreExpiryTime(const Aws::Utils::DateTime &value)
CreateSnapshotResponse & WithOutpostArn(const char *value)
CreateSnapshotResponse & WithStateMessage(const char *value)
CreateSnapshotResponse & WithOwnerAlias(const Aws::String &value)
CreateSnapshotResponse & WithSseType(SSEType &&value)
CreateSnapshotResponse & WithOwnerId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetDescription(const Aws::String &value)
CreateSnapshotResponse & WithDescription(Aws::String &&value)
CreateSnapshotResponse & WithOwnerAlias(const char *value)
CreateSnapshotResponse & WithProgress(const Aws::String &value)
const Aws::String & GetDataEncryptionKeyId() const
CreateSnapshotResponse & WithStartTime(const Aws::Utils::DateTime &value)
CreateSnapshotResponse & WithSnapshotId(const Aws::String &value)
CreateSnapshotResponse & WithResponseMetadata(ResponseMetadata &&value)
CreateSnapshotResponse & WithStorageTier(StorageTier &&value)
CreateSnapshotResponse & WithSseType(const SSEType &value)
CreateSnapshotResponse & WithState(const SnapshotState &value)
const ResponseMetadata & GetResponseMetadata() const
CreateSnapshotResponse & WithDataEncryptionKeyId(const Aws::String &value)
CreateSnapshotResponse & WithProgress(Aws::String &&value)
AWS_EC2_API CreateSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSnapshotResponse & WithOutpostArn(const Aws::String &value)
CreateSnapshotResponse & WithResponseMetadata(const ResponseMetadata &value)
AWS_EC2_API CreateSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetStartTime(Aws::Utils::DateTime &&value)
CreateSnapshotResponse & WithStateMessage(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetResponseMetadata(const ResponseMetadata &value)
CreateSnapshotResponse & WithOwnerAlias(Aws::String &&value)
CreateSnapshotResponse & WithSnapshotId(Aws::String &&value)
CreateSnapshotResponse & WithDataEncryptionKeyId(const char *value)
CreateSnapshotResponse & WithDescription(const Aws::String &value)
void SetStateMessage(const Aws::String &value)
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
void SetState(const SnapshotState &value)
CreateSnapshotResponse & WithKmsKeyId(const char *value)
CreateSnapshotResponse & WithDataEncryptionKeyId(Aws::String &&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