AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceBlockDeviceMappingSpecification.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/EbsInstanceBlockDeviceSpecification.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
48 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
49 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
50 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
51 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
52 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
54 inline InstanceBlockDeviceMappingSpecification& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
55 inline InstanceBlockDeviceMappingSpecification& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
57
59
63 inline const EbsInstanceBlockDeviceSpecification& GetEbs() const{ return m_ebs; }
64 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
65 inline void SetEbs(const EbsInstanceBlockDeviceSpecification& value) { m_ebsHasBeenSet = true; m_ebs = value; }
66 inline void SetEbs(EbsInstanceBlockDeviceSpecification&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
70
72
75 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
76 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
77 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
78 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
79 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
81 inline InstanceBlockDeviceMappingSpecification& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
82 inline InstanceBlockDeviceMappingSpecification& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
84
86
89 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
90 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
91 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
92 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
93 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
94 inline InstanceBlockDeviceMappingSpecification& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
95 inline InstanceBlockDeviceMappingSpecification& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
96 inline InstanceBlockDeviceMappingSpecification& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
98 private:
99
100 Aws::String m_deviceName;
101 bool m_deviceNameHasBeenSet = false;
102
104 bool m_ebsHasBeenSet = false;
105
106 Aws::String m_virtualName;
107 bool m_virtualNameHasBeenSet = false;
108
109 Aws::String m_noDevice;
110 bool m_noDeviceHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
AWS_EC2_API InstanceBlockDeviceMappingSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceBlockDeviceMappingSpecification & WithVirtualName(const char *value)
InstanceBlockDeviceMappingSpecification & WithVirtualName(Aws::String &&value)
InstanceBlockDeviceMappingSpecification & WithEbs(EbsInstanceBlockDeviceSpecification &&value)
InstanceBlockDeviceMappingSpecification & WithDeviceName(const char *value)
InstanceBlockDeviceMappingSpecification & WithNoDevice(const Aws::String &value)
InstanceBlockDeviceMappingSpecification & WithDeviceName(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEbs(const EbsInstanceBlockDeviceSpecification &value)
AWS_EC2_API InstanceBlockDeviceMappingSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceBlockDeviceMappingSpecification & WithNoDevice(const char *value)
InstanceBlockDeviceMappingSpecification & WithVirtualName(const Aws::String &value)
InstanceBlockDeviceMappingSpecification & WithNoDevice(Aws::String &&value)
InstanceBlockDeviceMappingSpecification & WithDeviceName(Aws::String &&value)
InstanceBlockDeviceMappingSpecification & WithEbs(const EbsInstanceBlockDeviceSpecification &value)
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