AWS SDK for C++  1.9.103
AWS SDK for C++
ScheduledInstancesBlockDeviceMapping.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
49 
54  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
55 
60  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
61 
66  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
67 
72  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
73 
78  inline ScheduledInstancesBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
79 
84  inline ScheduledInstancesBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
85 
90  inline ScheduledInstancesBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
91 
92 
97  inline const ScheduledInstancesEbs& GetEbs() const{ return m_ebs; }
98 
103  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
104 
109  inline void SetEbs(const ScheduledInstancesEbs& value) { m_ebsHasBeenSet = true; m_ebs = value; }
110 
115  inline void SetEbs(ScheduledInstancesEbs&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
116 
121  inline ScheduledInstancesBlockDeviceMapping& WithEbs(const ScheduledInstancesEbs& value) { SetEbs(value); return *this;}
122 
127  inline ScheduledInstancesBlockDeviceMapping& WithEbs(ScheduledInstancesEbs&& value) { SetEbs(std::move(value)); return *this;}
128 
129 
134  inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
135 
140  inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
141 
146  inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
147 
152  inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
153 
158  inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
159 
164  inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
165 
170  inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
171 
176  inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
177 
178 
190  inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
191 
203  inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
204 
216  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
217 
229  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
230 
242  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
243 
255  inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
256 
268  inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
269 
281  inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
282 
283  private:
284 
285  Aws::String m_deviceName;
286  bool m_deviceNameHasBeenSet;
287 
288  ScheduledInstancesEbs m_ebs;
289  bool m_ebsHasBeenSet;
290 
291  Aws::String m_noDevice;
292  bool m_noDeviceHasBeenSet;
293 
294  Aws::String m_virtualName;
295  bool m_virtualNameHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace EC2
300 } // namespace Aws
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: ScheduledInstancesBlockDeviceMapping.h:103
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithDeviceName
ScheduledInstancesBlockDeviceMapping & WithDeviceName(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:78
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping
Definition: ScheduledInstancesBlockDeviceMapping.h:34
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetNoDevice
void SetNoDevice(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:152
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithDeviceName
ScheduledInstancesBlockDeviceMapping & WithDeviceName(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:90
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithEbs
ScheduledInstancesBlockDeviceMapping & WithEbs(ScheduledInstancesEbs &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:127
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::VirtualNameHasBeenSet
bool VirtualNameHasBeenSet() const
Definition: ScheduledInstancesBlockDeviceMapping.h:203
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithNoDevice
ScheduledInstancesBlockDeviceMapping & WithNoDevice(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:164
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: ScheduledInstancesBlockDeviceMapping.h:54
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithNoDevice
ScheduledInstancesBlockDeviceMapping & WithNoDevice(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:176
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithNoDevice
ScheduledInstancesBlockDeviceMapping & WithNoDevice(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:170
Aws::EC2::Model::ScheduledInstancesEbs
Definition: ScheduledInstancesEbs.h:33
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetNoDevice
void SetNoDevice(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:158
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::GetEbs
const ScheduledInstancesEbs & GetEbs() const
Definition: ScheduledInstancesBlockDeviceMapping.h:97
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::GetVirtualName
const Aws::String & GetVirtualName() const
Definition: ScheduledInstancesBlockDeviceMapping.h:190
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::GetNoDevice
const Aws::String & GetNoDevice() const
Definition: ScheduledInstancesBlockDeviceMapping.h:134
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetDeviceName
void SetDeviceName(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:72
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::NoDeviceHasBeenSet
bool NoDeviceHasBeenSet() const
Definition: ScheduledInstancesBlockDeviceMapping.h:140
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetVirtualName
void SetVirtualName(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:229
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetEbs
void SetEbs(const ScheduledInstancesEbs &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:109
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:60
AWSString.h
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetVirtualName
void SetVirtualName(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:216
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::ScheduledInstancesBlockDeviceMapping
ScheduledInstancesBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithVirtualName
ScheduledInstancesBlockDeviceMapping & WithVirtualName(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:255
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetNoDevice
void SetNoDevice(const Aws::String &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:146
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithVirtualName
ScheduledInstancesBlockDeviceMapping & WithVirtualName(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:268
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetVirtualName
void SetVirtualName(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:242
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetEbs
void SetEbs(ScheduledInstancesEbs &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:115
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::operator=
ScheduledInstancesBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:66
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithVirtualName
ScheduledInstancesBlockDeviceMapping & WithVirtualName(const char *value)
Definition: ScheduledInstancesBlockDeviceMapping.h:281
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
ScheduledInstancesEbs.h
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::ScheduledInstancesBlockDeviceMapping
ScheduledInstancesBlockDeviceMapping()
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: ScheduledInstancesBlockDeviceMapping.h:48
EC2_EXPORTS.h
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithEbs
ScheduledInstancesBlockDeviceMapping & WithEbs(const ScheduledInstancesEbs &value)
Definition: ScheduledInstancesBlockDeviceMapping.h:121
Aws::EC2::Model::ScheduledInstancesBlockDeviceMapping::WithDeviceName
ScheduledInstancesBlockDeviceMapping & WithDeviceName(Aws::String &&value)
Definition: ScheduledInstancesBlockDeviceMapping.h:84