AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ebs.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
32 class Ebs
33 {
34 public:
35 AWS_AUTOSCALING_API Ebs();
36 AWS_AUTOSCALING_API Ebs(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_AUTOSCALING_API Ebs& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
49 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
50 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
51 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
52 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
53 inline Ebs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
54 inline Ebs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
55 inline Ebs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
57
59
69 inline int GetVolumeSize() const{ return m_volumeSize; }
70 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
71 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
72 inline Ebs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
74
76
83 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
84 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
85 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
86 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
87 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
88 inline Ebs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
89 inline Ebs& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
90 inline Ebs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
92
94
98 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
99 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
100 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
101 inline Ebs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
103
105
122 inline int GetIops() const{ return m_iops; }
123 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
124 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
125 inline Ebs& WithIops(int value) { SetIops(value); return *this;}
127
129
147 inline bool GetEncrypted() const{ return m_encrypted; }
148 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
149 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
150 inline Ebs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
152
154
157 inline int GetThroughput() const{ return m_throughput; }
158 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
159 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
160 inline Ebs& WithThroughput(int value) { SetThroughput(value); return *this;}
162 private:
163
164 Aws::String m_snapshotId;
165 bool m_snapshotIdHasBeenSet = false;
166
167 int m_volumeSize;
168 bool m_volumeSizeHasBeenSet = false;
169
170 Aws::String m_volumeType;
171 bool m_volumeTypeHasBeenSet = false;
172
173 bool m_deleteOnTermination;
174 bool m_deleteOnTerminationHasBeenSet = false;
175
176 int m_iops;
177 bool m_iopsHasBeenSet = false;
178
179 bool m_encrypted;
180 bool m_encryptedHasBeenSet = false;
181
182 int m_throughput;
183 bool m_throughputHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace AutoScaling
188} // namespace Aws
void SetVolumeType(const Aws::String &value)
Definition Ebs.h:85
bool SnapshotIdHasBeenSet() const
Definition Ebs.h:49
Ebs & WithSnapshotId(const Aws::String &value)
Definition Ebs.h:53
const Aws::String & GetSnapshotId() const
Definition Ebs.h:48
Ebs & WithVolumeType(const Aws::String &value)
Definition Ebs.h:88
Ebs & WithVolumeType(Aws::String &&value)
Definition Ebs.h:89
int GetThroughput() const
Definition Ebs.h:157
Ebs & WithSnapshotId(Aws::String &&value)
Definition Ebs.h:54
void SetSnapshotId(const Aws::String &value)
Definition Ebs.h:50
bool VolumeTypeHasBeenSet() const
Definition Ebs.h:84
void SetIops(int value)
Definition Ebs.h:124
void SetSnapshotId(const char *value)
Definition Ebs.h:52
bool ThroughputHasBeenSet() const
Definition Ebs.h:158
Ebs & WithEncrypted(bool value)
Definition Ebs.h:150
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Ebs & WithThroughput(int value)
Definition Ebs.h:160
void SetSnapshotId(Aws::String &&value)
Definition Ebs.h:51
AWS_AUTOSCALING_API Ebs(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVolumeType(const char *value)
Definition Ebs.h:87
int GetVolumeSize() const
Definition Ebs.h:69
Ebs & WithDeleteOnTermination(bool value)
Definition Ebs.h:101
bool GetDeleteOnTermination() const
Definition Ebs.h:98
bool EncryptedHasBeenSet() const
Definition Ebs.h:148
void SetVolumeSize(int value)
Definition Ebs.h:71
void SetVolumeType(Aws::String &&value)
Definition Ebs.h:86
AWS_AUTOSCALING_API Ebs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Ebs & WithVolumeSize(int value)
Definition Ebs.h:72
bool VolumeSizeHasBeenSet() const
Definition Ebs.h:70
void SetEncrypted(bool value)
Definition Ebs.h:149
bool DeleteOnTerminationHasBeenSet() const
Definition Ebs.h:99
Ebs & WithVolumeType(const char *value)
Definition Ebs.h:90
bool GetEncrypted() const
Definition Ebs.h:147
Ebs & WithSnapshotId(const char *value)
Definition Ebs.h:55
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDeleteOnTermination(bool value)
Definition Ebs.h:100
bool IopsHasBeenSet() const
Definition Ebs.h:123
AWS_AUTOSCALING_API Ebs()
Ebs & WithIops(int value)
Definition Ebs.h:125
const Aws::String & GetVolumeType() const
Definition Ebs.h:83
void SetThroughput(int value)
Definition Ebs.h:159
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream