AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateEbsBlockDevice.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:
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 LaunchTemplateEbsBlockDevice& 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; }
62
64
67 inline int GetIops() const{ return m_iops; }
68 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
69 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
70 inline LaunchTemplateEbsBlockDevice& WithIops(int value) { SetIops(value); return *this;}
72
74
78 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
79 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
80 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
81 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
82 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
83 inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
84 inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
85 inline LaunchTemplateEbsBlockDevice& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
87
89
92 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
93 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
94 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
95 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
96 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
97 inline LaunchTemplateEbsBlockDevice& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
98 inline LaunchTemplateEbsBlockDevice& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
99 inline LaunchTemplateEbsBlockDevice& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
101
103
106 inline int GetVolumeSize() const{ return m_volumeSize; }
107 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
108 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
109 inline LaunchTemplateEbsBlockDevice& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
111
113
116 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
117 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
118 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
119 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
120 inline LaunchTemplateEbsBlockDevice& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
121 inline LaunchTemplateEbsBlockDevice& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
123
125
128 inline int GetThroughput() const{ return m_throughput; }
129 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
130 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
131 inline LaunchTemplateEbsBlockDevice& WithThroughput(int value) { SetThroughput(value); return *this;}
133 private:
134
135 bool m_encrypted;
136 bool m_encryptedHasBeenSet = false;
137
138 bool m_deleteOnTermination;
139 bool m_deleteOnTerminationHasBeenSet = false;
140
141 int m_iops;
142 bool m_iopsHasBeenSet = false;
143
144 Aws::String m_kmsKeyId;
145 bool m_kmsKeyIdHasBeenSet = false;
146
147 Aws::String m_snapshotId;
148 bool m_snapshotIdHasBeenSet = false;
149
150 int m_volumeSize;
151 bool m_volumeSizeHasBeenSet = false;
152
153 VolumeType m_volumeType;
154 bool m_volumeTypeHasBeenSet = false;
155
156 int m_throughput;
157 bool m_throughputHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
LaunchTemplateEbsBlockDevice & WithVolumeSize(int value)
LaunchTemplateEbsBlockDevice & WithVolumeType(const VolumeType &value)
LaunchTemplateEbsBlockDevice & WithSnapshotId(Aws::String &&value)
LaunchTemplateEbsBlockDevice & WithThroughput(int value)
LaunchTemplateEbsBlockDevice & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplateEbsBlockDevice & WithSnapshotId(const Aws::String &value)
LaunchTemplateEbsBlockDevice & WithKmsKeyId(const char *value)
AWS_EC2_API LaunchTemplateEbsBlockDevice(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDevice & WithKmsKeyId(Aws::String &&value)
LaunchTemplateEbsBlockDevice & WithVolumeType(VolumeType &&value)
AWS_EC2_API LaunchTemplateEbsBlockDevice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDevice & WithSnapshotId(const char *value)
LaunchTemplateEbsBlockDevice & WithIops(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateEbsBlockDevice & WithKmsKeyId(const Aws::String &value)
LaunchTemplateEbsBlockDevice & WithEncrypted(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream