AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EbsBlockDevice.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/VolumeSpecification.h>
9#include <aws/core/utils/memory/stl/AWSString.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 EMR
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EMR_API EbsBlockDevice() = default;
40
41
43
48 inline const VolumeSpecification& GetVolumeSpecification() const { return m_volumeSpecification; }
49 inline bool VolumeSpecificationHasBeenSet() const { return m_volumeSpecificationHasBeenSet; }
50 template<typename VolumeSpecificationT = VolumeSpecification>
51 void SetVolumeSpecification(VolumeSpecificationT&& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = std::forward<VolumeSpecificationT>(value); }
52 template<typename VolumeSpecificationT = VolumeSpecification>
53 EbsBlockDevice& WithVolumeSpecification(VolumeSpecificationT&& value) { SetVolumeSpecification(std::forward<VolumeSpecificationT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDevice() const { return m_device; }
61 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
62 template<typename DeviceT = Aws::String>
63 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
64 template<typename DeviceT = Aws::String>
65 EbsBlockDevice& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
67 private:
68
69 VolumeSpecification m_volumeSpecification;
70 bool m_volumeSpecificationHasBeenSet = false;
71
72 Aws::String m_device;
73 bool m_deviceHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EMR
78} // namespace Aws
EbsBlockDevice & WithVolumeSpecification(VolumeSpecificationT &&value)
EbsBlockDevice & WithDevice(DeviceT &&value)
void SetVolumeSpecification(VolumeSpecificationT &&value)
AWS_EMR_API EbsBlockDevice(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API EbsBlockDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
const VolumeSpecification & GetVolumeSpecification() const
void SetDevice(DeviceT &&value)
AWS_EMR_API EbsBlockDevice()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDevice() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue