AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
InstanceBlockDeviceMapping.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/EbsInstanceBlockDevice.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:
35 AWS_EC2_API InstanceBlockDeviceMapping() = default;
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 InstanceBlockDeviceMapping& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
54
56
60 inline const EbsInstanceBlockDevice& GetEbs() const { return m_ebs; }
61 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
62 template<typename EbsT = EbsInstanceBlockDevice>
63 void SetEbs(EbsT&& value) { m_ebsHasBeenSet = true; m_ebs = std::forward<EbsT>(value); }
64 template<typename EbsT = EbsInstanceBlockDevice>
65 InstanceBlockDeviceMapping& WithEbs(EbsT&& value) { SetEbs(std::forward<EbsT>(value)); return *this;}
67 private:
68
69 Aws::String m_deviceName;
70 bool m_deviceNameHasBeenSet = false;
71
73 bool m_ebsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EC2
78} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API InstanceBlockDeviceMapping()=default
InstanceBlockDeviceMapping & WithEbs(EbsT &&value)
AWS_EC2_API InstanceBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const EbsInstanceBlockDevice & GetEbs() const
InstanceBlockDeviceMapping & WithDeviceName(DeviceNameT &&value)
AWS_EC2_API InstanceBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream