AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DbServer.h
1
6#pragma once
7#include <aws/odb/Odb_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/odb/model/ResourceStatus.h>
10#include <aws/odb/model/DbServerPatchingDetails.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/odb/model/ComputeModel.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace odb
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ODB_API DbServer() = default;
40 AWS_ODB_API DbServer(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetDbServerId() const { return m_dbServerId; }
50 inline bool DbServerIdHasBeenSet() const { return m_dbServerIdHasBeenSet; }
51 template<typename DbServerIdT = Aws::String>
52 void SetDbServerId(DbServerIdT&& value) { m_dbServerIdHasBeenSet = true; m_dbServerId = std::forward<DbServerIdT>(value); }
53 template<typename DbServerIdT = Aws::String>
54 DbServer& WithDbServerId(DbServerIdT&& value) { SetDbServerId(std::forward<DbServerIdT>(value)); return *this;}
56
58
61 inline ResourceStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
64 inline DbServer& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
66
68
71 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
72 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
73 template<typename StatusReasonT = Aws::String>
74 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
75 template<typename StatusReasonT = Aws::String>
76 DbServer& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
78
80
83 inline int GetCpuCoreCount() const { return m_cpuCoreCount; }
84 inline bool CpuCoreCountHasBeenSet() const { return m_cpuCoreCountHasBeenSet; }
85 inline void SetCpuCoreCount(int value) { m_cpuCoreCountHasBeenSet = true; m_cpuCoreCount = value; }
86 inline DbServer& WithCpuCoreCount(int value) { SetCpuCoreCount(value); return *this;}
88
90
93 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
94 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
95 inline void SetDbNodeStorageSizeInGBs(int value) { m_dbNodeStorageSizeInGBsHasBeenSet = true; m_dbNodeStorageSizeInGBs = value; }
96 inline DbServer& WithDbNodeStorageSizeInGBs(int value) { SetDbNodeStorageSizeInGBs(value); return *this;}
98
100
104 inline const DbServerPatchingDetails& GetDbServerPatchingDetails() const { return m_dbServerPatchingDetails; }
105 inline bool DbServerPatchingDetailsHasBeenSet() const { return m_dbServerPatchingDetailsHasBeenSet; }
106 template<typename DbServerPatchingDetailsT = DbServerPatchingDetails>
107 void SetDbServerPatchingDetails(DbServerPatchingDetailsT&& value) { m_dbServerPatchingDetailsHasBeenSet = true; m_dbServerPatchingDetails = std::forward<DbServerPatchingDetailsT>(value); }
108 template<typename DbServerPatchingDetailsT = DbServerPatchingDetails>
109 DbServer& WithDbServerPatchingDetails(DbServerPatchingDetailsT&& value) { SetDbServerPatchingDetails(std::forward<DbServerPatchingDetailsT>(value)); return *this;}
111
113
116 inline const Aws::String& GetDisplayName() const { return m_displayName; }
117 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
118 template<typename DisplayNameT = Aws::String>
119 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
120 template<typename DisplayNameT = Aws::String>
121 DbServer& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
123
125
128 inline const Aws::String& GetExadataInfrastructureId() const { return m_exadataInfrastructureId; }
129 inline bool ExadataInfrastructureIdHasBeenSet() const { return m_exadataInfrastructureIdHasBeenSet; }
130 template<typename ExadataInfrastructureIdT = Aws::String>
131 void SetExadataInfrastructureId(ExadataInfrastructureIdT&& value) { m_exadataInfrastructureIdHasBeenSet = true; m_exadataInfrastructureId = std::forward<ExadataInfrastructureIdT>(value); }
132 template<typename ExadataInfrastructureIdT = Aws::String>
133 DbServer& WithExadataInfrastructureId(ExadataInfrastructureIdT&& value) { SetExadataInfrastructureId(std::forward<ExadataInfrastructureIdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetOcid() const { return m_ocid; }
141 inline bool OcidHasBeenSet() const { return m_ocidHasBeenSet; }
142 template<typename OcidT = Aws::String>
143 void SetOcid(OcidT&& value) { m_ocidHasBeenSet = true; m_ocid = std::forward<OcidT>(value); }
144 template<typename OcidT = Aws::String>
145 DbServer& WithOcid(OcidT&& value) { SetOcid(std::forward<OcidT>(value)); return *this;}
147
149
152 inline const Aws::String& GetOciResourceAnchorName() const { return m_ociResourceAnchorName; }
153 inline bool OciResourceAnchorNameHasBeenSet() const { return m_ociResourceAnchorNameHasBeenSet; }
154 template<typename OciResourceAnchorNameT = Aws::String>
155 void SetOciResourceAnchorName(OciResourceAnchorNameT&& value) { m_ociResourceAnchorNameHasBeenSet = true; m_ociResourceAnchorName = std::forward<OciResourceAnchorNameT>(value); }
156 template<typename OciResourceAnchorNameT = Aws::String>
157 DbServer& WithOciResourceAnchorName(OciResourceAnchorNameT&& value) { SetOciResourceAnchorName(std::forward<OciResourceAnchorNameT>(value)); return *this;}
159
161
164 inline int GetMaxCpuCount() const { return m_maxCpuCount; }
165 inline bool MaxCpuCountHasBeenSet() const { return m_maxCpuCountHasBeenSet; }
166 inline void SetMaxCpuCount(int value) { m_maxCpuCountHasBeenSet = true; m_maxCpuCount = value; }
167 inline DbServer& WithMaxCpuCount(int value) { SetMaxCpuCount(value); return *this;}
169
171
174 inline int GetMaxDbNodeStorageInGBs() const { return m_maxDbNodeStorageInGBs; }
175 inline bool MaxDbNodeStorageInGBsHasBeenSet() const { return m_maxDbNodeStorageInGBsHasBeenSet; }
176 inline void SetMaxDbNodeStorageInGBs(int value) { m_maxDbNodeStorageInGBsHasBeenSet = true; m_maxDbNodeStorageInGBs = value; }
177 inline DbServer& WithMaxDbNodeStorageInGBs(int value) { SetMaxDbNodeStorageInGBs(value); return *this;}
179
181
184 inline int GetMaxMemoryInGBs() const { return m_maxMemoryInGBs; }
185 inline bool MaxMemoryInGBsHasBeenSet() const { return m_maxMemoryInGBsHasBeenSet; }
186 inline void SetMaxMemoryInGBs(int value) { m_maxMemoryInGBsHasBeenSet = true; m_maxMemoryInGBs = value; }
187 inline DbServer& WithMaxMemoryInGBs(int value) { SetMaxMemoryInGBs(value); return *this;}
189
191
194 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
195 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
196 inline void SetMemorySizeInGBs(int value) { m_memorySizeInGBsHasBeenSet = true; m_memorySizeInGBs = value; }
197 inline DbServer& WithMemorySizeInGBs(int value) { SetMemorySizeInGBs(value); return *this;}
199
201
205 inline const Aws::String& GetShape() const { return m_shape; }
206 inline bool ShapeHasBeenSet() const { return m_shapeHasBeenSet; }
207 template<typename ShapeT = Aws::String>
208 void SetShape(ShapeT&& value) { m_shapeHasBeenSet = true; m_shape = std::forward<ShapeT>(value); }
209 template<typename ShapeT = Aws::String>
210 DbServer& WithShape(ShapeT&& value) { SetShape(std::forward<ShapeT>(value)); return *this;}
212
214
217 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
218 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
219 template<typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
221 template<typename CreatedAtT = Aws::Utils::DateTime>
222 DbServer& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
224
226
229 inline const Aws::Vector<Aws::String>& GetVmClusterIds() const { return m_vmClusterIds; }
230 inline bool VmClusterIdsHasBeenSet() const { return m_vmClusterIdsHasBeenSet; }
231 template<typename VmClusterIdsT = Aws::Vector<Aws::String>>
232 void SetVmClusterIds(VmClusterIdsT&& value) { m_vmClusterIdsHasBeenSet = true; m_vmClusterIds = std::forward<VmClusterIdsT>(value); }
233 template<typename VmClusterIdsT = Aws::Vector<Aws::String>>
234 DbServer& WithVmClusterIds(VmClusterIdsT&& value) { SetVmClusterIds(std::forward<VmClusterIdsT>(value)); return *this;}
235 template<typename VmClusterIdsT = Aws::String>
236 DbServer& AddVmClusterIds(VmClusterIdsT&& value) { m_vmClusterIdsHasBeenSet = true; m_vmClusterIds.emplace_back(std::forward<VmClusterIdsT>(value)); return *this; }
238
240
243 inline ComputeModel GetComputeModel() const { return m_computeModel; }
244 inline bool ComputeModelHasBeenSet() const { return m_computeModelHasBeenSet; }
245 inline void SetComputeModel(ComputeModel value) { m_computeModelHasBeenSet = true; m_computeModel = value; }
246 inline DbServer& WithComputeModel(ComputeModel value) { SetComputeModel(value); return *this;}
248
250
254 inline const Aws::Vector<Aws::String>& GetAutonomousVmClusterIds() const { return m_autonomousVmClusterIds; }
255 inline bool AutonomousVmClusterIdsHasBeenSet() const { return m_autonomousVmClusterIdsHasBeenSet; }
256 template<typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
257 void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { m_autonomousVmClusterIdsHasBeenSet = true; m_autonomousVmClusterIds = std::forward<AutonomousVmClusterIdsT>(value); }
258 template<typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
259 DbServer& WithAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { SetAutonomousVmClusterIds(std::forward<AutonomousVmClusterIdsT>(value)); return *this;}
260 template<typename AutonomousVmClusterIdsT = Aws::String>
261 DbServer& AddAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { m_autonomousVmClusterIdsHasBeenSet = true; m_autonomousVmClusterIds.emplace_back(std::forward<AutonomousVmClusterIdsT>(value)); return *this; }
263
265
269 inline const Aws::Vector<Aws::String>& GetAutonomousVirtualMachineIds() const { return m_autonomousVirtualMachineIds; }
270 inline bool AutonomousVirtualMachineIdsHasBeenSet() const { return m_autonomousVirtualMachineIdsHasBeenSet; }
271 template<typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
272 void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { m_autonomousVirtualMachineIdsHasBeenSet = true; m_autonomousVirtualMachineIds = std::forward<AutonomousVirtualMachineIdsT>(value); }
273 template<typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
274 DbServer& WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { SetAutonomousVirtualMachineIds(std::forward<AutonomousVirtualMachineIdsT>(value)); return *this;}
275 template<typename AutonomousVirtualMachineIdsT = Aws::String>
276 DbServer& AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { m_autonomousVirtualMachineIdsHasBeenSet = true; m_autonomousVirtualMachineIds.emplace_back(std::forward<AutonomousVirtualMachineIdsT>(value)); return *this; }
278 private:
279
280 Aws::String m_dbServerId;
281 bool m_dbServerIdHasBeenSet = false;
282
284 bool m_statusHasBeenSet = false;
285
286 Aws::String m_statusReason;
287 bool m_statusReasonHasBeenSet = false;
288
289 int m_cpuCoreCount{0};
290 bool m_cpuCoreCountHasBeenSet = false;
291
292 int m_dbNodeStorageSizeInGBs{0};
293 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
294
295 DbServerPatchingDetails m_dbServerPatchingDetails;
296 bool m_dbServerPatchingDetailsHasBeenSet = false;
297
298 Aws::String m_displayName;
299 bool m_displayNameHasBeenSet = false;
300
301 Aws::String m_exadataInfrastructureId;
302 bool m_exadataInfrastructureIdHasBeenSet = false;
303
304 Aws::String m_ocid;
305 bool m_ocidHasBeenSet = false;
306
307 Aws::String m_ociResourceAnchorName;
308 bool m_ociResourceAnchorNameHasBeenSet = false;
309
310 int m_maxCpuCount{0};
311 bool m_maxCpuCountHasBeenSet = false;
312
313 int m_maxDbNodeStorageInGBs{0};
314 bool m_maxDbNodeStorageInGBsHasBeenSet = false;
315
316 int m_maxMemoryInGBs{0};
317 bool m_maxMemoryInGBsHasBeenSet = false;
318
319 int m_memorySizeInGBs{0};
320 bool m_memorySizeInGBsHasBeenSet = false;
321
322 Aws::String m_shape;
323 bool m_shapeHasBeenSet = false;
324
325 Aws::Utils::DateTime m_createdAt{};
326 bool m_createdAtHasBeenSet = false;
327
328 Aws::Vector<Aws::String> m_vmClusterIds;
329 bool m_vmClusterIdsHasBeenSet = false;
330
331 ComputeModel m_computeModel{ComputeModel::NOT_SET};
332 bool m_computeModelHasBeenSet = false;
333
334 Aws::Vector<Aws::String> m_autonomousVmClusterIds;
335 bool m_autonomousVmClusterIdsHasBeenSet = false;
336
337 Aws::Vector<Aws::String> m_autonomousVirtualMachineIds;
338 bool m_autonomousVirtualMachineIdsHasBeenSet = false;
339 };
340
341} // namespace Model
342} // namespace odb
343} // namespace Aws
const Aws::Vector< Aws::String > & GetAutonomousVmClusterIds() const
Definition DbServer.h:254
DbServer & WithShape(ShapeT &&value)
Definition DbServer.h:210
DbServer & WithDisplayName(DisplayNameT &&value)
Definition DbServer.h:121
int GetMaxMemoryInGBs() const
Definition DbServer.h:184
void SetMaxDbNodeStorageInGBs(int value)
Definition DbServer.h:176
const Aws::String & GetExadataInfrastructureId() const
Definition DbServer.h:128
void SetStatus(ResourceStatus value)
Definition DbServer.h:63
int GetMaxCpuCount() const
Definition DbServer.h:164
const DbServerPatchingDetails & GetDbServerPatchingDetails() const
Definition DbServer.h:104
DbServer & AddVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:236
const Aws::Vector< Aws::String > & GetVmClusterIds() const
Definition DbServer.h:229
bool MaxDbNodeStorageInGBsHasBeenSet() const
Definition DbServer.h:175
ComputeModel GetComputeModel() const
Definition DbServer.h:243
bool OcidHasBeenSet() const
Definition DbServer.h:141
DbServer & WithMaxDbNodeStorageInGBs(int value)
Definition DbServer.h:177
void SetShape(ShapeT &&value)
Definition DbServer.h:208
const Aws::String & GetOciResourceAnchorName() const
Definition DbServer.h:152
void SetCpuCoreCount(int value)
Definition DbServer.h:85
DbServer & WithExadataInfrastructureId(ExadataInfrastructureIdT &&value)
Definition DbServer.h:133
bool DbServerIdHasBeenSet() const
Definition DbServer.h:50
bool ExadataInfrastructureIdHasBeenSet() const
Definition DbServer.h:129
DbServer & WithCpuCoreCount(int value)
Definition DbServer.h:86
DbServer & WithMemorySizeInGBs(int value)
Definition DbServer.h:197
void SetStatusReason(StatusReasonT &&value)
Definition DbServer.h:74
DbServer & AddAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:261
DbServer & WithDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
Definition DbServer.h:109
DbServer & WithDbNodeStorageSizeInGBs(int value)
Definition DbServer.h:96
int GetMemorySizeInGBs() const
Definition DbServer.h:194
ResourceStatus GetStatus() const
Definition DbServer.h:61
DbServer & WithOciResourceAnchorName(OciResourceAnchorNameT &&value)
Definition DbServer.h:157
int GetDbNodeStorageSizeInGBs() const
Definition DbServer.h:93
void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:257
void SetDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
Definition DbServer.h:107
bool StatusHasBeenSet() const
Definition DbServer.h:62
bool MaxMemoryInGBsHasBeenSet() const
Definition DbServer.h:185
const Aws::String & GetDisplayName() const
Definition DbServer.h:116
AWS_ODB_API DbServer()=default
DbServer & AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:276
bool ComputeModelHasBeenSet() const
Definition DbServer.h:244
void SetDbNodeStorageSizeInGBs(int value)
Definition DbServer.h:95
bool MaxCpuCountHasBeenSet() const
Definition DbServer.h:165
DbServer & WithVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:234
DbServer & WithMaxCpuCount(int value)
Definition DbServer.h:167
const Aws::String & GetOcid() const
Definition DbServer.h:140
void SetMemorySizeInGBs(int value)
Definition DbServer.h:196
bool AutonomousVmClusterIdsHasBeenSet() const
Definition DbServer.h:255
bool CpuCoreCountHasBeenSet() const
Definition DbServer.h:84
DbServer & WithCreatedAt(CreatedAtT &&value)
Definition DbServer.h:222
bool DbNodeStorageSizeInGBsHasBeenSet() const
Definition DbServer.h:94
bool AutonomousVirtualMachineIdsHasBeenSet() const
Definition DbServer.h:270
void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:272
void SetOcid(OcidT &&value)
Definition DbServer.h:143
DbServer & WithOcid(OcidT &&value)
Definition DbServer.h:145
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DbServer.h:217
bool DisplayNameHasBeenSet() const
Definition DbServer.h:117
void SetVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:232
DbServer & WithComputeModel(ComputeModel value)
Definition DbServer.h:246
AWS_ODB_API DbServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
Definition DbServer.h:119
const Aws::String & GetShape() const
Definition DbServer.h:205
const Aws::Vector< Aws::String > & GetAutonomousVirtualMachineIds() const
Definition DbServer.h:269
int GetMaxDbNodeStorageInGBs() const
Definition DbServer.h:174
DbServer & WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:274
bool CreatedAtHasBeenSet() const
Definition DbServer.h:218
const Aws::String & GetStatusReason() const
Definition DbServer.h:71
DbServer & WithMaxMemoryInGBs(int value)
Definition DbServer.h:187
bool VmClusterIdsHasBeenSet() const
Definition DbServer.h:230
void SetComputeModel(ComputeModel value)
Definition DbServer.h:245
void SetMaxMemoryInGBs(int value)
Definition DbServer.h:186
const Aws::String & GetDbServerId() const
Definition DbServer.h:49
void SetMaxCpuCount(int value)
Definition DbServer.h:166
DbServer & WithStatus(ResourceStatus value)
Definition DbServer.h:64
bool OciResourceAnchorNameHasBeenSet() const
Definition DbServer.h:153
bool DbServerPatchingDetailsHasBeenSet() const
Definition DbServer.h:105
DbServer & WithAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:259
AWS_ODB_API DbServer(Aws::Utils::Json::JsonView jsonValue)
DbServer & WithStatusReason(StatusReasonT &&value)
Definition DbServer.h:76
bool ShapeHasBeenSet() const
Definition DbServer.h:206
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExadataInfrastructureId(ExadataInfrastructureIdT &&value)
Definition DbServer.h:131
int GetCpuCoreCount() const
Definition DbServer.h:83
DbServer & WithDbServerId(DbServerIdT &&value)
Definition DbServer.h:54
void SetOciResourceAnchorName(OciResourceAnchorNameT &&value)
Definition DbServer.h:155
bool StatusReasonHasBeenSet() const
Definition DbServer.h:72
void SetDbServerId(DbServerIdT &&value)
Definition DbServer.h:52
void SetCreatedAt(CreatedAtT &&value)
Definition DbServer.h:220
bool MemorySizeInGBsHasBeenSet() const
Definition DbServer.h:195
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue