AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VolumeSpecification.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 VolumeSpecification() = default;
40
41
43
47 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
48 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
49 template<typename VolumeTypeT = Aws::String>
50 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
51 template<typename VolumeTypeT = Aws::String>
52 VolumeSpecification& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
54
56
59 inline int GetIops() const { return m_iops; }
60 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
61 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
62 inline VolumeSpecification& WithIops(int value) { SetIops(value); return *this;}
64
66
70 inline int GetSizeInGB() const { return m_sizeInGB; }
71 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
72 inline void SetSizeInGB(int value) { m_sizeInGBHasBeenSet = true; m_sizeInGB = value; }
73 inline VolumeSpecification& WithSizeInGB(int value) { SetSizeInGB(value); return *this;}
75
77
81 inline int GetThroughput() const { return m_throughput; }
82 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
83 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
84 inline VolumeSpecification& WithThroughput(int value) { SetThroughput(value); return *this;}
86 private:
87
88 Aws::String m_volumeType;
89 bool m_volumeTypeHasBeenSet = false;
90
91 int m_iops{0};
92 bool m_iopsHasBeenSet = false;
93
94 int m_sizeInGB{0};
95 bool m_sizeInGBHasBeenSet = false;
96
97 int m_throughput{0};
98 bool m_throughputHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EMR
103} // namespace Aws
void SetVolumeType(VolumeTypeT &&value)
VolumeSpecification & WithVolumeType(VolumeTypeT &&value)
VolumeSpecification & WithSizeInGB(int value)
const Aws::String & GetVolumeType() const
AWS_EMR_API VolumeSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API VolumeSpecification()=default
VolumeSpecification & WithIops(int value)
VolumeSpecification & WithThroughput(int value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API VolumeSpecification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue