AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EbsBlockDeviceResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/VolumeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API EbsBlockDeviceResponse() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline bool GetEncrypted() const { return m_encrypted; }
48 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
49 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
50 inline EbsBlockDeviceResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
52
54
57 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
58 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
59 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
60 inline EbsBlockDeviceResponse& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
62
64
71 inline int GetIops() const { return m_iops; }
72 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
73 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
74 inline EbsBlockDeviceResponse& WithIops(int value) { SetIops(value); return *this;}
76
78
81 inline int GetThroughput() const { return m_throughput; }
82 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
83 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
84 inline EbsBlockDeviceResponse& WithThroughput(int value) { SetThroughput(value); return *this;}
86
88
92 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
93 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
94 template<typename KmsKeyIdT = Aws::String>
95 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
96 template<typename KmsKeyIdT = Aws::String>
97 EbsBlockDeviceResponse& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
99
101
104 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
105 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
106 template<typename SnapshotIdT = Aws::String>
107 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
108 template<typename SnapshotIdT = Aws::String>
109 EbsBlockDeviceResponse& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
111
113
116 inline int GetVolumeSize() const { return m_volumeSize; }
117 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
118 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
119 inline EbsBlockDeviceResponse& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
121
123
128 inline VolumeType GetVolumeType() const { return m_volumeType; }
129 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
130 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
131 inline EbsBlockDeviceResponse& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
133 private:
134
135 bool m_encrypted{false};
136 bool m_encryptedHasBeenSet = false;
137
138 bool m_deleteOnTermination{false};
139 bool m_deleteOnTerminationHasBeenSet = false;
140
141 int m_iops{0};
142 bool m_iopsHasBeenSet = false;
143
144 int m_throughput{0};
145 bool m_throughputHasBeenSet = false;
146
147 Aws::String m_kmsKeyId;
148 bool m_kmsKeyIdHasBeenSet = false;
149
150 Aws::String m_snapshotId;
151 bool m_snapshotIdHasBeenSet = false;
152
153 int m_volumeSize{0};
154 bool m_volumeSizeHasBeenSet = false;
155
156 VolumeType m_volumeType{VolumeType::NOT_SET};
157 bool m_volumeTypeHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
EbsBlockDeviceResponse & WithKmsKeyId(KmsKeyIdT &&value)
EbsBlockDeviceResponse & WithSnapshotId(SnapshotIdT &&value)
EbsBlockDeviceResponse & WithEncrypted(bool value)
EbsBlockDeviceResponse & WithIops(int value)
AWS_EC2_API EbsBlockDeviceResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API EbsBlockDeviceResponse()=default
EbsBlockDeviceResponse & WithThroughput(int value)
AWS_EC2_API EbsBlockDeviceResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
EbsBlockDeviceResponse & WithVolumeSize(int value)
EbsBlockDeviceResponse & WithDeleteOnTermination(bool value)
EbsBlockDeviceResponse & WithVolumeType(VolumeType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream