AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StorageTypeT = Aws::String>
56 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
57 template<typename StorageTypeT = Aws::String>
58 ValidStorageOptions& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
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) { m_storageSizeHasBeenSet = true; m_storageSize = std::forward<StorageSizeT>(value); }
70 template<typename StorageSizeT = Aws::Vector<Range>>
71 ValidStorageOptions& WithStorageSize(StorageSizeT&& value) { SetStorageSize(std::forward<StorageSizeT>(value)); return *this;}
72 template<typename StorageSizeT = Range>
73 ValidStorageOptions& AddStorageSize(StorageSizeT&& value) { m_storageSizeHasBeenSet = true; m_storageSize.emplace_back(std::forward<StorageSizeT>(value)); return *this; }
75
77
80 inline const Aws::Vector<Range>& GetProvisionedIops() const { return m_provisionedIops; }
81 inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
82 template<typename ProvisionedIopsT = Aws::Vector<Range>>
83 void SetProvisionedIops(ProvisionedIopsT&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::forward<ProvisionedIopsT>(value); }
84 template<typename ProvisionedIopsT = Aws::Vector<Range>>
85 ValidStorageOptions& WithProvisionedIops(ProvisionedIopsT&& value) { SetProvisionedIops(std::forward<ProvisionedIopsT>(value)); return *this;}
86 template<typename ProvisionedIopsT = Range>
87 ValidStorageOptions& AddProvisionedIops(ProvisionedIopsT&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.emplace_back(std::forward<ProvisionedIopsT>(value)); return *this; }
89
91
96 inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const { return m_iopsToStorageRatio; }
97 inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
98 template<typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
99 void SetIopsToStorageRatio(IopsToStorageRatioT&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::forward<IopsToStorageRatioT>(value); }
100 template<typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
101 ValidStorageOptions& WithIopsToStorageRatio(IopsToStorageRatioT&& value) { SetIopsToStorageRatio(std::forward<IopsToStorageRatioT>(value)); return *this;}
102 template<typename IopsToStorageRatioT = DoubleRange>
103 ValidStorageOptions& AddIopsToStorageRatio(IopsToStorageRatioT&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.emplace_back(std::forward<IopsToStorageRatioT>(value)); return *this; }
105
107
111 inline bool GetSupportsStorageAutoscaling() const { return m_supportsStorageAutoscaling; }
112 inline bool SupportsStorageAutoscalingHasBeenSet() const { return m_supportsStorageAutoscalingHasBeenSet; }
113 inline void SetSupportsStorageAutoscaling(bool value) { m_supportsStorageAutoscalingHasBeenSet = true; m_supportsStorageAutoscaling = value; }
116
118
122 inline const Aws::Vector<Range>& GetProvisionedStorageThroughput() const { return m_provisionedStorageThroughput; }
123 inline bool ProvisionedStorageThroughputHasBeenSet() const { return m_provisionedStorageThroughputHasBeenSet; }
124 template<typename ProvisionedStorageThroughputT = Aws::Vector<Range>>
125 void SetProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput = std::forward<ProvisionedStorageThroughputT>(value); }
126 template<typename ProvisionedStorageThroughputT = Aws::Vector<Range>>
127 ValidStorageOptions& WithProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) { SetProvisionedStorageThroughput(std::forward<ProvisionedStorageThroughputT>(value)); return *this;}
128 template<typename ProvisionedStorageThroughputT = Range>
129 ValidStorageOptions& AddProvisionedStorageThroughput(ProvisionedStorageThroughputT&& value) { m_provisionedStorageThroughputHasBeenSet = true; m_provisionedStorageThroughput.emplace_back(std::forward<ProvisionedStorageThroughputT>(value)); return *this; }
131
133
137 inline const Aws::Vector<DoubleRange>& GetStorageThroughputToIopsRatio() const { return m_storageThroughputToIopsRatio; }
138 inline bool StorageThroughputToIopsRatioHasBeenSet() const { return m_storageThroughputToIopsRatioHasBeenSet; }
139 template<typename StorageThroughputToIopsRatioT = Aws::Vector<DoubleRange>>
140 void SetStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio = std::forward<StorageThroughputToIopsRatioT>(value); }
141 template<typename StorageThroughputToIopsRatioT = Aws::Vector<DoubleRange>>
142 ValidStorageOptions& WithStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) { SetStorageThroughputToIopsRatio(std::forward<StorageThroughputToIopsRatioT>(value)); return *this;}
143 template<typename StorageThroughputToIopsRatioT = DoubleRange>
144 ValidStorageOptions& AddStorageThroughputToIopsRatio(StorageThroughputToIopsRatioT&& value) { m_storageThroughputToIopsRatioHasBeenSet = true; m_storageThroughputToIopsRatio.emplace_back(std::forward<StorageThroughputToIopsRatioT>(value)); return *this; }
146 private:
147
148 Aws::String m_storageType;
149 bool m_storageTypeHasBeenSet = false;
150
151 Aws::Vector<Range> m_storageSize;
152 bool m_storageSizeHasBeenSet = false;
153
154 Aws::Vector<Range> m_provisionedIops;
155 bool m_provisionedIopsHasBeenSet = false;
156
157 Aws::Vector<DoubleRange> m_iopsToStorageRatio;
158 bool m_iopsToStorageRatioHasBeenSet = false;
159
160 bool m_supportsStorageAutoscaling{false};
161 bool m_supportsStorageAutoscalingHasBeenSet = false;
162
163 Aws::Vector<Range> m_provisionedStorageThroughput;
164 bool m_provisionedStorageThroughputHasBeenSet = false;
165
166 Aws::Vector<DoubleRange> m_storageThroughputToIopsRatio;
167 bool m_storageThroughputToIopsRatioHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace RDS
172} // 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