AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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
48 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
49 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
50 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
51 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
52 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
53 inline InstanceBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
54 inline InstanceBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
55 inline InstanceBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
57
59
63 inline const EbsInstanceBlockDevice& GetEbs() const{ return m_ebs; }
64 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
65 inline void SetEbs(const EbsInstanceBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
66 inline void SetEbs(EbsInstanceBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
67 inline InstanceBlockDeviceMapping& WithEbs(const EbsInstanceBlockDevice& value) { SetEbs(value); return *this;}
68 inline InstanceBlockDeviceMapping& WithEbs(EbsInstanceBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_deviceName;
73 bool m_deviceNameHasBeenSet = false;
74
76 bool m_ebsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // 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
InstanceBlockDeviceMapping & WithDeviceName(const Aws::String &value)
InstanceBlockDeviceMapping & WithEbs(const EbsInstanceBlockDevice &value)
void SetEbs(const EbsInstanceBlockDevice &value)
InstanceBlockDeviceMapping & WithEbs(EbsInstanceBlockDevice &&value)
InstanceBlockDeviceMapping & WithDeviceName(Aws::String &&value)
InstanceBlockDeviceMapping & WithDeviceName(const char *value)
AWS_EC2_API InstanceBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const EbsInstanceBlockDevice & GetEbs() const
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