AWS SDK for C++  1.9.106
AWS SDK for C++
BlockDeviceMapping.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
50  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
51 
58  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
59 
66  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
67 
74  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
75 
82  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
83 
90  inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
91 
98  inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
99 
106  inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
107 
108 
113  inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
114 
119  inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
120 
125  inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
126 
131  inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
132 
137  inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
138 
143  inline BlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
144 
149  inline BlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
150 
155  inline BlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
156 
157 
162  inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
163 
168  inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
169 
174  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
175 
180  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
181 
186  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
187 
192  inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
193 
198  inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
199 
204  inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
205 
206 
211  inline const EbsBlockDevice& GetEbs() const{ return m_ebs; }
212 
217  inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
218 
223  inline void SetEbs(const EbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
224 
229  inline void SetEbs(EbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
230 
235  inline BlockDeviceMapping& WithEbs(const EbsBlockDevice& value) { SetEbs(value); return *this;}
236 
241  inline BlockDeviceMapping& WithEbs(EbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
242 
243  private:
244 
245  Aws::String m_deviceName;
246  bool m_deviceNameHasBeenSet;
247 
248  Aws::String m_noDevice;
249  bool m_noDeviceHasBeenSet;
250 
251  Aws::String m_virtualName;
252  bool m_virtualNameHasBeenSet;
253 
254  EbsBlockDevice m_ebs;
255  bool m_ebsHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace OpsWorks
260 } // namespace Aws
Aws::OpsWorks::Model::BlockDeviceMapping::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: BlockDeviceMapping.h:58
Aws::OpsWorks::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: BlockDeviceMapping.h:74
Aws::OpsWorks::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(const char *value)
Definition: BlockDeviceMapping.h:106
Aws::OpsWorks::Model::BlockDeviceMapping::SetEbs
void SetEbs(const EbsBlockDevice &value)
Definition: BlockDeviceMapping.h:223
Aws::OpsWorks::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(const char *value)
Definition: BlockDeviceMapping.h:186
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(const Aws::String &value)
Definition: BlockDeviceMapping.h:125
Aws::OpsWorks::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
Definition: BlockDeviceMapping.h:90
Aws::OpsWorks::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(const Aws::String &value)
Definition: BlockDeviceMapping.h:143
Aws::OpsWorks::Model::BlockDeviceMapping::EbsHasBeenSet
bool EbsHasBeenSet() const
Definition: BlockDeviceMapping.h:217
Aws::OpsWorks::Model::BlockDeviceMapping::VirtualNameHasBeenSet
bool VirtualNameHasBeenSet() const
Definition: BlockDeviceMapping.h:168
Aws::OpsWorks::Model::BlockDeviceMapping::GetEbs
const EbsBlockDevice & GetEbs() const
Definition: BlockDeviceMapping.h:211
Aws::OpsWorks::Model::BlockDeviceMapping::GetVirtualName
const Aws::String & GetVirtualName() const
Definition: BlockDeviceMapping.h:162
EbsBlockDevice.h
Aws::OpsWorks::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
Definition: BlockDeviceMapping.h:198
Aws::OpsWorks::Model::BlockDeviceMapping::WithEbs
BlockDeviceMapping & WithEbs(EbsBlockDevice &&value)
Definition: BlockDeviceMapping.h:241
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(const char *value)
Definition: BlockDeviceMapping.h:137
Aws::OpsWorks::Model::BlockDeviceMapping::GetNoDevice
const Aws::String & GetNoDevice() const
Definition: BlockDeviceMapping.h:113
Aws::OpsWorks::Model::BlockDeviceMapping::WithDeviceName
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
Definition: BlockDeviceMapping.h:98
Aws::OpsWorks::Model::BlockDeviceMapping::NoDeviceHasBeenSet
bool NoDeviceHasBeenSet() const
Definition: BlockDeviceMapping.h:119
Aws::OpsWorks::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
Definition: BlockDeviceMapping.h:192
Aws::OpsWorks::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(const char *value)
Definition: BlockDeviceMapping.h:155
Aws::OpsWorks::Model::BlockDeviceMapping::BlockDeviceMapping
BlockDeviceMapping(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::BlockDeviceMapping
Definition: BlockDeviceMapping.h:36
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: BlockDeviceMapping.h:66
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(Aws::String &&value)
Definition: BlockDeviceMapping.h:180
Aws::OpsWorks::Model::BlockDeviceMapping::WithVirtualName
BlockDeviceMapping & WithVirtualName(const char *value)
Definition: BlockDeviceMapping.h:204
Aws::OpsWorks::Model::BlockDeviceMapping::WithEbs
BlockDeviceMapping & WithEbs(const EbsBlockDevice &value)
Definition: BlockDeviceMapping.h:235
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::BlockDeviceMapping::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: BlockDeviceMapping.h:50
Aws::OpsWorks::Model::EbsBlockDevice
Definition: EbsBlockDevice.h:36
Aws::OpsWorks::Model::BlockDeviceMapping::WithNoDevice
BlockDeviceMapping & WithNoDevice(Aws::String &&value)
Definition: BlockDeviceMapping.h:149
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::BlockDeviceMapping::SetEbs
void SetEbs(EbsBlockDevice &&value)
Definition: BlockDeviceMapping.h:229
Aws::OpsWorks::Model::BlockDeviceMapping::operator=
BlockDeviceMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::BlockDeviceMapping::SetVirtualName
void SetVirtualName(const Aws::String &value)
Definition: BlockDeviceMapping.h:174
Aws::OpsWorks::Model::BlockDeviceMapping::SetDeviceName
void SetDeviceName(const char *value)
Definition: BlockDeviceMapping.h:82
Aws::OpsWorks::Model::BlockDeviceMapping::SetNoDevice
void SetNoDevice(Aws::String &&value)
Definition: BlockDeviceMapping.h:131
Aws::OpsWorks::Model::BlockDeviceMapping::BlockDeviceMapping
BlockDeviceMapping()
Aws::OpsWorks::Model::BlockDeviceMapping::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const