AWS SDK for C++  1.9.160
AWS SDK for C++
StartSnapshotResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.h>
9 #include <aws/ebs/model/Status.h>
12 #include <aws/ebs/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace EBS
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetDescription() const{ return m_description; }
43 
47  inline void SetDescription(const Aws::String& value) { m_description = value; }
48 
52  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
53 
57  inline void SetDescription(const char* value) { m_description.assign(value); }
58 
62  inline StartSnapshotResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 
67  inline StartSnapshotResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 
72  inline StartSnapshotResult& WithDescription(const char* value) { SetDescription(value); return *this;}
73 
74 
78  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
79 
83  inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
84 
88  inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
89 
93  inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
94 
98  inline StartSnapshotResult& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
99 
103  inline StartSnapshotResult& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
104 
108  inline StartSnapshotResult& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
109 
110 
114  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
115 
119  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
120 
124  inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
125 
129  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
130 
134  inline StartSnapshotResult& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
135 
139  inline StartSnapshotResult& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
140 
144  inline StartSnapshotResult& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
145 
146 
150  inline const Status& GetStatus() const{ return m_status; }
151 
155  inline void SetStatus(const Status& value) { m_status = value; }
156 
160  inline void SetStatus(Status&& value) { m_status = std::move(value); }
161 
165  inline StartSnapshotResult& WithStatus(const Status& value) { SetStatus(value); return *this;}
166 
170  inline StartSnapshotResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
171 
172 
176  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
177 
181  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
182 
186  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
187 
191  inline StartSnapshotResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
192 
196  inline StartSnapshotResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
197 
198 
202  inline long long GetVolumeSize() const{ return m_volumeSize; }
203 
207  inline void SetVolumeSize(long long value) { m_volumeSize = value; }
208 
212  inline StartSnapshotResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
213 
214 
218  inline int GetBlockSize() const{ return m_blockSize; }
219 
223  inline void SetBlockSize(int value) { m_blockSize = value; }
224 
228  inline StartSnapshotResult& WithBlockSize(int value) { SetBlockSize(value); return *this;}
229 
230 
238  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
239 
247  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
248 
256  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
257 
265  inline StartSnapshotResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
266 
274  inline StartSnapshotResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
275 
283  inline StartSnapshotResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
284 
292  inline StartSnapshotResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
293 
294 
298  inline const Aws::String& GetParentSnapshotId() const{ return m_parentSnapshotId; }
299 
303  inline void SetParentSnapshotId(const Aws::String& value) { m_parentSnapshotId = value; }
304 
308  inline void SetParentSnapshotId(Aws::String&& value) { m_parentSnapshotId = std::move(value); }
309 
313  inline void SetParentSnapshotId(const char* value) { m_parentSnapshotId.assign(value); }
314 
318  inline StartSnapshotResult& WithParentSnapshotId(const Aws::String& value) { SetParentSnapshotId(value); return *this;}
319 
323  inline StartSnapshotResult& WithParentSnapshotId(Aws::String&& value) { SetParentSnapshotId(std::move(value)); return *this;}
324 
328  inline StartSnapshotResult& WithParentSnapshotId(const char* value) { SetParentSnapshotId(value); return *this;}
329 
330 
335  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
336 
341  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
342 
347  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
348 
353  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
354 
359  inline StartSnapshotResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
360 
365  inline StartSnapshotResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
366 
371  inline StartSnapshotResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
372 
373  private:
374 
375  Aws::String m_description;
376 
377  Aws::String m_snapshotId;
378 
379  Aws::String m_ownerId;
380 
381  Status m_status;
382 
383  Aws::Utils::DateTime m_startTime;
384 
385  long long m_volumeSize;
386 
387  int m_blockSize;
388 
389  Aws::Vector<Tag> m_tags;
390 
391  Aws::String m_parentSnapshotId;
392 
393  Aws::String m_kmsKeyArn;
394  };
395 
396 } // namespace Model
397 } // namespace EBS
398 } // namespace Aws
Aws::EBS::Model::StartSnapshotResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: StartSnapshotResult.h:52
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EBS::Model::StartSnapshotResult::WithStartTime
StartSnapshotResult & WithStartTime(Aws::Utils::DateTime &&value)
Definition: StartSnapshotResult.h:196
Status.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Tag.h
Aws::EBS::Model::StartSnapshotResult::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: StartSnapshotResult.h:186
Aws::EBS::Model::StartSnapshotResult::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: StartSnapshotResult.h:78
Aws::EBS::Model::StartSnapshotResult::WithTags
StartSnapshotResult & WithTags(Aws::Vector< Tag > &&value)
Definition: StartSnapshotResult.h:274
Aws::EBS::Model::StartSnapshotResult::WithSnapshotId
StartSnapshotResult & WithSnapshotId(Aws::String &&value)
Definition: StartSnapshotResult.h:103
Aws::EBS::Model::StartSnapshotResult::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: StartSnapshotResult.h:181
Aws::EBS::Model::StartSnapshotResult::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: StartSnapshotResult.h:124
Aws::EBS::Model::StartSnapshotResult::WithParentSnapshotId
StartSnapshotResult & WithParentSnapshotId(Aws::String &&value)
Definition: StartSnapshotResult.h:323
Aws::EBS::Model::StartSnapshotResult::WithTags
StartSnapshotResult & WithTags(const Aws::Vector< Tag > &value)
Definition: StartSnapshotResult.h:265
Aws::EBS::Model::StartSnapshotResult::SetParentSnapshotId
void SetParentSnapshotId(const char *value)
Definition: StartSnapshotResult.h:313
DateTime.h
Aws::EBS::Model::StartSnapshotResult::WithKmsKeyArn
StartSnapshotResult & WithKmsKeyArn(const Aws::String &value)
Definition: StartSnapshotResult.h:359
Aws::EBS::Model::StartSnapshotResult::SetDescription
void SetDescription(const char *value)
Definition: StartSnapshotResult.h:57
Aws::EBS::Model::StartSnapshotResult::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: StartSnapshotResult.h:83
EBS_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EBS::Model::StartSnapshotResult::operator=
StartSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EBS::Model::StartSnapshotResult::StartSnapshotResult
StartSnapshotResult()
Aws::EBS::Model::StartSnapshotResult::WithParentSnapshotId
StartSnapshotResult & WithParentSnapshotId(const char *value)
Definition: StartSnapshotResult.h:328
Aws::EBS::Model::StartSnapshotResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: StartSnapshotResult.h:256
Aws::EBS::Model::Tag
Definition: Tag.h:32
AWSVector.h
Aws::EBS::Model::StartSnapshotResult::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: StartSnapshotResult.h:114
Aws::EBS::Model::StartSnapshotResult::SetOwnerId
void SetOwnerId(const char *value)
Definition: StartSnapshotResult.h:129
Aws::EBS::Model::StartSnapshotResult::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: StartSnapshotResult.h:119
Aws::EBS::Model::StartSnapshotResult::WithSnapshotId
StartSnapshotResult & WithSnapshotId(const char *value)
Definition: StartSnapshotResult.h:108
Aws::EBS::Model::StartSnapshotResult::AddTags
StartSnapshotResult & AddTags(Tag &&value)
Definition: StartSnapshotResult.h:292
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::StartSnapshotResult::WithDescription
StartSnapshotResult & WithDescription(const Aws::String &value)
Definition: StartSnapshotResult.h:62
Aws::EBS::Model::StartSnapshotResult::WithStartTime
StartSnapshotResult & WithStartTime(const Aws::Utils::DateTime &value)
Definition: StartSnapshotResult.h:191
Aws::EBS::Model::StartSnapshotResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: StartSnapshotResult.h:238
Aws::EBS::Model::Status
Status
Definition: Status.h:17
Aws::EBS::Model::StartSnapshotResult::GetDescription
const Aws::String & GetDescription() const
Definition: StartSnapshotResult.h:42
Aws::EBS::Model::StartSnapshotResult::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: StartSnapshotResult.h:93
Aws::EBS::Model::StartSnapshotResult::GetVolumeSize
long long GetVolumeSize() const
Definition: StartSnapshotResult.h:202
Aws::EBS::Model::StartSnapshotResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: StartSnapshotResult.h:47
Aws::EBS::Model::StartSnapshotResult::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: StartSnapshotResult.h:88
Aws::EBS::Model::StartSnapshotResult::GetBlockSize
int GetBlockSize() const
Definition: StartSnapshotResult.h:218
Aws::EBS::Model::StartSnapshotResult::WithKmsKeyArn
StartSnapshotResult & WithKmsKeyArn(Aws::String &&value)
Definition: StartSnapshotResult.h:365
Aws::EBS::Model::StartSnapshotResult::WithVolumeSize
StartSnapshotResult & WithVolumeSize(long long value)
Definition: StartSnapshotResult.h:212
Aws::EBS::Model::StartSnapshotResult::SetVolumeSize
void SetVolumeSize(long long value)
Definition: StartSnapshotResult.h:207
AWSString.h
Aws::EBS::Model::StartSnapshotResult::WithStatus
StartSnapshotResult & WithStatus(Status &&value)
Definition: StartSnapshotResult.h:170
Aws::EBS::Model::StartSnapshotResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: StartSnapshotResult.h:247
Aws::EBS::Model::StartSnapshotResult::WithKmsKeyArn
StartSnapshotResult & WithKmsKeyArn(const char *value)
Definition: StartSnapshotResult.h:371
Aws::EBS::Model::StartSnapshotResult::GetParentSnapshotId
const Aws::String & GetParentSnapshotId() const
Definition: StartSnapshotResult.h:298
Aws::EBS::Model::StartSnapshotResult::SetParentSnapshotId
void SetParentSnapshotId(const Aws::String &value)
Definition: StartSnapshotResult.h:303
Aws::EBS::Model::StartSnapshotResult::SetStatus
void SetStatus(Status &&value)
Definition: StartSnapshotResult.h:160
Aws::EBS::Model::StartSnapshotResult::WithDescription
StartSnapshotResult & WithDescription(const char *value)
Definition: StartSnapshotResult.h:72
Aws::EBS::Model::StartSnapshotResult::SetParentSnapshotId
void SetParentSnapshotId(Aws::String &&value)
Definition: StartSnapshotResult.h:308
Aws::EBS::Model::StartSnapshotResult::WithSnapshotId
StartSnapshotResult & WithSnapshotId(const Aws::String &value)
Definition: StartSnapshotResult.h:98
Aws::EBS::Model::StartSnapshotResult::WithBlockSize
StartSnapshotResult & WithBlockSize(int value)
Definition: StartSnapshotResult.h:228
Aws::EBS::Model::StartSnapshotResult::GetStatus
const Status & GetStatus() const
Definition: StartSnapshotResult.h:150
Aws::EBS::Model::StartSnapshotResult::WithOwnerId
StartSnapshotResult & WithOwnerId(const Aws::String &value)
Definition: StartSnapshotResult.h:134
Aws::EBS::Model::StartSnapshotResult::SetKmsKeyArn
void SetKmsKeyArn(const Aws::String &value)
Definition: StartSnapshotResult.h:341
Aws::EBS::Model::StartSnapshotResult::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: StartSnapshotResult.h:176
Aws::EBS::Model::StartSnapshotResult::GetKmsKeyArn
const Aws::String & GetKmsKeyArn() const
Definition: StartSnapshotResult.h:335
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::EBS::Model::StartSnapshotResult::WithParentSnapshotId
StartSnapshotResult & WithParentSnapshotId(const Aws::String &value)
Definition: StartSnapshotResult.h:318
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::StartSnapshotResult::WithDescription
StartSnapshotResult & WithDescription(Aws::String &&value)
Definition: StartSnapshotResult.h:67
Aws::EBS::Model::StartSnapshotResult::SetKmsKeyArn
void SetKmsKeyArn(const char *value)
Definition: StartSnapshotResult.h:353
Aws::EBS::Model::StartSnapshotResult::WithStatus
StartSnapshotResult & WithStatus(const Status &value)
Definition: StartSnapshotResult.h:165
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::StartSnapshotResult::AddTags
StartSnapshotResult & AddTags(const Tag &value)
Definition: StartSnapshotResult.h:283
Aws::EBS::Model::StartSnapshotResult::WithOwnerId
StartSnapshotResult & WithOwnerId(const char *value)
Definition: StartSnapshotResult.h:144
Aws::EBS::Model::StartSnapshotResult
Definition: StartSnapshotResult.h:32
Aws::EBS::Model::StartSnapshotResult::StartSnapshotResult
StartSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EBS::Model::StartSnapshotResult::SetBlockSize
void SetBlockSize(int value)
Definition: StartSnapshotResult.h:223
Aws::EBS::Model::StartSnapshotResult::SetKmsKeyArn
void SetKmsKeyArn(Aws::String &&value)
Definition: StartSnapshotResult.h:347
Aws::EBS::Model::StartSnapshotResult::WithOwnerId
StartSnapshotResult & WithOwnerId(Aws::String &&value)
Definition: StartSnapshotResult.h:139
Aws::EBS::Model::StartSnapshotResult::SetStatus
void SetStatus(const Status &value)
Definition: StartSnapshotResult.h:155