AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
BlockDeviceMapping.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/Ebs.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
29 public:
30 AWS_AUTOSCALING_API BlockDeviceMapping() = default;
31 AWS_AUTOSCALING_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_AUTOSCALING_API BlockDeviceMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
44 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
45 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
46 template <typename VirtualNameT = Aws::String>
47 void SetVirtualName(VirtualNameT&& value) {
48 m_virtualNameHasBeenSet = true;
49 m_virtualName = std::forward<VirtualNameT>(value);
50 }
51 template <typename VirtualNameT = Aws::String>
52 BlockDeviceMapping& WithVirtualName(VirtualNameT&& value) {
53 SetVirtualName(std::forward<VirtualNameT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
69 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
70 template <typename DeviceNameT = Aws::String>
71 void SetDeviceName(DeviceNameT&& value) {
72 m_deviceNameHasBeenSet = true;
73 m_deviceName = std::forward<DeviceNameT>(value);
74 }
75 template <typename DeviceNameT = Aws::String>
76 BlockDeviceMapping& WithDeviceName(DeviceNameT&& value) {
77 SetDeviceName(std::forward<DeviceNameT>(value));
78 return *this;
79 }
81
83
86 inline const Ebs& GetEbs() const { return m_ebs; }
87 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
88 template <typename EbsT = Ebs>
89 void SetEbs(EbsT&& value) {
90 m_ebsHasBeenSet = true;
91 m_ebs = std::forward<EbsT>(value);
92 }
93 template <typename EbsT = Ebs>
94 BlockDeviceMapping& WithEbs(EbsT&& value) {
95 SetEbs(std::forward<EbsT>(value));
96 return *this;
97 }
99
101
108 inline bool GetNoDevice() const { return m_noDevice; }
109 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
110 inline void SetNoDevice(bool value) {
111 m_noDeviceHasBeenSet = true;
112 m_noDevice = value;
113 }
114 inline BlockDeviceMapping& WithNoDevice(bool value) {
115 SetNoDevice(value);
116 return *this;
117 }
119 private:
120 Aws::String m_virtualName;
121
122 Aws::String m_deviceName;
123
124 Ebs m_ebs;
125
126 bool m_noDevice{false};
127 bool m_virtualNameHasBeenSet = false;
128 bool m_deviceNameHasBeenSet = false;
129 bool m_ebsHasBeenSet = false;
130 bool m_noDeviceHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace AutoScaling
135} // namespace Aws
AWS_AUTOSCALING_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
BlockDeviceMapping & WithEbs(EbsT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BlockDeviceMapping & WithVirtualName(VirtualNameT &&value)
BlockDeviceMapping & WithNoDevice(bool value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BlockDeviceMapping & WithDeviceName(DeviceNameT &&value)
AWS_AUTOSCALING_API BlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API BlockDeviceMapping()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream