AWS SDK for C++  1.9.125
AWS SDK for C++
InstanceBlockDeviceMapping.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
48 
53  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
54 
59  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
60 
65  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
66 
71  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
72 
77  inline InstanceBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
78 
83  inline InstanceBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
84 
89  inline InstanceBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
90 
91 
96  inline const EbsInstanceBlockDevice& GetEbs() const{ return m_ebs; }
97 
102  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
103 
108  inline void SetEbs(const EbsInstanceBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
109 
114  inline void SetEbs(EbsInstanceBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
115 
120  inline InstanceBlockDeviceMapping& WithEbs(const EbsInstanceBlockDevice& value) { SetEbs(value); return *this;}
121 
126  inline InstanceBlockDeviceMapping& WithEbs(EbsInstanceBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
127 
128  private:
129 
130  Aws::String m_deviceName;
131  bool m_deviceNameHasBeenSet;
132 
134  bool m_ebsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace EC2
139 } // namespace Aws
Aws::EC2::Model::InstanceBlockDeviceMapping::WithEbs
InstanceBlockDeviceMapping & WithEbs(const EbsInstanceBlockDevice &value)
Definition: InstanceBlockDeviceMapping.h:120
Aws::EC2::Model::InstanceBlockDeviceMapping::SetEbs
void SetEbs(EbsInstanceBlockDevice &&value)
Definition: InstanceBlockDeviceMapping.h:114
Aws::EC2::Model::InstanceBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
EbsInstanceBlockDevice.h
Aws::EC2::Model::InstanceBlockDeviceMapping::SetEbs
void SetEbs(const EbsInstanceBlockDevice &value)
Definition: InstanceBlockDeviceMapping.h:108
AWSStreamFwd.h
Aws::EC2::Model::InstanceBlockDeviceMapping::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceBlockDeviceMapping::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: InstanceBlockDeviceMapping.h:59
Aws::EC2::Model::InstanceBlockDeviceMapping::SetDeviceName
void SetDeviceName(const char *value)
Definition: InstanceBlockDeviceMapping.h:71
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceBlockDeviceMapping::WithDeviceName
InstanceBlockDeviceMapping & WithDeviceName(const char *value)
Definition: InstanceBlockDeviceMapping.h:89
Aws::EC2::Model::InstanceBlockDeviceMapping::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: InstanceBlockDeviceMapping.h:102
Aws::EC2::Model::InstanceBlockDeviceMapping::WithDeviceName
InstanceBlockDeviceMapping & WithDeviceName(Aws::String &&value)
Definition: InstanceBlockDeviceMapping.h:83
Aws::EC2::Model::InstanceBlockDeviceMapping::InstanceBlockDeviceMapping
InstanceBlockDeviceMapping()
AWSString.h
Aws::EC2::Model::EbsInstanceBlockDevice
Definition: EbsInstanceBlockDevice.h:35
Aws::EC2::Model::InstanceBlockDeviceMapping::operator=
InstanceBlockDeviceMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceBlockDeviceMapping::InstanceBlockDeviceMapping
InstanceBlockDeviceMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceBlockDeviceMapping::WithEbs
InstanceBlockDeviceMapping & WithEbs(EbsInstanceBlockDevice &&value)
Definition: InstanceBlockDeviceMapping.h:126
Aws::EC2::Model::InstanceBlockDeviceMapping::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: InstanceBlockDeviceMapping.h:47
Aws::EC2::Model::InstanceBlockDeviceMapping
Definition: InstanceBlockDeviceMapping.h:33
Aws::EC2::Model::InstanceBlockDeviceMapping::GetEbs
const EbsInstanceBlockDevice & GetEbs() const
Definition: InstanceBlockDeviceMapping.h:96
Aws
Definition: AccessManagementClient.h:15
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
Aws::EC2::Model::InstanceBlockDeviceMapping::WithDeviceName
InstanceBlockDeviceMapping & WithDeviceName(const Aws::String &value)
Definition: InstanceBlockDeviceMapping.h:77
Aws::EC2::Model::InstanceBlockDeviceMapping::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: InstanceBlockDeviceMapping.h:65
EC2_EXPORTS.h
Aws::EC2::Model::InstanceBlockDeviceMapping::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: InstanceBlockDeviceMapping.h:53