AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidStorageOptions.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Range.h>
12#include <aws/rds/model/DoubleRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_RDS_API ValidStorageOptions();
41 AWS_RDS_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
53 inline const Aws::String& GetStorageType() const{ return m_storageType; }
54 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
55 inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
56 inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
57 inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
58 inline ValidStorageOptions& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
59 inline ValidStorageOptions& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
60 inline ValidStorageOptions& WithStorageType(const char* value) { SetStorageType(value); return *this;}
62
64
68 inline const Aws::Vector<Range>& GetStorageSize() const{ return m_storageSize; }
69 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
70 inline void SetStorageSize(const Aws::Vector<Range>& value) { m_storageSizeHasBeenSet = true; m_storageSize = value; }
71 inline void SetStorageSize(Aws::Vector<Range>&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::move(value); }
72 inline ValidStorageOptions& WithStorageSize(const Aws::Vector<Range>& value) { SetStorageSize(value); return *this;}
73 inline ValidStorageOptions& WithStorageSize(Aws::Vector<Range>&& value) { SetStorageSize(std::move(value)); return *this;}
74 inline ValidStorageOptions& AddStorageSize(const Range& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(value); return *this; }
75 inline ValidStorageOptions& AddStorageSize(Range&& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<Range>& GetProvisionedIops() const{ return m_provisionedIops; }
83 inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
84 inline void SetProvisionedIops(const Aws::Vector<Range>& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = value; }
85 inline void SetProvisionedIops(Aws::Vector<Range>&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::move(value); }
87 inline ValidStorageOptions& WithProvisionedIops(Aws::Vector<Range>&& value) { SetProvisionedIops(std::move(value)); return *this;}
88 inline ValidStorageOptions& AddProvisionedIops(const Range& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(value); return *this; }
89 inline ValidStorageOptions& AddProvisionedIops(Range&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(std::move(value)); return *this; }
91
93
98 inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const{ return m_iopsToStorageRatio; }
99 inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
100 inline void SetIopsToStorageRatio(const Aws::Vector<DoubleRange>& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = value; }
101 inline void SetIopsToStorageRatio(Aws::Vector<DoubleRange>&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::move(value); }
104 inline ValidStorageOptions& AddIopsToStorageRatio(const DoubleRange& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(value); return *this; }
105 inline ValidStorageOptions& AddIopsToStorageRatio(DoubleRange&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(std::move(value)); return *this; }
107
109
113 inline bool GetSupportsStorageAutoscaling() const{ return m_supportsStorageAutoscaling; }
114 inline bool SupportsStorageAutoscalingHasBeenSet() const { return m_supportsStorageAutoscalingHasBeenSet; }
115 inline void SetSupportsStorageAutoscaling(bool value) { m_supportsStorageAutoscalingHasBeenSet = true; m_supportsStorageAutoscaling = value; }
118
120
124 inline const Aws::Vector<Range>& GetProvisionedStorageThroughput() const{ return m_provisionedStorageThroughput; }
125 inline bool ProvisionedStorageThroughputHasBeenSet() const { return m_provisionedStorageThroughputHasBeenSet; }
126 inline void SetProvisionedStorageThroughput(const Aws::Vector<Range>& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput = value; }
127 inline void SetProvisionedStorageThroughput(Aws::Vector<Range>&& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput = std::move(value); }
130 inline ValidStorageOptions& AddProvisionedStorageThroughput(const Range& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput.push_back(value); return *this; }
131 inline ValidStorageOptions& AddProvisionedStorageThroughput(Range&& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput.push_back(std::move(value)); return *this; }
133
135
139 inline const Aws::Vector<DoubleRange>& GetStorageThroughputToIopsRatio() const{ return m_storageThroughputToIopsRatio; }
140 inline bool StorageThroughputToIopsRatioHasBeenSet() const { return m_storageThroughputToIopsRatioHasBeenSet; }
141 inline void SetStorageThroughputToIopsRatio(const Aws::Vector<DoubleRange>& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio = value; }
142 inline void SetStorageThroughputToIopsRatio(Aws::Vector<DoubleRange>&& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio = std::move(value); }
145 inline ValidStorageOptions& AddStorageThroughputToIopsRatio(const DoubleRange& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio.push_back(value); return *this; }
146 inline ValidStorageOptions& AddStorageThroughputToIopsRatio(DoubleRange&& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio.push_back(std::move(value)); return *this; }
148 private:
149
150 Aws::String m_storageType;
151 bool m_storageTypeHasBeenSet = false;
152
153 Aws::Vector<Range> m_storageSize;
154 bool m_storageSizeHasBeenSet = false;
155
156 Aws::Vector<Range> m_provisionedIops;
157 bool m_provisionedIopsHasBeenSet = false;
158
159 Aws::Vector<DoubleRange> m_iopsToStorageRatio;
160 bool m_iopsToStorageRatioHasBeenSet = false;
161
162 bool m_supportsStorageAutoscaling;
163 bool m_supportsStorageAutoscalingHasBeenSet = false;
164
165 Aws::Vector<Range> m_provisionedStorageThroughput;
166 bool m_provisionedStorageThroughputHasBeenSet = false;
167
168 Aws::Vector<DoubleRange> m_storageThroughputToIopsRatio;
169 bool m_storageThroughputToIopsRatioHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace RDS
174} // namespace Aws
AWS_RDS_API ValidStorageOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStorageThroughputToIopsRatio(Aws::Vector< DoubleRange > &&value)
ValidStorageOptions & WithProvisionedStorageThroughput(const Aws::Vector< Range > &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetProvisionedIops(Aws::Vector< Range > &&value)
void SetIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
void SetProvisionedIops(const Aws::Vector< Range > &value)
ValidStorageOptions & WithStorageSize(Aws::Vector< Range > &&value)
void SetIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
ValidStorageOptions & AddIopsToStorageRatio(const DoubleRange &value)
ValidStorageOptions & AddProvisionedStorageThroughput(const Range &value)
ValidStorageOptions & WithStorageType(Aws::String &&value)
const Aws::Vector< Range > & GetStorageSize() const
void SetStorageSize(Aws::Vector< Range > &&value)
const Aws::Vector< Range > & GetProvisionedIops() const
ValidStorageOptions & WithProvisionedIops(Aws::Vector< Range > &&value)
const Aws::Vector< Range > & GetProvisionedStorageThroughput() const
ValidStorageOptions & WithStorageThroughputToIopsRatio(Aws::Vector< DoubleRange > &&value)
ValidStorageOptions & WithStorageThroughputToIopsRatio(const Aws::Vector< DoubleRange > &value)
ValidStorageOptions & WithSupportsStorageAutoscaling(bool value)
AWS_RDS_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ValidStorageOptions & AddProvisionedIops(Range &&value)
ValidStorageOptions & WithIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
ValidStorageOptions & AddProvisionedStorageThroughput(Range &&value)
ValidStorageOptions & WithStorageType(const Aws::String &value)
ValidStorageOptions & WithProvisionedStorageThroughput(Aws::Vector< Range > &&value)
void SetStorageThroughputToIopsRatio(const Aws::Vector< DoubleRange > &value)
void SetStorageType(Aws::String &&value)
ValidStorageOptions & AddStorageThroughputToIopsRatio(DoubleRange &&value)
const Aws::Vector< DoubleRange > & GetIopsToStorageRatio() const
ValidStorageOptions & WithStorageSize(const Aws::Vector< Range > &value)
ValidStorageOptions & AddProvisionedIops(const Range &value)
const Aws::Vector< DoubleRange > & GetStorageThroughputToIopsRatio() const
ValidStorageOptions & AddStorageThroughputToIopsRatio(const DoubleRange &value)
void SetStorageType(const Aws::String &value)
ValidStorageOptions & WithStorageType(const char *value)
ValidStorageOptions & WithIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
const Aws::String & GetStorageType() const
void SetProvisionedStorageThroughput(const Aws::Vector< Range > &value)
ValidStorageOptions & AddStorageSize(const Range &value)
void SetStorageSize(const Aws::Vector< Range > &value)
ValidStorageOptions & AddStorageSize(Range &&value)
ValidStorageOptions & AddIopsToStorageRatio(DoubleRange &&value)
ValidStorageOptions & WithProvisionedIops(const Aws::Vector< Range > &value)
void SetProvisionedStorageThroughput(Aws::Vector< Range > &&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