AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RdsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DatabaseMigrationService {
20namespace Model {
21
29 public:
30 AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration() = default;
31 AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetEngineEdition() const { return m_engineEdition; }
40 inline bool EngineEditionHasBeenSet() const { return m_engineEditionHasBeenSet; }
41 template <typename EngineEditionT = Aws::String>
42 void SetEngineEdition(EngineEditionT&& value) {
43 m_engineEditionHasBeenSet = true;
44 m_engineEdition = std::forward<EngineEditionT>(value);
45 }
46 template <typename EngineEditionT = Aws::String>
47 RdsConfiguration& WithEngineEdition(EngineEditionT&& value) {
48 SetEngineEdition(std::forward<EngineEditionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
58 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
59 template <typename InstanceTypeT = Aws::String>
60 void SetInstanceType(InstanceTypeT&& value) {
61 m_instanceTypeHasBeenSet = true;
62 m_instanceType = std::forward<InstanceTypeT>(value);
63 }
64 template <typename InstanceTypeT = Aws::String>
65 RdsConfiguration& WithInstanceType(InstanceTypeT&& value) {
66 SetInstanceType(std::forward<InstanceTypeT>(value));
67 return *this;
68 }
70
72
76 inline double GetInstanceVcpu() const { return m_instanceVcpu; }
77 inline bool InstanceVcpuHasBeenSet() const { return m_instanceVcpuHasBeenSet; }
78 inline void SetInstanceVcpu(double value) {
79 m_instanceVcpuHasBeenSet = true;
80 m_instanceVcpu = value;
81 }
82 inline RdsConfiguration& WithInstanceVcpu(double value) {
83 SetInstanceVcpu(value);
84 return *this;
85 }
87
89
93 inline double GetInstanceMemory() const { return m_instanceMemory; }
94 inline bool InstanceMemoryHasBeenSet() const { return m_instanceMemoryHasBeenSet; }
95 inline void SetInstanceMemory(double value) {
96 m_instanceMemoryHasBeenSet = true;
97 m_instanceMemory = value;
98 }
99 inline RdsConfiguration& WithInstanceMemory(double value) {
100 SetInstanceMemory(value);
101 return *this;
102 }
104
106
112 inline const Aws::String& GetStorageType() const { return m_storageType; }
113 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
114 template <typename StorageTypeT = Aws::String>
115 void SetStorageType(StorageTypeT&& value) {
116 m_storageTypeHasBeenSet = true;
117 m_storageType = std::forward<StorageTypeT>(value);
118 }
119 template <typename StorageTypeT = Aws::String>
120 RdsConfiguration& WithStorageType(StorageTypeT&& value) {
121 SetStorageType(std::forward<StorageTypeT>(value));
122 return *this;
123 }
125
127
131 inline int GetStorageSize() const { return m_storageSize; }
132 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
133 inline void SetStorageSize(int value) {
134 m_storageSizeHasBeenSet = true;
135 m_storageSize = value;
136 }
138 SetStorageSize(value);
139 return *this;
140 }
142
144
148 inline int GetStorageIops() const { return m_storageIops; }
149 inline bool StorageIopsHasBeenSet() const { return m_storageIopsHasBeenSet; }
150 inline void SetStorageIops(int value) {
151 m_storageIopsHasBeenSet = true;
152 m_storageIops = value;
153 }
155 SetStorageIops(value);
156 return *this;
157 }
159
161
166 inline const Aws::String& GetDeploymentOption() const { return m_deploymentOption; }
167 inline bool DeploymentOptionHasBeenSet() const { return m_deploymentOptionHasBeenSet; }
168 template <typename DeploymentOptionT = Aws::String>
169 void SetDeploymentOption(DeploymentOptionT&& value) {
170 m_deploymentOptionHasBeenSet = true;
171 m_deploymentOption = std::forward<DeploymentOptionT>(value);
172 }
173 template <typename DeploymentOptionT = Aws::String>
174 RdsConfiguration& WithDeploymentOption(DeploymentOptionT&& value) {
175 SetDeploymentOption(std::forward<DeploymentOptionT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
185 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
186 template <typename EngineVersionT = Aws::String>
187 void SetEngineVersion(EngineVersionT&& value) {
188 m_engineVersionHasBeenSet = true;
189 m_engineVersion = std::forward<EngineVersionT>(value);
190 }
191 template <typename EngineVersionT = Aws::String>
192 RdsConfiguration& WithEngineVersion(EngineVersionT&& value) {
193 SetEngineVersion(std::forward<EngineVersionT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_engineEdition;
199
200 Aws::String m_instanceType;
201
202 double m_instanceVcpu{0.0};
203
204 double m_instanceMemory{0.0};
205
206 Aws::String m_storageType;
207
208 int m_storageSize{0};
209
210 int m_storageIops{0};
211
212 Aws::String m_deploymentOption;
213
214 Aws::String m_engineVersion;
215 bool m_engineEditionHasBeenSet = false;
216 bool m_instanceTypeHasBeenSet = false;
217 bool m_instanceVcpuHasBeenSet = false;
218 bool m_instanceMemoryHasBeenSet = false;
219 bool m_storageTypeHasBeenSet = false;
220 bool m_storageSizeHasBeenSet = false;
221 bool m_storageIopsHasBeenSet = false;
222 bool m_deploymentOptionHasBeenSet = false;
223 bool m_engineVersionHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace DatabaseMigrationService
228} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsConfiguration & WithEngineVersion(EngineVersionT &&value)
RdsConfiguration & WithStorageType(StorageTypeT &&value)
AWS_DATABASEMIGRATIONSERVICE_API RdsConfiguration()=default
RdsConfiguration & WithEngineEdition(EngineEditionT &&value)
RdsConfiguration & WithInstanceType(InstanceTypeT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RdsConfiguration & WithDeploymentOption(DeploymentOptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue