AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LaunchTemplateBlockDeviceMappingRequest.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/LaunchTemplateEbsBlockDeviceRequest.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:
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 LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
54
56
63 inline const Aws::String& GetVirtualName() const { return m_virtualName; }
64 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
65 template<typename VirtualNameT = Aws::String>
66 void SetVirtualName(VirtualNameT&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::forward<VirtualNameT>(value); }
67 template<typename VirtualNameT = Aws::String>
68 LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(VirtualNameT&& value) { SetVirtualName(std::forward<VirtualNameT>(value)); return *this;}
70
72
76 inline const LaunchTemplateEbsBlockDeviceRequest& GetEbs() const { return m_ebs; }
77 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
78 template<typename EbsT = LaunchTemplateEbsBlockDeviceRequest>
79 void SetEbs(EbsT&& value) { m_ebsHasBeenSet = true; m_ebs = std::forward<EbsT>(value); }
80 template<typename EbsT = LaunchTemplateEbsBlockDeviceRequest>
81 LaunchTemplateBlockDeviceMappingRequest& WithEbs(EbsT&& value) { SetEbs(std::forward<EbsT>(value)); return *this;}
83
85
89 inline const Aws::String& GetNoDevice() const { return m_noDevice; }
90 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
91 template<typename NoDeviceT = Aws::String>
92 void SetNoDevice(NoDeviceT&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::forward<NoDeviceT>(value); }
93 template<typename NoDeviceT = Aws::String>
94 LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(NoDeviceT&& value) { SetNoDevice(std::forward<NoDeviceT>(value)); return *this;}
96 private:
97
98 Aws::String m_deviceName;
99 bool m_deviceNameHasBeenSet = false;
100
101 Aws::String m_virtualName;
102 bool m_virtualNameHasBeenSet = false;
103
105 bool m_ebsHasBeenSet = false;
106
107 Aws::String m_noDevice;
108 bool m_noDeviceHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EC2
113} // namespace Aws
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(VirtualNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API LaunchTemplateBlockDeviceMappingRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(DeviceNameT &&value)
LaunchTemplateBlockDeviceMappingRequest & WithEbs(EbsT &&value)
AWS_EC2_API LaunchTemplateBlockDeviceMappingRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(NoDeviceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream