AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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); }
52 inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
53 inline LaunchTemplateBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
54 inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
56
58
61 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
62 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
63 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
64 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
65 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
66 inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
67 inline LaunchTemplateBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
68 inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
70
72
75 inline const LaunchTemplateEbsBlockDevice& GetEbs() const{ return m_ebs; }
76 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
77 inline void SetEbs(const LaunchTemplateEbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
78 inline void SetEbs(LaunchTemplateEbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
79 inline LaunchTemplateBlockDeviceMapping& WithEbs(const LaunchTemplateEbsBlockDevice& value) { SetEbs(value); return *this;}
80 inline LaunchTemplateBlockDeviceMapping& WithEbs(LaunchTemplateEbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
82
84
88 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
89 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
90 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
91 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
92 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
93 inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
94 inline LaunchTemplateBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
95 inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
97 private:
98
99 Aws::String m_deviceName;
100 bool m_deviceNameHasBeenSet = false;
101
102 Aws::String m_virtualName;
103 bool m_virtualNameHasBeenSet = false;
104
106 bool m_ebsHasBeenSet = false;
107
108 Aws::String m_noDevice;
109 bool m_noDeviceHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEbs(const LaunchTemplateEbsBlockDevice &value)
LaunchTemplateBlockDeviceMapping & WithVirtualName(Aws::String &&value)
LaunchTemplateBlockDeviceMapping & WithEbs(LaunchTemplateEbsBlockDevice &&value)
LaunchTemplateBlockDeviceMapping & WithVirtualName(const char *value)
AWS_EC2_API LaunchTemplateBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateBlockDeviceMapping & WithVirtualName(const Aws::String &value)
LaunchTemplateBlockDeviceMapping & WithNoDevice(Aws::String &&value)
LaunchTemplateBlockDeviceMapping & WithNoDevice(const Aws::String &value)
LaunchTemplateBlockDeviceMapping & WithDeviceName(Aws::String &&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(const char *value)
LaunchTemplateBlockDeviceMapping & WithDeviceName(const Aws::String &value)
LaunchTemplateBlockDeviceMapping & WithEbs(const LaunchTemplateEbsBlockDevice &value)
LaunchTemplateBlockDeviceMapping & WithDeviceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream