AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
EbsVolumeConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComputeOptimizerAutomation {
20namespace Model {
21
28 public:
29 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration() = default;
30 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue);
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetType() const { return m_type; }
39 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
40 template <typename TypeT = Aws::String>
41 void SetType(TypeT&& value) {
42 m_typeHasBeenSet = true;
43 m_type = std::forward<TypeT>(value);
44 }
45 template <typename TypeT = Aws::String>
47 SetType(std::forward<TypeT>(value));
48 return *this;
49 }
51
53
56 inline int GetSizeInGib() const { return m_sizeInGib; }
57 inline bool SizeInGibHasBeenSet() const { return m_sizeInGibHasBeenSet; }
58 inline void SetSizeInGib(int value) {
59 m_sizeInGibHasBeenSet = true;
60 m_sizeInGib = value;
61 }
63 SetSizeInGib(value);
64 return *this;
65 }
67
69
73 inline int GetIops() const { return m_iops; }
74 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
75 inline void SetIops(int value) {
76 m_iopsHasBeenSet = true;
77 m_iops = value;
78 }
79 inline EbsVolumeConfiguration& WithIops(int value) {
80 SetIops(value);
81 return *this;
82 }
84
86
90 inline int GetThroughput() const { return m_throughput; }
91 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
92 inline void SetThroughput(int value) {
93 m_throughputHasBeenSet = true;
94 m_throughput = value;
95 }
97 SetThroughput(value);
98 return *this;
99 }
101 private:
102 Aws::String m_type;
103
104 int m_sizeInGib{0};
105
106 int m_iops{0};
107
108 int m_throughput{0};
109 bool m_typeHasBeenSet = false;
110 bool m_sizeInGibHasBeenSet = false;
111 bool m_iopsHasBeenSet = false;
112 bool m_throughputHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ComputeOptimizerAutomation
117} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API EbsVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue