AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlockDeviceMapping.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/EbsBlockDevice.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpsWorks
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_OPSWORKS_API BlockDeviceMapping();
41 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
52 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
53 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
54 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
55 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
56 inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
57 inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
58 inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
60
62
66 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
67 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
68 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
69 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
70 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
71 inline BlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
72 inline BlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
73 inline BlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
75
77
81 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
82 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
83 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
84 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
85 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
86 inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
87 inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
88 inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
90
92
96 inline const EbsBlockDevice& GetEbs() const{ return m_ebs; }
97 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
98 inline void SetEbs(const EbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
99 inline void SetEbs(EbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
100 inline BlockDeviceMapping& WithEbs(const EbsBlockDevice& value) { SetEbs(value); return *this;}
101 inline BlockDeviceMapping& WithEbs(EbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
103 private:
104
105 Aws::String m_deviceName;
106 bool m_deviceNameHasBeenSet = false;
107
108 Aws::String m_noDevice;
109 bool m_noDeviceHasBeenSet = false;
110
111 Aws::String m_virtualName;
112 bool m_virtualNameHasBeenSet = false;
113
114 EbsBlockDevice m_ebs;
115 bool m_ebsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace OpsWorks
120} // namespace Aws
AWS_OPSWORKS_API BlockDeviceMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockDeviceMapping & WithDeviceName(const char *value)
BlockDeviceMapping & WithNoDevice(const char *value)
BlockDeviceMapping & WithNoDevice(const Aws::String &value)
const Aws::String & GetVirtualName() const
const EbsBlockDevice & GetEbs() const
void SetNoDevice(const Aws::String &value)
AWS_OPSWORKS_API BlockDeviceMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
BlockDeviceMapping & WithVirtualName(const char *value)
void SetEbs(const EbsBlockDevice &value)
void SetVirtualName(const Aws::String &value)
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
void SetDeviceName(const Aws::String &value)
const Aws::String & GetDeviceName() const
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
BlockDeviceMapping & WithNoDevice(Aws::String &&value)
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
BlockDeviceMapping & WithEbs(const EbsBlockDevice &value)
BlockDeviceMapping & WithEbs(EbsBlockDevice &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue