AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceBlockDeviceMapping.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/EbsInstanceBlockDeviceSpecification.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 imagebuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IMAGEBUILDER_API InstanceBlockDeviceMapping();
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
47 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
48 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
49 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
50 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
51 inline InstanceBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
52 inline InstanceBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
53 inline InstanceBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
55
57
60 inline const EbsInstanceBlockDeviceSpecification& GetEbs() const{ return m_ebs; }
61 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
62 inline void SetEbs(const EbsInstanceBlockDeviceSpecification& value) { m_ebsHasBeenSet = true; m_ebs = value; }
63 inline void SetEbs(EbsInstanceBlockDeviceSpecification&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
65 inline InstanceBlockDeviceMapping& WithEbs(EbsInstanceBlockDeviceSpecification&& value) { SetEbs(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetVirtualName() const{ return m_virtualName; }
73 inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; }
74 inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
75 inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); }
76 inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
77 inline InstanceBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
78 inline InstanceBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;}
79 inline InstanceBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
81
83
86 inline const Aws::String& GetNoDevice() const{ return m_noDevice; }
87 inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; }
88 inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
89 inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); }
90 inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); }
91 inline InstanceBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;}
92 inline InstanceBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;}
93 inline InstanceBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;}
95 private:
96
97 Aws::String m_deviceName;
98 bool m_deviceNameHasBeenSet = false;
99
101 bool m_ebsHasBeenSet = false;
102
103 Aws::String m_virtualName;
104 bool m_virtualNameHasBeenSet = false;
105
106 Aws::String m_noDevice;
107 bool m_noDeviceHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace imagebuilder
112} // namespace Aws
InstanceBlockDeviceMapping & WithNoDevice(const char *value)
AWS_IMAGEBUILDER_API InstanceBlockDeviceMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEbs(EbsInstanceBlockDeviceSpecification &&value)
InstanceBlockDeviceMapping & WithVirtualName(const char *value)
InstanceBlockDeviceMapping & WithDeviceName(const char *value)
void SetEbs(const EbsInstanceBlockDeviceSpecification &value)
InstanceBlockDeviceMapping & WithVirtualName(Aws::String &&value)
InstanceBlockDeviceMapping & WithEbs(const EbsInstanceBlockDeviceSpecification &value)
AWS_IMAGEBUILDER_API InstanceBlockDeviceMapping(Aws::Utils::Json::JsonView jsonValue)
const EbsInstanceBlockDeviceSpecification & GetEbs() const
InstanceBlockDeviceMapping & WithNoDevice(const Aws::String &value)
InstanceBlockDeviceMapping & WithDeviceName(Aws::String &&value)
InstanceBlockDeviceMapping & WithVirtualName(const Aws::String &value)
InstanceBlockDeviceMapping & WithDeviceName(const Aws::String &value)
InstanceBlockDeviceMapping & WithEbs(EbsInstanceBlockDeviceSpecification &&value)
InstanceBlockDeviceMapping & WithNoDevice(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue