AWS SDK for C++  1.9.104
AWS SDK for C++
BlockDeviceMapping.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
49 
54  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
55 
60  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
61 
66  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
67 
72  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
73 
78  inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
79 
84  inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
85 
90  inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
91 
92 
106  inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
107 
121  inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
122 
136  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
137 
151  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
152 
166  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
167 
181  inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
182 
196  inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
197 
211  inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
212 
213 
218  inline const EbsBlockDevice& GetEbs() const{ return m_ebs; }
219 
224  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
225 
230  inline void SetEbs(const EbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
231 
236  inline void SetEbs(EbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
237 
242  inline BlockDeviceMapping& WithEbs(const EbsBlockDevice& value) { SetEbs(value); return *this;}
243 
248  inline BlockDeviceMapping& WithEbs(EbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
249 
250 
256  inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
257 
263  inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
264 
270  inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
271 
277  inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
278 
284  inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
285 
291  inline BlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
292 
298  inline BlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
299 
305  inline BlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
306 
307  private:
308 
309  Aws::String m_deviceName;
310  bool m_deviceNameHasBeenSet;
311 
312  Aws::String m_virtualName;
313  bool m_virtualNameHasBeenSet;
314 
315  EbsBlockDevice m_ebs;
316  bool m_ebsHasBeenSet;
317 
318  Aws::String m_noDevice;
319  bool m_noDeviceHasBeenSet;
320  };
321 
322 } // namespace Model
323 } // namespace EC2
324 } // namespace Aws
Aws::EC2::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(Aws::String &&value)
Definition: BlockDeviceMapping.h:151
Aws::EC2::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
Definition: BlockDeviceMapping.h:84
Aws::EC2::Model::BlockDeviceMapping::SetEbs
void SetEbs(const EbsBlockDevice &value)
Definition: BlockDeviceMapping.h:230
Aws::EC2::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
Definition: BlockDeviceMapping.h:78
Aws::EC2::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: BlockDeviceMapping.h:60
Aws::EC2::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(const Aws::String &value)
Definition: BlockDeviceMapping.h:136
Aws::EC2::Model::BlockDeviceMapping::operator=
BlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
Definition: BlockDeviceMapping.h:196
Aws::EC2::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(const char *value)
Definition: BlockDeviceMapping.h:211
Aws::EC2::Model::BlockDeviceMapping::WithEbs
BlockDeviceMapping & WithEbs(EbsBlockDevice &&value)
Definition: BlockDeviceMapping.h:248
Aws::EC2::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(const Aws::String &value)
Definition: BlockDeviceMapping.h:270
Aws::EC2::Model::BlockDeviceMapping::BlockDeviceMapping
BlockDeviceMapping()
Aws::EC2::Model::BlockDeviceMapping::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: BlockDeviceMapping.h:224
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(Aws::String &&value)
Definition: BlockDeviceMapping.h:298
Aws::EC2::Model::BlockDeviceMapping::SetEbs
void SetEbs(EbsBlockDevice &&value)
Definition: BlockDeviceMapping.h:236
Aws::EC2::Model::BlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(const char *value)
Definition: BlockDeviceMapping.h:305
Aws::EC2::Model::BlockDeviceMapping::BlockDeviceMapping
BlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(Aws::String &&value)
Definition: BlockDeviceMapping.h:277
EbsBlockDevice.h
Aws::EC2::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(const char *value)
Definition: BlockDeviceMapping.h:284
Aws::EC2::Model::BlockDeviceMapping::VirtualNameHasBeenSet
bool VirtualNameHasBeenSet() const
Definition: BlockDeviceMapping.h:121
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::BlockDeviceMapping::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: BlockDeviceMapping.h:54
Aws::EC2::Model::BlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::BlockDeviceMapping::GetEbs
const EbsBlockDevice & GetEbs() const
Definition: BlockDeviceMapping.h:218
Aws::EC2::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(const char *value)
Definition: BlockDeviceMapping.h:90
AWSString.h
Aws::EC2::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(const char *value)
Definition: BlockDeviceMapping.h:72
Aws::EC2::Model::BlockDeviceMapping::GetNoDevice
const Aws::String & GetNoDevice() const
Definition: BlockDeviceMapping.h:256
Aws::EC2::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
Definition: BlockDeviceMapping.h:181
Aws::EC2::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(const char *value)
Definition: BlockDeviceMapping.h:166
Aws::EC2::Model::BlockDeviceMapping::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: BlockDeviceMapping.h:48
Aws::EC2::Model::BlockDeviceMapping::GetVirtualName
const Aws::String & GetVirtualName() const
Definition: BlockDeviceMapping.h:106
Aws::EC2::Model::BlockDeviceMapping
Definition: BlockDeviceMapping.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EbsBlockDevice
Definition: EbsBlockDevice.h:33
Aws::EC2::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: BlockDeviceMapping.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::BlockDeviceMapping::NoDeviceHasBeenSet
bool NoDeviceHasBeenSet() const
Definition: BlockDeviceMapping.h:263
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::BlockDeviceMapping::WithEbs
BlockDeviceMapping & WithEbs(const EbsBlockDevice &value)
Definition: BlockDeviceMapping.h:242
EC2_EXPORTS.h
Aws::EC2::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(const Aws::String &value)
Definition: BlockDeviceMapping.h:291