AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DBStorageConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_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 ComputeOptimizer {
20namespace Model {
21
29 public:
30 AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration() = default;
31 AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStorageType() const { return m_storageType; }
40 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
41 template <typename StorageTypeT = Aws::String>
42 void SetStorageType(StorageTypeT&& value) {
43 m_storageTypeHasBeenSet = true;
44 m_storageType = std::forward<StorageTypeT>(value);
45 }
46 template <typename StorageTypeT = Aws::String>
47 DBStorageConfiguration& WithStorageType(StorageTypeT&& value) {
48 SetStorageType(std::forward<StorageTypeT>(value));
49 return *this;
50 }
52
54
57 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
58 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
59 inline void SetAllocatedStorage(int value) {
60 m_allocatedStorageHasBeenSet = true;
61 m_allocatedStorage = value;
62 }
65 return *this;
66 }
68
70
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 DBStorageConfiguration& WithIops(int value) {
80 SetIops(value);
81 return *this;
82 }
84
86
90 inline int GetMaxAllocatedStorage() const { return m_maxAllocatedStorage; }
91 inline bool MaxAllocatedStorageHasBeenSet() const { return m_maxAllocatedStorageHasBeenSet; }
92 inline void SetMaxAllocatedStorage(int value) {
93 m_maxAllocatedStorageHasBeenSet = true;
94 m_maxAllocatedStorage = value;
95 }
98 return *this;
99 }
101
103
106 inline int GetStorageThroughput() const { return m_storageThroughput; }
107 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
108 inline void SetStorageThroughput(int value) {
109 m_storageThroughputHasBeenSet = true;
110 m_storageThroughput = value;
111 }
114 return *this;
115 }
117 private:
118 Aws::String m_storageType;
119
120 int m_allocatedStorage{0};
121
122 int m_iops{0};
123
124 int m_maxAllocatedStorage{0};
125
126 int m_storageThroughput{0};
127 bool m_storageTypeHasBeenSet = false;
128 bool m_allocatedStorageHasBeenSet = false;
129 bool m_iopsHasBeenSet = false;
130 bool m_maxAllocatedStorageHasBeenSet = false;
131 bool m_storageThroughputHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ComputeOptimizer
136} // namespace Aws
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DBStorageConfiguration & WithMaxAllocatedStorage(int value)
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration(Aws::Utils::Json::JsonView jsonValue)
DBStorageConfiguration & WithStorageType(StorageTypeT &&value)
AWS_COMPUTEOPTIMIZER_API DBStorageConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue