AWS SDK for C++  1.9.71
AWS SDK for C++
SnapshotInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
50  inline const Aws::String& GetDescription() const{ return m_description; }
51 
56  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 
62  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 
68  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 
74  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 
80  inline SnapshotInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 
86  inline SnapshotInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 
92  inline SnapshotInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
93 
94 
98  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 
103  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 
108  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 
113  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
114 
118  inline SnapshotInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
119 
123  inline SnapshotInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
124 
128  inline SnapshotInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
129 
133  inline SnapshotInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
134 
135 
139  inline bool GetEncrypted() const{ return m_encrypted; }
140 
144  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
145 
149  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
150 
154  inline SnapshotInfo& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
155 
156 
160  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
161 
165  inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
166 
170  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
171 
175  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
176 
180  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
181 
185  inline SnapshotInfo& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
186 
190  inline SnapshotInfo& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
191 
195  inline SnapshotInfo& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
196 
197 
201  inline const SnapshotState& GetState() const{ return m_state; }
202 
206  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
207 
211  inline void SetState(const SnapshotState& value) { m_stateHasBeenSet = true; m_state = value; }
212 
216  inline void SetState(SnapshotState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
217 
221  inline SnapshotInfo& WithState(const SnapshotState& value) { SetState(value); return *this;}
222 
226  inline SnapshotInfo& WithState(SnapshotState&& value) { SetState(std::move(value)); return *this;}
227 
228 
232  inline int GetVolumeSize() const{ return m_volumeSize; }
233 
237  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
238 
242  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
243 
247  inline SnapshotInfo& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
248 
249 
254  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
255 
260  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
261 
266  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
267 
272  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
273 
278  inline SnapshotInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
279 
284  inline SnapshotInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
285 
286 
290  inline const Aws::String& GetProgress() const{ return m_progress; }
291 
295  inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
296 
300  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
301 
305  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
306 
310  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
311 
315  inline SnapshotInfo& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
316 
320  inline SnapshotInfo& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
321 
325  inline SnapshotInfo& WithProgress(const char* value) { SetProgress(value); return *this;}
326 
327 
331  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
332 
336  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
337 
341  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
342 
346  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
347 
351  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
352 
356  inline SnapshotInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
357 
361  inline SnapshotInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
362 
366  inline SnapshotInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
367 
368 
372  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
373 
377  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
378 
382  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
383 
387  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
388 
392  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
393 
397  inline SnapshotInfo& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
398 
402  inline SnapshotInfo& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
403 
407  inline SnapshotInfo& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
408 
409 
417  inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
418 
426  inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
427 
435  inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
436 
444  inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
445 
453  inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
454 
462  inline SnapshotInfo& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
463 
471  inline SnapshotInfo& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
472 
480  inline SnapshotInfo& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
481 
482  private:
483 
484  Aws::String m_description;
485  bool m_descriptionHasBeenSet;
486 
487  Aws::Vector<Tag> m_tags;
488  bool m_tagsHasBeenSet;
489 
490  bool m_encrypted;
491  bool m_encryptedHasBeenSet;
492 
493  Aws::String m_volumeId;
494  bool m_volumeIdHasBeenSet;
495 
496  SnapshotState m_state;
497  bool m_stateHasBeenSet;
498 
499  int m_volumeSize;
500  bool m_volumeSizeHasBeenSet;
501 
502  Aws::Utils::DateTime m_startTime;
503  bool m_startTimeHasBeenSet;
504 
505  Aws::String m_progress;
506  bool m_progressHasBeenSet;
507 
508  Aws::String m_ownerId;
509  bool m_ownerIdHasBeenSet;
510 
511  Aws::String m_snapshotId;
512  bool m_snapshotIdHasBeenSet;
513 
514  Aws::String m_outpostArn;
515  bool m_outpostArnHasBeenSet;
516  };
517 
518 } // namespace Model
519 } // namespace EC2
520 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SnapshotInfo::GetProgress
const Aws::String & GetProgress() const
Definition: SnapshotInfo.h:290
Aws::EC2::Model::SnapshotInfo::WithTags
SnapshotInfo & WithTags(const Aws::Vector< Tag > &value)
Definition: SnapshotInfo.h:118
Aws::EC2::Model::SnapshotInfo::WithVolumeId
SnapshotInfo & WithVolumeId(const Aws::String &value)
Definition: SnapshotInfo.h:185
Aws::EC2::Model::SnapshotInfo::SetProgress
void SetProgress(const char *value)
Definition: SnapshotInfo.h:310
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::SnapshotInfo::WithVolumeSize
SnapshotInfo & WithVolumeSize(int value)
Definition: SnapshotInfo.h:247
Aws::EC2::Model::SnapshotInfo::WithProgress
SnapshotInfo & WithProgress(Aws::String &&value)
Definition: SnapshotInfo.h:320
Aws::EC2::Model::SnapshotInfo::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: SnapshotInfo.h:56
Aws::EC2::Model::SnapshotInfo::GetState
const SnapshotState & GetState() const
Definition: SnapshotInfo.h:201
Aws::EC2::Model::SnapshotInfo::WithOwnerId
SnapshotInfo & WithOwnerId(const Aws::String &value)
Definition: SnapshotInfo.h:356
Aws::EC2::Model::SnapshotInfo::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: SnapshotInfo.h:372
Aws::EC2::Model::SnapshotInfo::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: SnapshotInfo.h:254
Aws::EC2::Model::SnapshotInfo::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: SnapshotInfo.h:175
Aws::EC2::Model::SnapshotInfo::WithTags
SnapshotInfo & WithTags(Aws::Vector< Tag > &&value)
Definition: SnapshotInfo.h:123
Aws::EC2::Model::SnapshotInfo::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: SnapshotInfo.h:266
Aws::EC2::Model::SnapshotInfo::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: SnapshotInfo.h:165
Aws::EC2::Model::SnapshotInfo::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: SnapshotInfo.h:98
Aws::EC2::Model::SnapshotInfo::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: SnapshotInfo.h:377
Aws::EC2::Model::SnapshotInfo::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: SnapshotInfo.h:237
DateTime.h
Aws::EC2::Model::SnapshotInfo::WithProgress
SnapshotInfo & WithProgress(const char *value)
Definition: SnapshotInfo.h:325
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SnapshotInfo
Definition: SnapshotInfo.h:36
Aws::EC2::Model::SnapshotInfo::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: SnapshotInfo.h:260
Aws::EC2::Model::SnapshotInfo::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: SnapshotInfo.h:144
Aws::EC2::Model::SnapshotInfo::WithSnapshotId
SnapshotInfo & WithSnapshotId(const Aws::String &value)
Definition: SnapshotInfo.h:397
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::SnapshotInfo::SetOutpostArn
void SetOutpostArn(const Aws::String &value)
Definition: SnapshotInfo.h:435
Aws::EC2::Model::SnapshotInfo::SetState
void SetState(const SnapshotState &value)
Definition: SnapshotInfo.h:211
AWSStreamFwd.h
Aws::EC2::Model::SnapshotInfo::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SnapshotInfo.h:103
AWSVector.h
Tag.h
Aws::EC2::Model::SnapshotInfo::WithDescription
SnapshotInfo & WithDescription(Aws::String &&value)
Definition: SnapshotInfo.h:86
Aws::EC2::Model::SnapshotInfo::WithProgress
SnapshotInfo & WithProgress(const Aws::String &value)
Definition: SnapshotInfo.h:315
Aws::EC2::Model::SnapshotInfo::SetEncrypted
void SetEncrypted(bool value)
Definition: SnapshotInfo.h:149
Aws::EC2::Model::SnapshotInfo::SetProgress
void SetProgress(const Aws::String &value)
Definition: SnapshotInfo.h:300
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SnapshotInfo::SetState
void SetState(SnapshotState &&value)
Definition: SnapshotInfo.h:216
Aws::EC2::Model::SnapshotInfo::StateHasBeenSet
bool StateHasBeenSet() const
Definition: SnapshotInfo.h:206
Aws::EC2::Model::SnapshotInfo::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: SnapshotInfo.h:108
Aws::EC2::Model::SnapshotInfo::AddTags
SnapshotInfo & AddTags(const Tag &value)
Definition: SnapshotInfo.h:128
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SnapshotInfo::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: SnapshotInfo.h:382
Aws::EC2::Model::SnapshotInfo::WithOutpostArn
SnapshotInfo & WithOutpostArn(const char *value)
Definition: SnapshotInfo.h:480
Aws::EC2::Model::SnapshotInfo::OutpostArnHasBeenSet
bool OutpostArnHasBeenSet() const
Definition: SnapshotInfo.h:426
Aws::EC2::Model::SnapshotInfo::SetVolumeId
void SetVolumeId(const char *value)
Definition: SnapshotInfo.h:180
Aws::EC2::Model::SnapshotInfo::WithOwnerId
SnapshotInfo & WithOwnerId(const char *value)
Definition: SnapshotInfo.h:366
Aws::EC2::Model::SnapshotInfo::SnapshotInfo
SnapshotInfo()
Aws::EC2::Model::SnapshotInfo::GetEncrypted
bool GetEncrypted() const
Definition: SnapshotInfo.h:139
Aws::EC2::Model::SnapshotInfo::WithOutpostArn
SnapshotInfo & WithOutpostArn(Aws::String &&value)
Definition: SnapshotInfo.h:471
Aws::EC2::Model::SnapshotInfo::WithState
SnapshotInfo & WithState(const SnapshotState &value)
Definition: SnapshotInfo.h:221
Aws::EC2::Model::SnapshotInfo::SetDescription
void SetDescription(Aws::String &&value)
Definition: SnapshotInfo.h:68
Aws::EC2::Model::SnapshotInfo::WithOutpostArn
SnapshotInfo & WithOutpostArn(const Aws::String &value)
Definition: SnapshotInfo.h:462
Aws::EC2::Model::SnapshotInfo::WithState
SnapshotInfo & WithState(SnapshotState &&value)
Definition: SnapshotInfo.h:226
Aws::EC2::Model::SnapshotInfo::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: SnapshotInfo.h:331
AWSString.h
Aws::EC2::Model::SnapshotInfo::WithDescription
SnapshotInfo & WithDescription(const char *value)
Definition: SnapshotInfo.h:92
Aws::EC2::Model::SnapshotInfo::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: SnapshotInfo.h:341
Aws::EC2::Model::SnapshotState
SnapshotState
Definition: SnapshotState.h:17
Aws::EC2::Model::SnapshotInfo::SetOwnerId
void SetOwnerId(const char *value)
Definition: SnapshotInfo.h:351
Aws::EC2::Model::SnapshotInfo::AddTags
SnapshotInfo & AddTags(Tag &&value)
Definition: SnapshotInfo.h:133
Aws::EC2::Model::SnapshotInfo::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: SnapshotInfo.h:392
Aws::EC2::Model::SnapshotInfo::WithVolumeId
SnapshotInfo & WithVolumeId(const char *value)
Definition: SnapshotInfo.h:195
Aws::EC2::Model::SnapshotInfo::GetOutpostArn
const Aws::String & GetOutpostArn() const
Definition: SnapshotInfo.h:417
Aws::EC2::Model::SnapshotInfo::WithSnapshotId
SnapshotInfo & WithSnapshotId(Aws::String &&value)
Definition: SnapshotInfo.h:402
Aws::EC2::Model::SnapshotInfo::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: SnapshotInfo.h:346
Aws::EC2::Model::SnapshotInfo::GetDescription
const Aws::String & GetDescription() const
Definition: SnapshotInfo.h:50
Aws::EC2::Model::SnapshotInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SnapshotInfo::SetDescription
void SetDescription(const char *value)
Definition: SnapshotInfo.h:74
Aws::EC2::Model::SnapshotInfo::operator=
SnapshotInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotInfo::WithDescription
SnapshotInfo & WithDescription(const Aws::String &value)
Definition: SnapshotInfo.h:80
Aws::EC2::Model::SnapshotInfo::WithEncrypted
SnapshotInfo & WithEncrypted(bool value)
Definition: SnapshotInfo.h:154
Aws::EC2::Model::SnapshotInfo::WithStartTime
SnapshotInfo & WithStartTime(Aws::Utils::DateTime &&value)
Definition: SnapshotInfo.h:284
Aws::EC2::Model::SnapshotInfo::SetOutpostArn
void SetOutpostArn(const char *value)
Definition: SnapshotInfo.h:453
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SnapshotInfo::SnapshotInfo
SnapshotInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SnapshotInfo::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: SnapshotInfo.h:113
Aws::EC2::Model::SnapshotInfo::GetVolumeSize
int GetVolumeSize() const
Definition: SnapshotInfo.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SnapshotInfo::WithStartTime
SnapshotInfo & WithStartTime(const Aws::Utils::DateTime &value)
Definition: SnapshotInfo.h:278
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SnapshotInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SnapshotInfo::ProgressHasBeenSet
bool ProgressHasBeenSet() const
Definition: SnapshotInfo.h:295
Aws::EC2::Model::SnapshotInfo::WithSnapshotId
SnapshotInfo & WithSnapshotId(const char *value)
Definition: SnapshotInfo.h:407
Aws::EC2::Model::SnapshotInfo::SetProgress
void SetProgress(Aws::String &&value)
Definition: SnapshotInfo.h:305
Aws::EC2::Model::SnapshotInfo::SetVolumeSize
void SetVolumeSize(int value)
Definition: SnapshotInfo.h:242
Aws::EC2::Model::SnapshotInfo::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: SnapshotInfo.h:170
Aws::EC2::Model::SnapshotInfo::SetOutpostArn
void SetOutpostArn(Aws::String &&value)
Definition: SnapshotInfo.h:444
SnapshotState.h
Aws::EC2::Model::SnapshotInfo::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: SnapshotInfo.h:272
Aws::EC2::Model::SnapshotInfo::WithOwnerId
SnapshotInfo & WithOwnerId(Aws::String &&value)
Definition: SnapshotInfo.h:361
EC2_EXPORTS.h
Aws::EC2::Model::SnapshotInfo::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: SnapshotInfo.h:336
Aws::EC2::Model::SnapshotInfo::WithVolumeId
SnapshotInfo & WithVolumeId(Aws::String &&value)
Definition: SnapshotInfo.h:190
Aws::EC2::Model::SnapshotInfo::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: SnapshotInfo.h:160
Aws::EC2::Model::SnapshotInfo::SetDescription
void SetDescription(const Aws::String &value)
Definition: SnapshotInfo.h:62
Aws::EC2::Model::SnapshotInfo::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: SnapshotInfo.h:387