AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlockDeviceMapping.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/EbsBlockDevice.h>
10#include <aws/core/utils/memory/stl/AWSString.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
34 {
35 public:
36 AWS_EC2_API BlockDeviceMapping();
37 AWS_EC2_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const EbsBlockDevice& GetEbs() const{ return m_ebs; }
50 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
51 inline void SetEbs(const EbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
52 inline void SetEbs(EbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
53 inline BlockDeviceMapping& WithEbs(const EbsBlockDevice& value) { SetEbs(value); return *this;}
54 inline BlockDeviceMapping& WithEbs(EbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
56
58
63 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
64 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
65 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
66 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
67 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
68 inline BlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
69 inline BlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
70 inline BlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
72
74
78 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
79 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
80 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
81 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
82 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
83 inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
84 inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
85 inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
87
89
102 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
103 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
104 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
105 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
106 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
107 inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
108 inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
109 inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
111 private:
112
113 EbsBlockDevice m_ebs;
114 bool m_ebsHasBeenSet = false;
115
116 Aws::String m_noDevice;
117 bool m_noDeviceHasBeenSet = false;
118
119 Aws::String m_deviceName;
120 bool m_deviceNameHasBeenSet = false;
121
122 Aws::String m_virtualName;
123 bool m_virtualNameHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BlockDeviceMapping & WithDeviceName(const char *value)
void SetDeviceName(Aws::String &&value)
void SetEbs(const EbsBlockDevice &value)
void SetEbs(EbsBlockDevice &&value)
void SetVirtualName(Aws::String &&value)
void SetVirtualName(const Aws::String &value)
void SetNoDevice(Aws::String &&value)
AWS_EC2_API BlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
BlockDeviceMapping & WithEbs(EbsBlockDevice &&value)
const EbsBlockDevice & GetEbs() const
BlockDeviceMapping & WithNoDevice(const char *value)
void SetDeviceName(const Aws::String &value)
BlockDeviceMapping & WithNoDevice(const Aws::String &value)
void SetNoDevice(const Aws::String &value)
const Aws::String & GetNoDevice() const
const Aws::String & GetDeviceName() const
BlockDeviceMapping & WithVirtualName(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BlockDeviceMapping & WithNoDevice(Aws::String &&value)
const Aws::String & GetVirtualName() const
BlockDeviceMapping & WithEbs(const EbsBlockDevice &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream