AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BlockDeviceMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/EbsBlockDevice.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API BlockDeviceMapping() = default;
32 AWS_EC2_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const EbsBlockDevice& GetEbs() const { return m_ebs; }
44 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
45 template <typename EbsT = EbsBlockDevice>
46 void SetEbs(EbsT&& value) {
47 m_ebsHasBeenSet = true;
48 m_ebs = std::forward<EbsT>(value);
49 }
50 template <typename EbsT = EbsBlockDevice>
51 BlockDeviceMapping& WithEbs(EbsT&& value) {
52 SetEbs(std::forward<EbsT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetNoDevice() const { return m_noDevice; }
64 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
65 template <typename NoDeviceT = Aws::String>
66 void SetNoDevice(NoDeviceT&& value) {
67 m_noDeviceHasBeenSet = true;
68 m_noDevice = std::forward<NoDeviceT>(value);
69 }
70 template <typename NoDeviceT = Aws::String>
71 BlockDeviceMapping& WithNoDevice(NoDeviceT&& value) {
72 SetNoDevice(std::forward<NoDeviceT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
84 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
85 template <typename DeviceNameT = Aws::String>
86 void SetDeviceName(DeviceNameT&& value) {
87 m_deviceNameHasBeenSet = true;
88 m_deviceName = std::forward<DeviceNameT>(value);
89 }
90 template <typename DeviceNameT = Aws::String>
91 BlockDeviceMapping& WithDeviceName(DeviceNameT&& value) {
92 SetDeviceName(std::forward<DeviceNameT>(value));
93 return *this;
94 }
96
98
111 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
112 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
113 template <typename VirtualNameT = Aws::String>
114 void SetVirtualName(VirtualNameT&& value) {
115 m_virtualNameHasBeenSet = true;
116 m_virtualName = std::forward<VirtualNameT>(value);
117 }
118 template <typename VirtualNameT = Aws::String>
119 BlockDeviceMapping& WithVirtualName(VirtualNameT&& value) {
120 SetVirtualName(std::forward<VirtualNameT>(value));
121 return *this;
122 }
124 private:
125 EbsBlockDevice m_ebs;
126
127 Aws::String m_noDevice;
128
129 Aws::String m_deviceName;
130
131 Aws::String m_virtualName;
132 bool m_ebsHasBeenSet = false;
133 bool m_noDeviceHasBeenSet = false;
134 bool m_deviceNameHasBeenSet = false;
135 bool m_virtualNameHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace EC2
140} // namespace Aws
BlockDeviceMapping & WithDeviceName(DeviceNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BlockDeviceMapping & WithEbs(EbsT &&value)
void SetVirtualName(VirtualNameT &&value)
AWS_EC2_API BlockDeviceMapping()=default
void SetDeviceName(DeviceNameT &&value)
AWS_EC2_API BlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
const EbsBlockDevice & GetEbs() const
BlockDeviceMapping & WithNoDevice(NoDeviceT &&value)
const Aws::String & GetNoDevice() const
const Aws::String & GetDeviceName() const
BlockDeviceMapping & WithVirtualName(VirtualNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetVirtualName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream