AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EbsBlockDeviceConfig.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/VolumeSpecification.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
30 public:
31 AWS_EMR_API EbsBlockDeviceConfig() = 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 EbsBlockDeviceConfig& WithVolumeSpecification(VolumeSpecificationT&& value) {
51 SetVolumeSpecification(std::forward<VolumeSpecificationT>(value));
52 return *this;
53 }
55
57
61 inline int GetVolumesPerInstance() const { return m_volumesPerInstance; }
62 inline bool VolumesPerInstanceHasBeenSet() const { return m_volumesPerInstanceHasBeenSet; }
63 inline void SetVolumesPerInstance(int value) {
64 m_volumesPerInstanceHasBeenSet = true;
65 m_volumesPerInstance = value;
66 }
69 return *this;
70 }
72 private:
73 VolumeSpecification m_volumeSpecification;
74
75 int m_volumesPerInstance{0};
76 bool m_volumeSpecificationHasBeenSet = false;
77 bool m_volumesPerInstanceHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EMR
82} // namespace Aws
void SetVolumeSpecification(VolumeSpecificationT &&value)
AWS_EMR_API EbsBlockDeviceConfig()=default
EbsBlockDeviceConfig & WithVolumeSpecification(VolumeSpecificationT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API EbsBlockDeviceConfig(Aws::Utils::Json::JsonView jsonValue)
const VolumeSpecification & GetVolumeSpecification() const
EbsBlockDeviceConfig & WithVolumesPerInstance(int value)
AWS_EMR_API EbsBlockDeviceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue