AWS SDK for C++  1.9.104
AWS SDK for C++
ValidStorageOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <aws/rds/model/Range.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace RDS
25 {
26 namespace Model
27 {
28 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
51  inline const Aws::String& GetStorageType() const{ return m_storageType; }
52 
56  inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
57 
61  inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
62 
66  inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
67 
71  inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
72 
76  inline ValidStorageOptions& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
77 
81  inline ValidStorageOptions& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
82 
86  inline ValidStorageOptions& WithStorageType(const char* value) { SetStorageType(value); return *this;}
87 
88 
93  inline const Aws::Vector<Range>& GetStorageSize() const{ return m_storageSize; }
94 
99  inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
100 
105  inline void SetStorageSize(const Aws::Vector<Range>& value) { m_storageSizeHasBeenSet = true; m_storageSize = value; }
106 
111  inline void SetStorageSize(Aws::Vector<Range>&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::move(value); }
112 
117  inline ValidStorageOptions& WithStorageSize(const Aws::Vector<Range>& value) { SetStorageSize(value); return *this;}
118 
123  inline ValidStorageOptions& WithStorageSize(Aws::Vector<Range>&& value) { SetStorageSize(std::move(value)); return *this;}
124 
129  inline ValidStorageOptions& AddStorageSize(const Range& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(value); return *this; }
130 
135  inline ValidStorageOptions& AddStorageSize(Range&& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(std::move(value)); return *this; }
136 
137 
141  inline const Aws::Vector<Range>& GetProvisionedIops() const{ return m_provisionedIops; }
142 
146  inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
147 
151  inline void SetProvisionedIops(const Aws::Vector<Range>& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = value; }
152 
156  inline void SetProvisionedIops(Aws::Vector<Range>&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::move(value); }
157 
161  inline ValidStorageOptions& WithProvisionedIops(const Aws::Vector<Range>& value) { SetProvisionedIops(value); return *this;}
162 
166  inline ValidStorageOptions& WithProvisionedIops(Aws::Vector<Range>&& value) { SetProvisionedIops(std::move(value)); return *this;}
167 
171  inline ValidStorageOptions& AddProvisionedIops(const Range& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(value); return *this; }
172 
176  inline ValidStorageOptions& AddProvisionedIops(Range&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(std::move(value)); return *this; }
177 
178 
184  inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const{ return m_iopsToStorageRatio; }
185 
191  inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
192 
198  inline void SetIopsToStorageRatio(const Aws::Vector<DoubleRange>& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = value; }
199 
205  inline void SetIopsToStorageRatio(Aws::Vector<DoubleRange>&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::move(value); }
206 
212  inline ValidStorageOptions& WithIopsToStorageRatio(const Aws::Vector<DoubleRange>& value) { SetIopsToStorageRatio(value); return *this;}
213 
219  inline ValidStorageOptions& WithIopsToStorageRatio(Aws::Vector<DoubleRange>&& value) { SetIopsToStorageRatio(std::move(value)); return *this;}
220 
226  inline ValidStorageOptions& AddIopsToStorageRatio(const DoubleRange& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(value); return *this; }
227 
233  inline ValidStorageOptions& AddIopsToStorageRatio(DoubleRange&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(std::move(value)); return *this; }
234 
235 
240  inline bool GetSupportsStorageAutoscaling() const{ return m_supportsStorageAutoscaling; }
241 
246  inline bool SupportsStorageAutoscalingHasBeenSet() const { return m_supportsStorageAutoscalingHasBeenSet; }
247 
252  inline void SetSupportsStorageAutoscaling(bool value) { m_supportsStorageAutoscalingHasBeenSet = true; m_supportsStorageAutoscaling = value; }
253 
258  inline ValidStorageOptions& WithSupportsStorageAutoscaling(bool value) { SetSupportsStorageAutoscaling(value); return *this;}
259 
260  private:
261 
262  Aws::String m_storageType;
263  bool m_storageTypeHasBeenSet;
264 
265  Aws::Vector<Range> m_storageSize;
266  bool m_storageSizeHasBeenSet;
267 
268  Aws::Vector<Range> m_provisionedIops;
269  bool m_provisionedIopsHasBeenSet;
270 
271  Aws::Vector<DoubleRange> m_iopsToStorageRatio;
272  bool m_iopsToStorageRatioHasBeenSet;
273 
274  bool m_supportsStorageAutoscaling;
275  bool m_supportsStorageAutoscalingHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace RDS
280 } // namespace Aws
Aws::RDS::Model::ValidStorageOptions::SupportsStorageAutoscalingHasBeenSet
bool SupportsStorageAutoscalingHasBeenSet() const
Definition: ValidStorageOptions.h:246
Aws::RDS::Model::ValidStorageOptions::ProvisionedIopsHasBeenSet
bool ProvisionedIopsHasBeenSet() const
Definition: ValidStorageOptions.h:146
Aws::RDS::Model::ValidStorageOptions::SetIopsToStorageRatio
void SetIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
Definition: ValidStorageOptions.h:205
Aws::RDS::Model::ValidStorageOptions::SetStorageSize
void SetStorageSize(Aws::Vector< Range > &&value)
Definition: ValidStorageOptions.h:111
Aws::RDS::Model::ValidStorageOptions::GetStorageType
const Aws::String & GetStorageType() const
Definition: ValidStorageOptions.h:51
DoubleRange.h
Aws::RDS::Model::ValidStorageOptions::SetStorageType
void SetStorageType(const char *value)
Definition: ValidStorageOptions.h:71
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ValidStorageOptions::GetStorageSize
const Aws::Vector< Range > & GetStorageSize() const
Definition: ValidStorageOptions.h:93
Aws::RDS::Model::ValidStorageOptions::WithProvisionedIops
ValidStorageOptions & WithProvisionedIops(Aws::Vector< Range > &&value)
Definition: ValidStorageOptions.h:166
Aws::RDS::Model::ValidStorageOptions::AddIopsToStorageRatio
ValidStorageOptions & AddIopsToStorageRatio(const DoubleRange &value)
Definition: ValidStorageOptions.h:226
Aws::RDS::Model::ValidStorageOptions::GetProvisionedIops
const Aws::Vector< Range > & GetProvisionedIops() const
Definition: ValidStorageOptions.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::ValidStorageOptions::SetIopsToStorageRatio
void SetIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
Definition: ValidStorageOptions.h:198
AWSStreamFwd.h
AWSVector.h
Aws::RDS::Model::ValidStorageOptions::SetStorageType
void SetStorageType(const Aws::String &value)
Definition: ValidStorageOptions.h:61
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::ValidStorageOptions::AddStorageSize
ValidStorageOptions & AddStorageSize(Range &&value)
Definition: ValidStorageOptions.h:135
Aws::RDS::Model::ValidStorageOptions
Definition: ValidStorageOptions.h:38
Aws::RDS::Model::ValidStorageOptions::WithStorageSize
ValidStorageOptions & WithStorageSize(Aws::Vector< Range > &&value)
Definition: ValidStorageOptions.h:123
RDS_EXPORTS.h
Aws::RDS::Model::ValidStorageOptions::WithStorageType
ValidStorageOptions & WithStorageType(const char *value)
Definition: ValidStorageOptions.h:86
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::ValidStorageOptions::GetIopsToStorageRatio
const Aws::Vector< DoubleRange > & GetIopsToStorageRatio() const
Definition: ValidStorageOptions.h:184
Aws::RDS::Model::ValidStorageOptions::GetSupportsStorageAutoscaling
bool GetSupportsStorageAutoscaling() const
Definition: ValidStorageOptions.h:240
Aws::RDS::Model::ValidStorageOptions::WithIopsToStorageRatio
ValidStorageOptions & WithIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
Definition: ValidStorageOptions.h:219
Aws::RDS::Model::ValidStorageOptions::AddStorageSize
ValidStorageOptions & AddStorageSize(const Range &value)
Definition: ValidStorageOptions.h:129
Aws::RDS::Model::ValidStorageOptions::SetStorageSize
void SetStorageSize(const Aws::Vector< Range > &value)
Definition: ValidStorageOptions.h:105
Aws::RDS::Model::ValidStorageOptions::WithStorageSize
ValidStorageOptions & WithStorageSize(const Aws::Vector< Range > &value)
Definition: ValidStorageOptions.h:117
Aws::RDS::Model::ValidStorageOptions::AddProvisionedIops
ValidStorageOptions & AddProvisionedIops(Range &&value)
Definition: ValidStorageOptions.h:176
Aws::RDS::Model::ValidStorageOptions::WithStorageType
ValidStorageOptions & WithStorageType(Aws::String &&value)
Definition: ValidStorageOptions.h:81
Range.h
AWSString.h
Aws::RDS::Model::ValidStorageOptions::operator=
ValidStorageOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ValidStorageOptions::WithStorageType
ValidStorageOptions & WithStorageType(const Aws::String &value)
Definition: ValidStorageOptions.h:76
Aws::RDS::Model::ValidStorageOptions::AddProvisionedIops
ValidStorageOptions & AddProvisionedIops(const Range &value)
Definition: ValidStorageOptions.h:171
Aws::RDS::Model::ValidStorageOptions::SetProvisionedIops
void SetProvisionedIops(const Aws::Vector< Range > &value)
Definition: ValidStorageOptions.h:151
Aws::RDS::Model::ValidStorageOptions::SetStorageType
void SetStorageType(Aws::String &&value)
Definition: ValidStorageOptions.h:66
Aws::RDS::Model::ValidStorageOptions::SetSupportsStorageAutoscaling
void SetSupportsStorageAutoscaling(bool value)
Definition: ValidStorageOptions.h:252
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ValidStorageOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::ValidStorageOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DoubleRange
Definition: DoubleRange.h:30
Aws::RDS::Model::ValidStorageOptions::WithProvisionedIops
ValidStorageOptions & WithProvisionedIops(const Aws::Vector< Range > &value)
Definition: ValidStorageOptions.h:161
Aws::RDS::Model::ValidStorageOptions::WithIopsToStorageRatio
ValidStorageOptions & WithIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
Definition: ValidStorageOptions.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ValidStorageOptions::StorageTypeHasBeenSet
bool StorageTypeHasBeenSet() const
Definition: ValidStorageOptions.h:56
Aws::RDS::Model::ValidStorageOptions::AddIopsToStorageRatio
ValidStorageOptions & AddIopsToStorageRatio(DoubleRange &&value)
Definition: ValidStorageOptions.h:233
Aws::RDS::Model::ValidStorageOptions::IopsToStorageRatioHasBeenSet
bool IopsToStorageRatioHasBeenSet() const
Definition: ValidStorageOptions.h:191
Aws::RDS::Model::ValidStorageOptions::ValidStorageOptions
ValidStorageOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ValidStorageOptions::StorageSizeHasBeenSet
bool StorageSizeHasBeenSet() const
Definition: ValidStorageOptions.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::ValidStorageOptions::WithSupportsStorageAutoscaling
ValidStorageOptions & WithSupportsStorageAutoscaling(bool value)
Definition: ValidStorageOptions.h:258
Aws::RDS::Model::ValidStorageOptions::SetProvisionedIops
void SetProvisionedIops(Aws::Vector< Range > &&value)
Definition: ValidStorageOptions.h:156
Aws::RDS::Model::ValidStorageOptions::ValidStorageOptions
ValidStorageOptions()
Aws::RDS::Model::Range
Definition: Range.h:30