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/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snow-device-management/model/EbsInstanceBlockDevice.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 SnowDeviceManagement
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SNOWDEVICEMANAGEMENT_API InstanceBlockDeviceMapping();
36 AWS_SNOWDEVICEMANAGEMENT_API InstanceBlockDeviceMapping(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWDEVICEMANAGEMENT_API InstanceBlockDeviceMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
46 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
47 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
48 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
49 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
50 inline InstanceBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
51 inline InstanceBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
52 inline InstanceBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
54
56
60 inline const EbsInstanceBlockDevice& GetEbs() const{ return m_ebs; }
61 inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
62 inline void SetEbs(const EbsInstanceBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
63 inline void SetEbs(EbsInstanceBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
64 inline InstanceBlockDeviceMapping& WithEbs(const EbsInstanceBlockDevice& value) { SetEbs(value); return *this;}
65 inline InstanceBlockDeviceMapping& WithEbs(EbsInstanceBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_deviceName;
70 bool m_deviceNameHasBeenSet = false;
71
73 bool m_ebsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SnowDeviceManagement
78} // namespace Aws
InstanceBlockDeviceMapping & WithDeviceName(Aws::String &&value)
AWS_SNOWDEVICEMANAGEMENT_API InstanceBlockDeviceMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceBlockDeviceMapping & WithEbs(EbsInstanceBlockDevice &&value)
AWS_SNOWDEVICEMANAGEMENT_API InstanceBlockDeviceMapping(Aws::Utils::Json::JsonView jsonValue)
InstanceBlockDeviceMapping & WithDeviceName(const Aws::String &value)
InstanceBlockDeviceMapping & WithDeviceName(const char *value)
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceBlockDeviceMapping & WithEbs(const EbsInstanceBlockDevice &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue