AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BlockDeviceMapping.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/Ebs.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_AUTOSCALING_API BlockDeviceMapping() = default;
36 AWS_AUTOSCALING_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_AUTOSCALING_API BlockDeviceMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
50 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
51 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
52 template<typename VirtualNameT = Aws::String>
53 void SetVirtualName(VirtualNameT&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::forward<VirtualNameT>(value); }
54 template<typename VirtualNameT = Aws::String>
55 BlockDeviceMapping& WithVirtualName(VirtualNameT&& value) { SetVirtualName(std::forward<VirtualNameT>(value)); return *this;}
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) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
72 template<typename DeviceNameT = Aws::String>
73 BlockDeviceMapping& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
75
77
80 inline const Ebs& GetEbs() const { return m_ebs; }
81 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
82 template<typename EbsT = Ebs>
83 void SetEbs(EbsT&& value) { m_ebsHasBeenSet = true; m_ebs = std::forward<EbsT>(value); }
84 template<typename EbsT = Ebs>
85 BlockDeviceMapping& WithEbs(EbsT&& value) { SetEbs(std::forward<EbsT>(value)); return *this;}
87
89
96 inline bool GetNoDevice() const { return m_noDevice; }
97 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
98 inline void SetNoDevice(bool value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
99 inline BlockDeviceMapping& WithNoDevice(bool value) { SetNoDevice(value); return *this;}
101 private:
102
103 Aws::String m_virtualName;
104 bool m_virtualNameHasBeenSet = false;
105
106 Aws::String m_deviceName;
107 bool m_deviceNameHasBeenSet = false;
108
109 Ebs m_ebs;
110 bool m_ebsHasBeenSet = false;
111
112 bool m_noDevice{false};
113 bool m_noDeviceHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace AutoScaling
118} // 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