AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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
34 {
35 public:
36 AWS_EMR_API EbsBlockDeviceConfig() = 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 EbsBlockDeviceConfig& WithVolumeSpecification(VolumeSpecificationT&& value) { SetVolumeSpecification(std::forward<VolumeSpecificationT>(value)); return *this;}
55
57
61 inline int GetVolumesPerInstance() const { return m_volumesPerInstance; }
62 inline bool VolumesPerInstanceHasBeenSet() const { return m_volumesPerInstanceHasBeenSet; }
63 inline void SetVolumesPerInstance(int value) { m_volumesPerInstanceHasBeenSet = true; m_volumesPerInstance = value; }
64 inline EbsBlockDeviceConfig& WithVolumesPerInstance(int value) { SetVolumesPerInstance(value); return *this;}
66 private:
67
68 VolumeSpecification m_volumeSpecification;
69 bool m_volumeSpecificationHasBeenSet = false;
70
71 int m_volumesPerInstance{0};
72 bool m_volumesPerInstanceHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EMR
77} // 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