AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
28class Ebs {
29 public:
30 AWS_AUTOSCALING_API Ebs() = default;
31 AWS_AUTOSCALING_API Ebs(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_AUTOSCALING_API Ebs& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
43 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
44 template <typename SnapshotIdT = Aws::String>
45 void SetSnapshotId(SnapshotIdT&& value) {
46 m_snapshotIdHasBeenSet = true;
47 m_snapshotId = std::forward<SnapshotIdT>(value);
48 }
49 template <typename SnapshotIdT = Aws::String>
50 Ebs& WithSnapshotId(SnapshotIdT&& value) {
51 SetSnapshotId(std::forward<SnapshotIdT>(value));
52 return *this;
53 }
55
57
67 inline int GetVolumeSize() const { return m_volumeSize; }
68 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
69 inline void SetVolumeSize(int value) {
70 m_volumeSizeHasBeenSet = true;
71 m_volumeSize = value;
72 }
73 inline Ebs& WithVolumeSize(int value) {
74 SetVolumeSize(value);
75 return *this;
76 }
78
80
87 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
88 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
89 template <typename VolumeTypeT = Aws::String>
90 void SetVolumeType(VolumeTypeT&& value) {
91 m_volumeTypeHasBeenSet = true;
92 m_volumeType = std::forward<VolumeTypeT>(value);
93 }
94 template <typename VolumeTypeT = Aws::String>
95 Ebs& WithVolumeType(VolumeTypeT&& value) {
96 SetVolumeType(std::forward<VolumeTypeT>(value));
97 return *this;
98 }
100
102
106 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
107 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
108 inline void SetDeleteOnTermination(bool value) {
109 m_deleteOnTerminationHasBeenSet = true;
110 m_deleteOnTermination = value;
111 }
112 inline Ebs& WithDeleteOnTermination(bool value) {
114 return *this;
115 }
117
119
136 inline int GetIops() const { return m_iops; }
137 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
138 inline void SetIops(int value) {
139 m_iopsHasBeenSet = true;
140 m_iops = value;
141 }
142 inline Ebs& WithIops(int value) {
143 SetIops(value);
144 return *this;
145 }
147
149
167 inline bool GetEncrypted() const { return m_encrypted; }
168 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
169 inline void SetEncrypted(bool value) {
170 m_encryptedHasBeenSet = true;
171 m_encrypted = value;
172 }
173 inline Ebs& WithEncrypted(bool value) {
174 SetEncrypted(value);
175 return *this;
176 }
178
180
183 inline int GetThroughput() const { return m_throughput; }
184 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
185 inline void SetThroughput(int value) {
186 m_throughputHasBeenSet = true;
187 m_throughput = value;
188 }
189 inline Ebs& WithThroughput(int value) {
190 SetThroughput(value);
191 return *this;
192 }
194 private:
195 Aws::String m_snapshotId;
196
197 int m_volumeSize{0};
198
199 Aws::String m_volumeType;
200
201 bool m_deleteOnTermination{false};
202
203 int m_iops{0};
204
205 bool m_encrypted{false};
206
207 int m_throughput{0};
208 bool m_snapshotIdHasBeenSet = false;
209 bool m_volumeSizeHasBeenSet = false;
210 bool m_volumeTypeHasBeenSet = false;
211 bool m_deleteOnTerminationHasBeenSet = false;
212 bool m_iopsHasBeenSet = false;
213 bool m_encryptedHasBeenSet = false;
214 bool m_throughputHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace AutoScaling
219} // namespace Aws
bool SnapshotIdHasBeenSet() const
Definition Ebs.h:43
const Aws::String & GetSnapshotId() const
Definition Ebs.h:42
int GetThroughput() const
Definition Ebs.h:183
bool VolumeTypeHasBeenSet() const
Definition Ebs.h:88
void SetIops(int value)
Definition Ebs.h:138
bool ThroughputHasBeenSet() const
Definition Ebs.h:184
Ebs & WithEncrypted(bool value)
Definition Ebs.h:173
AWS_AUTOSCALING_API Ebs()=default
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Ebs & WithThroughput(int value)
Definition Ebs.h:189
void SetSnapshotId(SnapshotIdT &&value)
Definition Ebs.h:45
AWS_AUTOSCALING_API Ebs(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVolumeType(VolumeTypeT &&value)
Definition Ebs.h:90
int GetVolumeSize() const
Definition Ebs.h:67
Ebs & WithVolumeType(VolumeTypeT &&value)
Definition Ebs.h:95
Ebs & WithDeleteOnTermination(bool value)
Definition Ebs.h:112
bool GetDeleteOnTermination() const
Definition Ebs.h:106
bool EncryptedHasBeenSet() const
Definition Ebs.h:168
void SetVolumeSize(int value)
Definition Ebs.h:69
AWS_AUTOSCALING_API Ebs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Ebs & WithVolumeSize(int value)
Definition Ebs.h:73
bool VolumeSizeHasBeenSet() const
Definition Ebs.h:68
Ebs & WithSnapshotId(SnapshotIdT &&value)
Definition Ebs.h:50
void SetEncrypted(bool value)
Definition Ebs.h:169
bool DeleteOnTerminationHasBeenSet() const
Definition Ebs.h:107
bool GetEncrypted() const
Definition Ebs.h:167
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDeleteOnTermination(bool value)
Definition Ebs.h:108
bool IopsHasBeenSet() const
Definition Ebs.h:137
Ebs & WithIops(int value)
Definition Ebs.h:142
const Aws::String & GetVolumeType() const
Definition Ebs.h:87
void SetThroughput(int value)
Definition Ebs.h:185
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream