AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
50 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
51 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
53 inline LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
54 inline LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
56
58
65 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
66 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
67 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
68 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
69 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
71 inline LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
72 inline LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
74
76
80 inline const LaunchTemplateEbsBlockDeviceRequest& GetEbs() const{ return m_ebs; }
81 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
82 inline void SetEbs(const LaunchTemplateEbsBlockDeviceRequest& value) { m_ebsHasBeenSet = true; m_ebs = value; }
83 inline void SetEbs(LaunchTemplateEbsBlockDeviceRequest&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
87
89
93 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
94 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
95 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
96 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
97 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
98 inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
99 inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
100 inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
102 private:
103
104 Aws::String m_deviceName;
105 bool m_deviceNameHasBeenSet = false;
106
107 Aws::String m_virtualName;
108 bool m_virtualNameHasBeenSet = false;
109
111 bool m_ebsHasBeenSet = false;
112
113 Aws::String m_noDevice;
114 bool m_noDeviceHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(const char *value)
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(Aws::String &&value)
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(const char *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 & WithNoDevice(const Aws::String &value)
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(Aws::String &&value)
AWS_EC2_API LaunchTemplateBlockDeviceMappingRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEbs(const LaunchTemplateEbsBlockDeviceRequest &value)
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(const Aws::String &value)
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(const Aws::String &value)
LaunchTemplateBlockDeviceMappingRequest & WithEbs(LaunchTemplateEbsBlockDeviceRequest &&value)
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(const char *value)
LaunchTemplateBlockDeviceMappingRequest & WithEbs(const LaunchTemplateEbsBlockDeviceRequest &value)
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream