AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EbsVolume.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
28class EbsVolume {
29 public:
30 AWS_EMR_API EbsVolume() = default;
31 AWS_EMR_API EbsVolume(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetDevice() const { return m_device; }
40 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
41 template <typename DeviceT = Aws::String>
42 void SetDevice(DeviceT&& value) {
43 m_deviceHasBeenSet = true;
44 m_device = std::forward<DeviceT>(value);
45 }
46 template <typename DeviceT = Aws::String>
47 EbsVolume& WithDevice(DeviceT&& value) {
48 SetDevice(std::forward<DeviceT>(value));
49 return *this;
50 }
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) {
61 m_volumeIdHasBeenSet = true;
62 m_volumeId = std::forward<VolumeIdT>(value);
63 }
64 template <typename VolumeIdT = Aws::String>
65 EbsVolume& WithVolumeId(VolumeIdT&& value) {
66 SetVolumeId(std::forward<VolumeIdT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_device;
72
73 Aws::String m_volumeId;
74 bool m_deviceHasBeenSet = false;
75 bool m_volumeIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EMR
80} // namespace Aws
AWS_EMR_API EbsVolume(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDevice() const
Definition EbsVolume.h:39
bool DeviceHasBeenSet() const
Definition EbsVolume.h:40
void SetDevice(DeviceT &&value)
Definition EbsVolume.h:42
EbsVolume & WithDevice(DeviceT &&value)
Definition EbsVolume.h:47
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:65
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