AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EbsBlockDevice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/VolumeSpecification.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EMR {
21namespace Model {
22
30 public:
31 AWS_EMR_API EbsBlockDevice() = default;
35
37
42 inline const VolumeSpecification& GetVolumeSpecification() const { return m_volumeSpecification; }
43 inline bool VolumeSpecificationHasBeenSet() const { return m_volumeSpecificationHasBeenSet; }
44 template <typename VolumeSpecificationT = VolumeSpecification>
45 void SetVolumeSpecification(VolumeSpecificationT&& value) {
46 m_volumeSpecificationHasBeenSet = true;
47 m_volumeSpecification = std::forward<VolumeSpecificationT>(value);
48 }
49 template <typename VolumeSpecificationT = VolumeSpecification>
50 EbsBlockDevice& WithVolumeSpecification(VolumeSpecificationT&& value) {
51 SetVolumeSpecification(std::forward<VolumeSpecificationT>(value));
52 return *this;
53 }
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) {
64 m_deviceHasBeenSet = true;
65 m_device = std::forward<DeviceT>(value);
66 }
67 template <typename DeviceT = Aws::String>
68 EbsBlockDevice& WithDevice(DeviceT&& value) {
69 SetDevice(std::forward<DeviceT>(value));
70 return *this;
71 }
73 private:
74 VolumeSpecification m_volumeSpecification;
75
76 Aws::String m_device;
77 bool m_volumeSpecificationHasBeenSet = false;
78 bool m_deviceHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EMR
83} // 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