AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceBlockDeviceMappingSpecification.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/EbsInstanceBlockDeviceSpecification.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
29 public:
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
44 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
45 template <typename DeviceNameT = Aws::String>
46 void SetDeviceName(DeviceNameT&& value) {
47 m_deviceNameHasBeenSet = true;
48 m_deviceName = std::forward<DeviceNameT>(value);
49 }
50 template <typename DeviceNameT = Aws::String>
52 SetDeviceName(std::forward<DeviceNameT>(value));
53 return *this;
54 }
56
58
62 inline const EbsInstanceBlockDeviceSpecification& GetEbs() const { return m_ebs; }
63 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
64 template <typename EbsT = EbsInstanceBlockDeviceSpecification>
65 void SetEbs(EbsT&& value) {
66 m_ebsHasBeenSet = true;
67 m_ebs = std::forward<EbsT>(value);
68 }
69 template <typename EbsT = EbsInstanceBlockDeviceSpecification>
71 SetEbs(std::forward<EbsT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
81 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
82 template <typename VirtualNameT = Aws::String>
83 void SetVirtualName(VirtualNameT&& value) {
84 m_virtualNameHasBeenSet = true;
85 m_virtualName = std::forward<VirtualNameT>(value);
86 }
87 template <typename VirtualNameT = Aws::String>
89 SetVirtualName(std::forward<VirtualNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetNoDevice() const { return m_noDevice; }
99 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
100 template <typename NoDeviceT = Aws::String>
101 void SetNoDevice(NoDeviceT&& value) {
102 m_noDeviceHasBeenSet = true;
103 m_noDevice = std::forward<NoDeviceT>(value);
104 }
105 template <typename NoDeviceT = Aws::String>
107 SetNoDevice(std::forward<NoDeviceT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_deviceName;
113
115
116 Aws::String m_virtualName;
117
118 Aws::String m_noDevice;
119 bool m_deviceNameHasBeenSet = false;
120 bool m_ebsHasBeenSet = false;
121 bool m_virtualNameHasBeenSet = false;
122 bool m_noDeviceHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
AWS_EC2_API InstanceBlockDeviceMappingSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceBlockDeviceMappingSpecification & WithDeviceName(DeviceNameT &&value)
InstanceBlockDeviceMappingSpecification & WithNoDevice(NoDeviceT &&value)
InstanceBlockDeviceMappingSpecification & WithVirtualName(VirtualNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceBlockDeviceMappingSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceBlockDeviceMappingSpecification & WithEbs(EbsT &&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