AWS SDK for C++  1.9.106
AWS SDK for C++
Ebs.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace AutoScaling
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Ebs();
36  Ebs(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
48 
53  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
54 
59  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
60 
65  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
66 
71  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
72 
77  inline Ebs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
78 
83  inline Ebs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
84 
89  inline Ebs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
90 
91 
102  inline int GetVolumeSize() const{ return m_volumeSize; }
103 
114  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
115 
126  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
127 
138  inline Ebs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
139 
140 
148  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
149 
157  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
158 
166  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
167 
175  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
176 
184  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
185 
193  inline Ebs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
194 
202  inline Ebs& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
203 
211  inline Ebs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
212 
213 
218  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
219 
224  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
225 
230  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
231 
236  inline Ebs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
237 
238 
256  inline int GetIops() const{ return m_iops; }
257 
275  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
276 
294  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
295 
313  inline Ebs& WithIops(int value) { SetIops(value); return *this;}
314 
315 
342  inline bool GetEncrypted() const{ return m_encrypted; }
343 
370  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
371 
398  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
399 
426  inline Ebs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
427 
428 
432  inline int GetThroughput() const{ return m_throughput; }
433 
437  inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
438 
442  inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
443 
447  inline Ebs& WithThroughput(int value) { SetThroughput(value); return *this;}
448 
449  private:
450 
451  Aws::String m_snapshotId;
452  bool m_snapshotIdHasBeenSet;
453 
454  int m_volumeSize;
455  bool m_volumeSizeHasBeenSet;
456 
457  Aws::String m_volumeType;
458  bool m_volumeTypeHasBeenSet;
459 
460  bool m_deleteOnTermination;
461  bool m_deleteOnTerminationHasBeenSet;
462 
463  int m_iops;
464  bool m_iopsHasBeenSet;
465 
466  bool m_encrypted;
467  bool m_encryptedHasBeenSet;
468 
469  int m_throughput;
470  bool m_throughputHasBeenSet;
471  };
472 
473 } // namespace Model
474 } // namespace AutoScaling
475 } // namespace Aws
Aws::AutoScaling::Model::Ebs::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: Ebs.h:65
Aws::AutoScaling::Model::Ebs::WithIops
Ebs & WithIops(int value)
Definition: Ebs.h:313
Aws::AutoScaling::Model::Ebs::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::Ebs::WithDeleteOnTermination
Ebs & WithDeleteOnTermination(bool value)
Definition: Ebs.h:236
Aws::AutoScaling::Model::Ebs::WithSnapshotId
Ebs & WithSnapshotId(const char *value)
Definition: Ebs.h:89
Aws::AutoScaling::Model::Ebs::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: Ebs.h:114
Aws::AutoScaling::Model::Ebs::WithThroughput
Ebs & WithThroughput(int value)
Definition: Ebs.h:447
Aws::AutoScaling::Model::Ebs::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: Ebs.h:230
Aws::AutoScaling::Model::Ebs::GetVolumeType
const Aws::String & GetVolumeType() const
Definition: Ebs.h:148
Aws::AutoScaling::Model::Ebs::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: Ebs.h:218
AWSStreamFwd.h
Aws::AutoScaling::Model::Ebs::WithSnapshotId
Ebs & WithSnapshotId(Aws::String &&value)
Definition: Ebs.h:83
Aws::AutoScaling::Model::Ebs::WithVolumeSize
Ebs & WithVolumeSize(int value)
Definition: Ebs.h:138
Aws::AutoScaling::Model::Ebs::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: Ebs.h:59
Aws::AutoScaling::Model::Ebs::GetIops
int GetIops() const
Definition: Ebs.h:256
Aws::AutoScaling::Model::Ebs::SetEncrypted
void SetEncrypted(bool value)
Definition: Ebs.h:398
Aws::AutoScaling::Model::Ebs::WithVolumeType
Ebs & WithVolumeType(const Aws::String &value)
Definition: Ebs.h:193
Aws::AutoScaling::Model::Ebs::ThroughputHasBeenSet
bool ThroughputHasBeenSet() const
Definition: Ebs.h:437
Aws::AutoScaling::Model::Ebs::SetThroughput
void SetThroughput(int value)
Definition: Ebs.h:442
Aws::AutoScaling::Model::Ebs::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: Ebs.h:71
Aws::AutoScaling::Model::Ebs::SetVolumeType
void SetVolumeType(const char *value)
Definition: Ebs.h:184
Aws::AutoScaling::Model::Ebs::operator=
Ebs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::Ebs::WithVolumeType
Ebs & WithVolumeType(Aws::String &&value)
Definition: Ebs.h:202
Aws::AutoScaling::Model::Ebs::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::Ebs::GetEncrypted
bool GetEncrypted() const
Definition: Ebs.h:342
Aws::AutoScaling::Model::Ebs::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: Ebs.h:47
Aws::AutoScaling::Model::Ebs::SetVolumeType
void SetVolumeType(const Aws::String &value)
Definition: Ebs.h:166
Aws::AutoScaling::Model::Ebs::SetVolumeType
void SetVolumeType(Aws::String &&value)
Definition: Ebs.h:175
AWSString.h
Aws::AutoScaling::Model::Ebs::WithSnapshotId
Ebs & WithSnapshotId(const Aws::String &value)
Definition: Ebs.h:77
Aws::AutoScaling::Model::Ebs::SetVolumeSize
void SetVolumeSize(int value)
Definition: Ebs.h:126
Aws::AutoScaling::Model::Ebs::SetIops
void SetIops(int value)
Definition: Ebs.h:294
Aws::AutoScaling::Model::Ebs
Definition: Ebs.h:33
Aws::AutoScaling::Model::Ebs::GetThroughput
int GetThroughput() const
Definition: Ebs.h:432
Aws::AutoScaling::Model::Ebs::WithEncrypted
Ebs & WithEncrypted(bool value)
Definition: Ebs.h:426
Aws::AutoScaling::Model::Ebs::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: Ebs.h:370
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::Ebs::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: Ebs.h:275
Aws::AutoScaling::Model::Ebs::WithVolumeType
Ebs & WithVolumeType(const char *value)
Definition: Ebs.h:211
Aws::AutoScaling::Model::Ebs::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: Ebs.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::Ebs::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: Ebs.h:157
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::Ebs::Ebs
Ebs(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::Ebs::Ebs
Ebs()
Aws::AutoScaling::Model::Ebs::GetVolumeSize
int GetVolumeSize() const
Definition: Ebs.h:102
Aws::AutoScaling::Model::Ebs::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: Ebs.h:224