AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateEbsBlockDeviceRequest.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
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline bool GetEncrypted() const{ return m_encrypted; }
51 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
52 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
53 inline LaunchTemplateEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
55
57
60 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
61 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
62 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
65
67
82 inline int GetIops() const{ return m_iops; }
83 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
84 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
85 inline LaunchTemplateEbsBlockDeviceRequest& WithIops(int value) { SetIops(value); return *this;}
87
89
93 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
94 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
95 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
96 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
97 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
98 inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
99 inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
100 inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
102
104
107 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
108 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
109 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
110 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
111 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
113 inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
114 inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
116
118
127 inline int GetVolumeSize() const{ return m_volumeSize; }
128 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
129 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
130 inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
132
134
139 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
140 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
141 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
142 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
143 inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
144 inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
146
148
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 LaunchTemplateEbsBlockDeviceRequest& WithThroughput(int value) { SetThroughput(value); return *this;}
158 private:
159
160 bool m_encrypted;
161 bool m_encryptedHasBeenSet = false;
162
163 bool m_deleteOnTermination;
164 bool m_deleteOnTerminationHasBeenSet = false;
165
166 int m_iops;
167 bool m_iopsHasBeenSet = false;
168
169 Aws::String m_kmsKeyId;
170 bool m_kmsKeyIdHasBeenSet = false;
171
172 Aws::String m_snapshotId;
173 bool m_snapshotIdHasBeenSet = false;
174
175 int m_volumeSize;
176 bool m_volumeSizeHasBeenSet = false;
177
178 VolumeType m_volumeType;
179 bool m_volumeTypeHasBeenSet = false;
180
181 int m_throughput;
182 bool m_throughputHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace EC2
187} // namespace Aws
LaunchTemplateEbsBlockDeviceRequest & WithIops(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateEbsBlockDeviceRequest & WithDeleteOnTermination(bool value)
LaunchTemplateEbsBlockDeviceRequest & WithEncrypted(bool value)
AWS_EC2_API LaunchTemplateEbsBlockDeviceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(Aws::String &&value)
AWS_EC2_API LaunchTemplateEbsBlockDeviceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(const Aws::String &value)
LaunchTemplateEbsBlockDeviceRequest & WithSnapshotId(const char *value)
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(Aws::String &&value)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeType(const VolumeType &value)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeType(VolumeType &&value)
LaunchTemplateEbsBlockDeviceRequest & WithThroughput(int value)
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(const Aws::String &value)
LaunchTemplateEbsBlockDeviceRequest & WithVolumeSize(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateEbsBlockDeviceRequest & WithKmsKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream