AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SnapshotIdT = Aws::String>
51 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
52 template<typename SnapshotIdT = Aws::String>
53 Ebs& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
55
57
67 inline int GetVolumeSize() const { return m_volumeSize; }
68 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
69 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
70 inline Ebs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
72
74
81 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
82 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
83 template<typename VolumeTypeT = Aws::String>
84 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
85 template<typename VolumeTypeT = Aws::String>
86 Ebs& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
88
90
94 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
95 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
96 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
97 inline Ebs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
99
101
118 inline int GetIops() const { return m_iops; }
119 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
120 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
121 inline Ebs& WithIops(int value) { SetIops(value); return *this;}
123
125
143 inline bool GetEncrypted() const { return m_encrypted; }
144 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
145 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
146 inline Ebs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
148
150
153 inline int GetThroughput() const { return m_throughput; }
154 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
155 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
156 inline Ebs& WithThroughput(int value) { SetThroughput(value); return *this;}
158 private:
159
160 Aws::String m_snapshotId;
161 bool m_snapshotIdHasBeenSet = false;
162
163 int m_volumeSize{0};
164 bool m_volumeSizeHasBeenSet = false;
165
166 Aws::String m_volumeType;
167 bool m_volumeTypeHasBeenSet = false;
168
169 bool m_deleteOnTermination{false};
170 bool m_deleteOnTerminationHasBeenSet = false;
171
172 int m_iops{0};
173 bool m_iopsHasBeenSet = false;
174
175 bool m_encrypted{false};
176 bool m_encryptedHasBeenSet = false;
177
178 int m_throughput{0};
179 bool m_throughputHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace AutoScaling
184} // namespace Aws
bool SnapshotIdHasBeenSet() const
Definition Ebs.h:49
const Aws::String & GetSnapshotId() const
Definition Ebs.h:48
int GetThroughput() const
Definition Ebs.h:153
bool VolumeTypeHasBeenSet() const
Definition Ebs.h:82
void SetIops(int value)
Definition Ebs.h:120
bool ThroughputHasBeenSet() const
Definition Ebs.h:154
Ebs & WithEncrypted(bool value)
Definition Ebs.h:146
AWS_AUTOSCALING_API Ebs()=default
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Ebs & WithThroughput(int value)
Definition Ebs.h:156
void SetSnapshotId(SnapshotIdT &&value)
Definition Ebs.h:51
AWS_AUTOSCALING_API Ebs(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVolumeType(VolumeTypeT &&value)
Definition Ebs.h:84
int GetVolumeSize() const
Definition Ebs.h:67
Ebs & WithVolumeType(VolumeTypeT &&value)
Definition Ebs.h:86
Ebs & WithDeleteOnTermination(bool value)
Definition Ebs.h:97
bool GetDeleteOnTermination() const
Definition Ebs.h:94
bool EncryptedHasBeenSet() const
Definition Ebs.h:144
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:70
bool VolumeSizeHasBeenSet() const
Definition Ebs.h:68
Ebs & WithSnapshotId(SnapshotIdT &&value)
Definition Ebs.h:53
void SetEncrypted(bool value)
Definition Ebs.h:145
bool DeleteOnTerminationHasBeenSet() const
Definition Ebs.h:95
bool GetEncrypted() const
Definition Ebs.h:143
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDeleteOnTermination(bool value)
Definition Ebs.h:96
bool IopsHasBeenSet() const
Definition Ebs.h:119
Ebs & WithIops(int value)
Definition Ebs.h:121
const Aws::String & GetVolumeType() const
Definition Ebs.h:81
void SetThroughput(int value)
Definition Ebs.h:155
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream