AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
VolumeSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.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 VolumeSpecification() = default;
35
37
41 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
42 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
43 template <typename VolumeTypeT = Aws::String>
44 void SetVolumeType(VolumeTypeT&& value) {
45 m_volumeTypeHasBeenSet = true;
46 m_volumeType = std::forward<VolumeTypeT>(value);
47 }
48 template <typename VolumeTypeT = Aws::String>
49 VolumeSpecification& WithVolumeType(VolumeTypeT&& value) {
50 SetVolumeType(std::forward<VolumeTypeT>(value));
51 return *this;
52 }
54
56
59 inline int GetIops() const { return m_iops; }
60 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
61 inline void SetIops(int value) {
62 m_iopsHasBeenSet = true;
63 m_iops = value;
64 }
65 inline VolumeSpecification& WithIops(int value) {
66 SetIops(value);
67 return *this;
68 }
70
72
76 inline int GetSizeInGB() const { return m_sizeInGB; }
77 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
78 inline void SetSizeInGB(int value) {
79 m_sizeInGBHasBeenSet = true;
80 m_sizeInGB = value;
81 }
82 inline VolumeSpecification& WithSizeInGB(int value) {
83 SetSizeInGB(value);
84 return *this;
85 }
87
89
93 inline int GetThroughput() const { return m_throughput; }
94 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
95 inline void SetThroughput(int value) {
96 m_throughputHasBeenSet = true;
97 m_throughput = value;
98 }
100 SetThroughput(value);
101 return *this;
102 }
104 private:
105 Aws::String m_volumeType;
106
107 int m_iops{0};
108
109 int m_sizeInGB{0};
110
111 int m_throughput{0};
112 bool m_volumeTypeHasBeenSet = false;
113 bool m_iopsHasBeenSet = false;
114 bool m_sizeInGBHasBeenSet = false;
115 bool m_throughputHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace EMR
120} // 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