AWS SDK for C++  1.9.75
AWS SDK for C++
LaunchTemplateBlockDeviceMappingRequest.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 
46  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
47 
51  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
52 
56  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
57 
61  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
62 
66  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
67 
71  inline LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
72 
76  inline LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
77 
81  inline LaunchTemplateBlockDeviceMappingRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
82 
83 
91  inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
92 
100  inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
101 
109  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
110 
118  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
119 
127  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
128 
136  inline LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
137 
145  inline LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
146 
154  inline LaunchTemplateBlockDeviceMappingRequest& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
155 
156 
161  inline const LaunchTemplateEbsBlockDeviceRequest& GetEbs() const{ return m_ebs; }
162 
167  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
168 
173  inline void SetEbs(const LaunchTemplateEbsBlockDeviceRequest& value) { m_ebsHasBeenSet = true; m_ebs = value; }
174 
179  inline void SetEbs(LaunchTemplateEbsBlockDeviceRequest&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
180 
185  inline LaunchTemplateBlockDeviceMappingRequest& WithEbs(const LaunchTemplateEbsBlockDeviceRequest& value) { SetEbs(value); return *this;}
186 
191  inline LaunchTemplateBlockDeviceMappingRequest& WithEbs(LaunchTemplateEbsBlockDeviceRequest&& value) { SetEbs(std::move(value)); return *this;}
192 
193 
198  inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
199 
204  inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
205 
210  inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
211 
216  inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
217 
222  inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
223 
228  inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
229 
234  inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
235 
240  inline LaunchTemplateBlockDeviceMappingRequest& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
241 
242  private:
243 
244  Aws::String m_deviceName;
245  bool m_deviceNameHasBeenSet;
246 
247  Aws::String m_virtualName;
248  bool m_virtualNameHasBeenSet;
249 
251  bool m_ebsHasBeenSet;
252 
253  Aws::String m_noDevice;
254  bool m_noDeviceHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace EC2
259 } // namespace Aws
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetVirtualName
void SetVirtualName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:109
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetEbs
void SetEbs(LaunchTemplateEbsBlockDeviceRequest &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:179
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithEbs
LaunchTemplateBlockDeviceMappingRequest & WithEbs(LaunchTemplateEbsBlockDeviceRequest &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:191
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::GetNoDevice
const Aws::String & GetNoDevice() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:198
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithVirtualName
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:145
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::LaunchTemplateBlockDeviceMappingRequest
LaunchTemplateBlockDeviceMappingRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:167
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::LaunchTemplateBlockDeviceMappingRequest
LaunchTemplateBlockDeviceMappingRequest()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithDeviceName
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:81
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithVirtualName
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:136
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::VirtualNameHasBeenSet
bool VirtualNameHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:100
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:51
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetVirtualName
void SetVirtualName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:118
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetVirtualName
void SetVirtualName(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:127
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::GetEbs
const LaunchTemplateEbsBlockDeviceRequest & GetEbs() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:161
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetNoDevice
void SetNoDevice(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:210
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetNoDevice
void SetNoDevice(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:216
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetDeviceName
void SetDeviceName(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:66
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest
Definition: LaunchTemplateBlockDeviceMappingRequest.h:33
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithDeviceName
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:71
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::operator=
LaunchTemplateBlockDeviceMappingRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:46
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithNoDevice
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:240
LaunchTemplateEbsBlockDeviceRequest.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithNoDevice
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:228
AWSString.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:61
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::GetVirtualName
const Aws::String & GetVirtualName() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:91
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithEbs
LaunchTemplateBlockDeviceMappingRequest & WithEbs(const LaunchTemplateEbsBlockDeviceRequest &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:185
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::NoDeviceHasBeenSet
bool NoDeviceHasBeenSet() const
Definition: LaunchTemplateBlockDeviceMappingRequest.h:204
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::LaunchTemplateBlockDeviceMappingRequest::WithDeviceName
LaunchTemplateBlockDeviceMappingRequest & WithDeviceName(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:76
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetNoDevice
void SetNoDevice(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:222
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetEbs
void SetEbs(const LaunchTemplateEbsBlockDeviceRequest &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:173
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithNoDevice
LaunchTemplateBlockDeviceMappingRequest & WithNoDevice(Aws::String &&value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:234
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::WithVirtualName
LaunchTemplateBlockDeviceMappingRequest & WithVirtualName(const char *value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:154
Aws::EC2::Model::LaunchTemplateBlockDeviceMappingRequest::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: LaunchTemplateBlockDeviceMappingRequest.h:56
Aws::EC2::Model::LaunchTemplateEbsBlockDeviceRequest
Definition: LaunchTemplateEbsBlockDeviceRequest.h:34