AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateBlockDeviceMapping.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/LaunchTemplateEbsBlockDevice.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:
35 AWS_EC2_API LaunchTemplateBlockDeviceMapping() = default;
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
47 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
48 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
49 template<typename DeviceNameT = Aws::String>
50 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
51 template<typename DeviceNameT = Aws::String>
52 LaunchTemplateBlockDeviceMapping& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
60 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
61 template<typename VirtualNameT = Aws::String>
62 void SetVirtualName(VirtualNameT&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::forward<VirtualNameT>(value); }
63 template<typename VirtualNameT = Aws::String>
64 LaunchTemplateBlockDeviceMapping& WithVirtualName(VirtualNameT&& value) { SetVirtualName(std::forward<VirtualNameT>(value)); return *this;}
66
68
71 inline const LaunchTemplateEbsBlockDevice& GetEbs() const { return m_ebs; }
72 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
73 template<typename EbsT = LaunchTemplateEbsBlockDevice>
74 void SetEbs(EbsT&& value) { m_ebsHasBeenSet = true; m_ebs = std::forward<EbsT>(value); }
75 template<typename EbsT = LaunchTemplateEbsBlockDevice>
76 LaunchTemplateBlockDeviceMapping& WithEbs(EbsT&& value) { SetEbs(std::forward<EbsT>(value)); return *this;}
78
80
84 inline const Aws::String& GetNoDevice() const { return m_noDevice; }
85 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
86 template<typename NoDeviceT = Aws::String>
87 void SetNoDevice(NoDeviceT&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::forward<NoDeviceT>(value); }
88 template<typename NoDeviceT = Aws::String>
89 LaunchTemplateBlockDeviceMapping& WithNoDevice(NoDeviceT&& value) { SetNoDevice(std::forward<NoDeviceT>(value)); return *this;}
91 private:
92
93 Aws::String m_deviceName;
94 bool m_deviceNameHasBeenSet = false;
95
96 Aws::String m_virtualName;
97 bool m_virtualNameHasBeenSet = false;
98
100 bool m_ebsHasBeenSet = false;
101
102 Aws::String m_noDevice;
103 bool m_noDeviceHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateBlockDeviceMapping & WithEbs(EbsT &&value)
AWS_EC2_API LaunchTemplateBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateBlockDeviceMapping & WithDeviceName(DeviceNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API LaunchTemplateBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateBlockDeviceMapping & WithNoDevice(NoDeviceT &&value)
LaunchTemplateBlockDeviceMapping & WithVirtualName(VirtualNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream