AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ValidStorageOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/DoubleRange.h>
12#include <aws/rds/model/Range.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS {
23namespace Model {
24
34 public:
35 AWS_RDS_API ValidStorageOptions() = default;
36 AWS_RDS_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
47 inline const Aws::String& GetStorageType() const { return m_storageType; }
48 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
49 template <typename StorageTypeT = Aws::String>
50 void SetStorageType(StorageTypeT&& value) {
51 m_storageTypeHasBeenSet = true;
52 m_storageType = std::forward<StorageTypeT>(value);
53 }
54 template <typename StorageTypeT = Aws::String>
55 ValidStorageOptions& WithStorageType(StorageTypeT&& value) {
56 SetStorageType(std::forward<StorageTypeT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Range>& GetStorageSize() const { return m_storageSize; }
67 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
68 template <typename StorageSizeT = Aws::Vector<Range>>
69 void SetStorageSize(StorageSizeT&& value) {
70 m_storageSizeHasBeenSet = true;
71 m_storageSize = std::forward<StorageSizeT>(value);
72 }
73 template <typename StorageSizeT = Aws::Vector<Range>>
74 ValidStorageOptions& WithStorageSize(StorageSizeT&& value) {
75 SetStorageSize(std::forward<StorageSizeT>(value));
76 return *this;
77 }
78 template <typename StorageSizeT = Range>
79 ValidStorageOptions& AddStorageSize(StorageSizeT&& value) {
80 m_storageSizeHasBeenSet = true;
81 m_storageSize.emplace_back(std::forward<StorageSizeT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Range>& GetProvisionedIops() const { return m_provisionedIops; }
91 inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
92 template <typename ProvisionedIopsT = Aws::Vector<Range>>
93 void SetProvisionedIops(ProvisionedIopsT&& value) {
94 m_provisionedIopsHasBeenSet = true;
95 m_provisionedIops = std::forward<ProvisionedIopsT>(value);
96 }
97 template <typename ProvisionedIopsT = Aws::Vector<Range>>
98 ValidStorageOptions& WithProvisionedIops(ProvisionedIopsT&& value) {
99 SetProvisionedIops(std::forward<ProvisionedIopsT>(value));
100 return *this;
101 }
102 template <typename ProvisionedIopsT = Range>
103 ValidStorageOptions& AddProvisionedIops(ProvisionedIopsT&& value) {
104 m_provisionedIopsHasBeenSet = true;
105 m_provisionedIops.emplace_back(std::forward<ProvisionedIopsT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const { return m_iopsToStorageRatio; }
117 inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
118 template <typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
119 void SetIopsToStorageRatio(IopsToStorageRatioT&& value) {
120 m_iopsToStorageRatioHasBeenSet = true;
121 m_iopsToStorageRatio = std::forward<IopsToStorageRatioT>(value);
122 }
123 template <typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
124 ValidStorageOptions& WithIopsToStorageRatio(IopsToStorageRatioT&& value) {
125 SetIopsToStorageRatio(std::forward<IopsToStorageRatioT>(value));
126 return *this;
127 }
128 template <typename IopsToStorageRatioT = DoubleRange>
129 ValidStorageOptions& AddIopsToStorageRatio(IopsToStorageRatioT&& value) {
130 m_iopsToStorageRatioHasBeenSet = true;
131 m_iopsToStorageRatio.emplace_back(std::forward<IopsToStorageRatioT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Vector<Range>& GetProvisionedStorageThroughput() const { return m_provisionedStorageThroughput; }
142 inline bool ProvisionedStorageThroughputHasBeenSet() const { return m_provisionedStorageThroughputHasBeenSet; }
143 template <typename ProvisionedStorageThroughputT = Aws::Vector<Range>>
144 void SetProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) {
145 m_provisionedStorageThroughputHasBeenSet = true;
146 m_provisionedStorageThroughput = std::forward<ProvisionedStorageThroughputT>(value);
147 }
148 template <typename ProvisionedStorageThroughputT = Aws::Vector<Range>>
149 ValidStorageOptions& WithProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) {
150 SetProvisionedStorageThroughput(std::forward<ProvisionedStorageThroughputT>(value));
151 return *this;
152 }
153 template <typename ProvisionedStorageThroughputT = Range>
154 ValidStorageOptions& AddProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) {
155 m_provisionedStorageThroughputHasBeenSet = true;
156 m_provisionedStorageThroughput.emplace_back(std::forward<ProvisionedStorageThroughputT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Vector<DoubleRange>& GetStorageThroughputToIopsRatio() const { return m_storageThroughputToIopsRatio; }
167 inline bool StorageThroughputToIopsRatioHasBeenSet() const { return m_storageThroughputToIopsRatioHasBeenSet; }
168 template <typename StorageThroughputToIopsRatioT = Aws::Vector<DoubleRange>>
169 void SetStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) {
170 m_storageThroughputToIopsRatioHasBeenSet = true;
171 m_storageThroughputToIopsRatio = std::forward<StorageThroughputToIopsRatioT>(value);
172 }
173 template <typename StorageThroughputToIopsRatioT = Aws::Vector<DoubleRange>>
174 ValidStorageOptions& WithStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) {
175 SetStorageThroughputToIopsRatio(std::forward<StorageThroughputToIopsRatioT>(value));
176 return *this;
177 }
178 template <typename StorageThroughputToIopsRatioT = DoubleRange>
179 ValidStorageOptions& AddStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) {
180 m_storageThroughputToIopsRatioHasBeenSet = true;
181 m_storageThroughputToIopsRatio.emplace_back(std::forward<StorageThroughputToIopsRatioT>(value));
182 return *this;
183 }
185
187
191 inline bool GetSupportsStorageAutoscaling() const { return m_supportsStorageAutoscaling; }
192 inline bool SupportsStorageAutoscalingHasBeenSet() const { return m_supportsStorageAutoscalingHasBeenSet; }
193 inline void SetSupportsStorageAutoscaling(bool value) {
194 m_supportsStorageAutoscalingHasBeenSet = true;
195 m_supportsStorageAutoscaling = value;
196 }
199 return *this;
200 }
202 private:
203 Aws::String m_storageType;
204
205 Aws::Vector<Range> m_storageSize;
206
207 Aws::Vector<Range> m_provisionedIops;
208
209 Aws::Vector<DoubleRange> m_iopsToStorageRatio;
210
211 Aws::Vector<Range> m_provisionedStorageThroughput;
212
213 Aws::Vector<DoubleRange> m_storageThroughputToIopsRatio;
214
215 bool m_supportsStorageAutoscaling{false};
216 bool m_storageTypeHasBeenSet = false;
217 bool m_storageSizeHasBeenSet = false;
218 bool m_provisionedIopsHasBeenSet = false;
219 bool m_iopsToStorageRatioHasBeenSet = false;
220 bool m_provisionedStorageThroughputHasBeenSet = false;
221 bool m_storageThroughputToIopsRatioHasBeenSet = false;
222 bool m_supportsStorageAutoscalingHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace RDS
227} // namespace Aws
AWS_RDS_API ValidStorageOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ValidStorageOptions & AddStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ValidStorageOptions & WithIopsToStorageRatio(IopsToStorageRatioT &&value)
ValidStorageOptions & WithStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT &&value)
AWS_RDS_API ValidStorageOptions()=default
ValidStorageOptions & AddStorageSize(StorageSizeT &&value)
const Aws::Vector< Range > & GetStorageSize() const
const Aws::Vector< Range > & GetProvisionedIops() const
ValidStorageOptions & WithProvisionedIops(ProvisionedIopsT &&value)
ValidStorageOptions & AddProvisionedIops(ProvisionedIopsT &&value)
const Aws::Vector< Range > & GetProvisionedStorageThroughput() const
ValidStorageOptions & WithSupportsStorageAutoscaling(bool value)
void SetIopsToStorageRatio(IopsToStorageRatioT &&value)
ValidStorageOptions & AddIopsToStorageRatio(IopsToStorageRatioT &&value)
AWS_RDS_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ValidStorageOptions & WithStorageSize(StorageSizeT &&value)
ValidStorageOptions & WithStorageType(StorageTypeT &&value)
void SetStorageSize(StorageSizeT &&value)
void SetProvisionedStorageThroughput(ProvisionedStorageThroughputT &&value)
void SetStorageType(StorageTypeT &&value)
const Aws::Vector< DoubleRange > & GetIopsToStorageRatio() const
void SetProvisionedIops(ProvisionedIopsT &&value)
const Aws::Vector< DoubleRange > & GetStorageThroughputToIopsRatio() const
ValidStorageOptions & WithProvisionedStorageThroughput(ProvisionedStorageThroughputT &&value)
const Aws::String & GetStorageType() const
void SetStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT &&value)
ValidStorageOptions & AddProvisionedStorageThroughput(ProvisionedStorageThroughputT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream