AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstancesBlockDeviceMapping.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/ScheduledInstancesEbs.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:
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 Aws::String& GetDeviceName() const{ return m_deviceName; }
50 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
51 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
52 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
53 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
55 inline ScheduledInstancesBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
56 inline ScheduledInstancesBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
58
60
64 inline const ScheduledInstancesEbs& GetEbs() const{ return m_ebs; }
65 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
66 inline void SetEbs(const ScheduledInstancesEbs& value) { m_ebsHasBeenSet = true; m_ebs = value; }
67 inline void SetEbs(ScheduledInstancesEbs&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
68 inline ScheduledInstancesBlockDeviceMapping& WithEbs(const ScheduledInstancesEbs& value) { SetEbs(value); return *this;}
69 inline ScheduledInstancesBlockDeviceMapping& WithEbs(ScheduledInstancesEbs&& value) { SetEbs(std::move(value)); return *this;}
71
73
77 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
78 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
79 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
80 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
81 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
82 inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
83 inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
84 inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
86
88
99 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
100 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
101 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
102 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
103 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
105 inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
106 inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
108 private:
109
110 Aws::String m_deviceName;
111 bool m_deviceNameHasBeenSet = false;
112
114 bool m_ebsHasBeenSet = false;
115
116 Aws::String m_noDevice;
117 bool m_noDeviceHasBeenSet = false;
118
119 Aws::String m_virtualName;
120 bool m_virtualNameHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
ScheduledInstancesBlockDeviceMapping & WithEbs(ScheduledInstancesEbs &&value)
AWS_EC2_API ScheduledInstancesBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesBlockDeviceMapping & WithVirtualName(Aws::String &&value)
ScheduledInstancesBlockDeviceMapping & WithNoDevice(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstancesBlockDeviceMapping & WithDeviceName(const Aws::String &value)
ScheduledInstancesBlockDeviceMapping & WithEbs(const ScheduledInstancesEbs &value)
ScheduledInstancesBlockDeviceMapping & WithNoDevice(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstancesBlockDeviceMapping & WithDeviceName(const char *value)
ScheduledInstancesBlockDeviceMapping & WithDeviceName(Aws::String &&value)
AWS_EC2_API ScheduledInstancesBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesBlockDeviceMapping & WithVirtualName(const char *value)
ScheduledInstancesBlockDeviceMapping & WithNoDevice(Aws::String &&value)
ScheduledInstancesBlockDeviceMapping & WithVirtualName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream