AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EbsVolume.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EMR_API EbsVolume() = default;
36 AWS_EMR_API EbsVolume(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetDevice() const { return m_device; }
46 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
47 template<typename DeviceT = Aws::String>
48 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
49 template<typename DeviceT = Aws::String>
50 EbsVolume& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
52
54
57 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
58 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
59 template<typename VolumeIdT = Aws::String>
60 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
61 template<typename VolumeIdT = Aws::String>
62 EbsVolume& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
64 private:
65
66 Aws::String m_device;
67 bool m_deviceHasBeenSet = false;
68
69 Aws::String m_volumeId;
70 bool m_volumeIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // namespace Aws
AWS_EMR_API EbsVolume(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDevice() const
Definition EbsVolume.h:45
bool DeviceHasBeenSet() const
Definition EbsVolume.h:46
void SetDevice(DeviceT &&value)
Definition EbsVolume.h:48
EbsVolume & WithDevice(DeviceT &&value)
Definition EbsVolume.h:50
AWS_EMR_API EbsVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVolumeId() const
Definition EbsVolume.h:57
bool VolumeIdHasBeenSet() const
Definition EbsVolume.h:58
EbsVolume & WithVolumeId(VolumeIdT &&value)
Definition EbsVolume.h:62
AWS_EMR_API EbsVolume()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVolumeId(VolumeIdT &&value)
Definition EbsVolume.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue