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/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/Ebs.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_AUTOSCALING_API BlockDeviceMapping();
36 AWS_AUTOSCALING_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_AUTOSCALING_API BlockDeviceMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
50 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
51 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
52 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
53 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
54 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
55 inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
56 inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
57 inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
59
61
70 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
71 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
72 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
73 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
74 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
75 inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
76 inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
77 inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
79
81
84 inline const Ebs& GetEbs() const{ return m_ebs; }
85 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
86 inline void SetEbs(const Ebs& value) { m_ebsHasBeenSet = true; m_ebs = value; }
87 inline void SetEbs(Ebs&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
88 inline BlockDeviceMapping& WithEbs(const Ebs& value) { SetEbs(value); return *this;}
89 inline BlockDeviceMapping& WithEbs(Ebs&& value) { SetEbs(std::move(value)); return *this;}
91
93
100 inline bool GetNoDevice() const{ return m_noDevice; }
101 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
102 inline void SetNoDevice(bool value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
103 inline BlockDeviceMapping& WithNoDevice(bool value) { SetNoDevice(value); return *this;}
105 private:
106
107 Aws::String m_virtualName;
108 bool m_virtualNameHasBeenSet = false;
109
110 Aws::String m_deviceName;
111 bool m_deviceNameHasBeenSet = false;
112
113 Ebs m_ebs;
114 bool m_ebsHasBeenSet = false;
115
116 bool m_noDevice;
117 bool m_noDeviceHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AutoScaling
122} // namespace Aws
BlockDeviceMapping & WithVirtualName(const char *value)
AWS_AUTOSCALING_API BlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
BlockDeviceMapping & WithNoDevice(bool value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVirtualName(const Aws::String &value)
BlockDeviceMapping & WithEbs(const Ebs &value)
void SetDeviceName(const Aws::String &value)
AWS_AUTOSCALING_API BlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BlockDeviceMapping & WithEbs(Ebs &&value)
BlockDeviceMapping & WithDeviceName(const char *value)
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream