AWS SDK for C++  1.9.70
AWS SDK for C++
LaunchTemplateBlockDeviceMapping.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
47 
51  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
52 
56  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
57 
61  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
62 
66  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
67 
71  inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
72 
76  inline LaunchTemplateBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
77 
81  inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
82 
83 
87  inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
88 
92  inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
93 
97  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
98 
102  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
103 
107  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
108 
112  inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
113 
117  inline LaunchTemplateBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
118 
122  inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
123 
124 
128  inline const LaunchTemplateEbsBlockDevice& GetEbs() const{ return m_ebs; }
129 
133  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
134 
138  inline void SetEbs(const LaunchTemplateEbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
139 
143  inline void SetEbs(LaunchTemplateEbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
144 
148  inline LaunchTemplateBlockDeviceMapping& WithEbs(const LaunchTemplateEbsBlockDevice& value) { SetEbs(value); return *this;}
149 
153  inline LaunchTemplateBlockDeviceMapping& WithEbs(LaunchTemplateEbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
154 
155 
160  inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
161 
166  inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
167 
172  inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
173 
178  inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
179 
184  inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
185 
190  inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
191 
196  inline LaunchTemplateBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
197 
202  inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
203 
204  private:
205 
206  Aws::String m_deviceName;
207  bool m_deviceNameHasBeenSet;
208 
209  Aws::String m_virtualName;
210  bool m_virtualNameHasBeenSet;
211 
213  bool m_ebsHasBeenSet;
214 
215  Aws::String m_noDevice;
216  bool m_noDeviceHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace EC2
221 } // namespace Aws
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::LaunchTemplateBlockDeviceMapping
LaunchTemplateBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: LaunchTemplateBlockDeviceMapping.h:46
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:56
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::VirtualNameHasBeenSet
bool VirtualNameHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMapping.h:92
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMapping.h:133
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithDeviceName
LaunchTemplateBlockDeviceMapping & WithDeviceName(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:81
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMapping.h:51
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithVirtualName
LaunchTemplateBlockDeviceMapping & WithVirtualName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:117
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetVirtualName
void SetVirtualName(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:107
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithEbs
LaunchTemplateBlockDeviceMapping & WithEbs(const LaunchTemplateEbsBlockDevice &value)
Definition: LaunchTemplateBlockDeviceMapping.h:148
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::NoDeviceHasBeenSet
bool NoDeviceHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMapping.h:166
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithEbs
LaunchTemplateBlockDeviceMapping & WithEbs(LaunchTemplateEbsBlockDevice &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:153
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::GetVirtualName
const Aws::String & GetVirtualName() const
Definition: LaunchTemplateBlockDeviceMapping.h:87
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithNoDevice
LaunchTemplateBlockDeviceMapping & WithNoDevice(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:190
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithNoDevice
LaunchTemplateBlockDeviceMapping & WithNoDevice(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:196
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetVirtualName
void SetVirtualName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:97
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetVirtualName
void SetVirtualName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:102
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithVirtualName
LaunchTemplateBlockDeviceMapping & WithVirtualName(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:122
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::operator=
LaunchTemplateBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateEbsBlockDevice.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithDeviceName
LaunchTemplateBlockDeviceMapping & WithDeviceName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:71
AWSString.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithNoDevice
LaunchTemplateBlockDeviceMapping & WithNoDevice(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:202
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::GetEbs
const LaunchTemplateEbsBlockDevice & GetEbs() const
Definition: LaunchTemplateBlockDeviceMapping.h:128
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetNoDevice
void SetNoDevice(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:172
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetDeviceName
void SetDeviceName(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetEbs
void SetEbs(const LaunchTemplateEbsBlockDevice &value)
Definition: LaunchTemplateBlockDeviceMapping.h:138
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetNoDevice
void SetNoDevice(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:178
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping
Definition: LaunchTemplateBlockDeviceMapping.h:33
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetNoDevice
void SetNoDevice(const char *value)
Definition: LaunchTemplateBlockDeviceMapping.h:184
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::SetEbs
void SetEbs(LaunchTemplateEbsBlockDevice &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:143
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::LaunchTemplateBlockDeviceMapping
LaunchTemplateBlockDeviceMapping()
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::GetNoDevice
const Aws::String & GetNoDevice() const
Definition: LaunchTemplateBlockDeviceMapping.h:160
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateEbsBlockDevice
Definition: LaunchTemplateEbsBlockDevice.h:33
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithDeviceName
LaunchTemplateBlockDeviceMapping & WithDeviceName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMapping.h:76
Aws::EC2::Model::LaunchTemplateBlockDeviceMapping::WithVirtualName
LaunchTemplateBlockDeviceMapping & WithVirtualName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMapping.h:112