AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DbServer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/odb/Odb_EXPORTS.h>
11#include <aws/odb/model/ComputeModel.h>
12#include <aws/odb/model/DbServerPatchingDetails.h>
13#include <aws/odb/model/ResourceStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace odb {
25namespace Model {
26
32class DbServer {
33 public:
34 AWS_ODB_API DbServer() = default;
35 AWS_ODB_API DbServer(Aws::Utils::Json::JsonView jsonValue);
38
40
43 inline const Aws::String& GetDbServerId() const { return m_dbServerId; }
44 inline bool DbServerIdHasBeenSet() const { return m_dbServerIdHasBeenSet; }
45 template <typename DbServerIdT = Aws::String>
46 void SetDbServerId(DbServerIdT&& value) {
47 m_dbServerIdHasBeenSet = true;
48 m_dbServerId = std::forward<DbServerIdT>(value);
49 }
50 template <typename DbServerIdT = Aws::String>
51 DbServer& WithDbServerId(DbServerIdT&& value) {
52 SetDbServerId(std::forward<DbServerIdT>(value));
53 return *this;
54 }
56
58
61 inline ResourceStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(ResourceStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
78 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
79 template <typename StatusReasonT = Aws::String>
80 void SetStatusReason(StatusReasonT&& value) {
81 m_statusReasonHasBeenSet = true;
82 m_statusReason = std::forward<StatusReasonT>(value);
83 }
84 template <typename StatusReasonT = Aws::String>
85 DbServer& WithStatusReason(StatusReasonT&& value) {
86 SetStatusReason(std::forward<StatusReasonT>(value));
87 return *this;
88 }
90
92
95 inline int GetCpuCoreCount() const { return m_cpuCoreCount; }
96 inline bool CpuCoreCountHasBeenSet() const { return m_cpuCoreCountHasBeenSet; }
97 inline void SetCpuCoreCount(int value) {
98 m_cpuCoreCountHasBeenSet = true;
99 m_cpuCoreCount = value;
100 }
101 inline DbServer& WithCpuCoreCount(int value) {
102 SetCpuCoreCount(value);
103 return *this;
104 }
106
108
111 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
112 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
113 inline void SetDbNodeStorageSizeInGBs(int value) {
114 m_dbNodeStorageSizeInGBsHasBeenSet = true;
115 m_dbNodeStorageSizeInGBs = value;
116 }
119 return *this;
120 }
122
124
128 inline const DbServerPatchingDetails& GetDbServerPatchingDetails() const { return m_dbServerPatchingDetails; }
129 inline bool DbServerPatchingDetailsHasBeenSet() const { return m_dbServerPatchingDetailsHasBeenSet; }
130 template <typename DbServerPatchingDetailsT = DbServerPatchingDetails>
131 void SetDbServerPatchingDetails(DbServerPatchingDetailsT&& value) {
132 m_dbServerPatchingDetailsHasBeenSet = true;
133 m_dbServerPatchingDetails = std::forward<DbServerPatchingDetailsT>(value);
134 }
135 template <typename DbServerPatchingDetailsT = DbServerPatchingDetails>
136 DbServer& WithDbServerPatchingDetails(DbServerPatchingDetailsT&& value) {
137 SetDbServerPatchingDetails(std::forward<DbServerPatchingDetailsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDisplayName() const { return m_displayName; }
147 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
148 template <typename DisplayNameT = Aws::String>
149 void SetDisplayName(DisplayNameT&& value) {
150 m_displayNameHasBeenSet = true;
151 m_displayName = std::forward<DisplayNameT>(value);
152 }
153 template <typename DisplayNameT = Aws::String>
154 DbServer& WithDisplayName(DisplayNameT&& value) {
155 SetDisplayName(std::forward<DisplayNameT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetExadataInfrastructureId() const { return m_exadataInfrastructureId; }
165 inline bool ExadataInfrastructureIdHasBeenSet() const { return m_exadataInfrastructureIdHasBeenSet; }
166 template <typename ExadataInfrastructureIdT = Aws::String>
167 void SetExadataInfrastructureId(ExadataInfrastructureIdT&& value) {
168 m_exadataInfrastructureIdHasBeenSet = true;
169 m_exadataInfrastructureId = std::forward<ExadataInfrastructureIdT>(value);
170 }
171 template <typename ExadataInfrastructureIdT = Aws::String>
172 DbServer& WithExadataInfrastructureId(ExadataInfrastructureIdT&& value) {
173 SetExadataInfrastructureId(std::forward<ExadataInfrastructureIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetOcid() const { return m_ocid; }
183 inline bool OcidHasBeenSet() const { return m_ocidHasBeenSet; }
184 template <typename OcidT = Aws::String>
185 void SetOcid(OcidT&& value) {
186 m_ocidHasBeenSet = true;
187 m_ocid = std::forward<OcidT>(value);
188 }
189 template <typename OcidT = Aws::String>
190 DbServer& WithOcid(OcidT&& value) {
191 SetOcid(std::forward<OcidT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetOciResourceAnchorName() const { return m_ociResourceAnchorName; }
201 inline bool OciResourceAnchorNameHasBeenSet() const { return m_ociResourceAnchorNameHasBeenSet; }
202 template <typename OciResourceAnchorNameT = Aws::String>
203 void SetOciResourceAnchorName(OciResourceAnchorNameT&& value) {
204 m_ociResourceAnchorNameHasBeenSet = true;
205 m_ociResourceAnchorName = std::forward<OciResourceAnchorNameT>(value);
206 }
207 template <typename OciResourceAnchorNameT = Aws::String>
208 DbServer& WithOciResourceAnchorName(OciResourceAnchorNameT&& value) {
209 SetOciResourceAnchorName(std::forward<OciResourceAnchorNameT>(value));
210 return *this;
211 }
213
215
218 inline int GetMaxCpuCount() const { return m_maxCpuCount; }
219 inline bool MaxCpuCountHasBeenSet() const { return m_maxCpuCountHasBeenSet; }
220 inline void SetMaxCpuCount(int value) {
221 m_maxCpuCountHasBeenSet = true;
222 m_maxCpuCount = value;
223 }
224 inline DbServer& WithMaxCpuCount(int value) {
225 SetMaxCpuCount(value);
226 return *this;
227 }
229
231
234 inline int GetMaxDbNodeStorageInGBs() const { return m_maxDbNodeStorageInGBs; }
235 inline bool MaxDbNodeStorageInGBsHasBeenSet() const { return m_maxDbNodeStorageInGBsHasBeenSet; }
236 inline void SetMaxDbNodeStorageInGBs(int value) {
237 m_maxDbNodeStorageInGBsHasBeenSet = true;
238 m_maxDbNodeStorageInGBs = value;
239 }
242 return *this;
243 }
245
247
250 inline int GetMaxMemoryInGBs() const { return m_maxMemoryInGBs; }
251 inline bool MaxMemoryInGBsHasBeenSet() const { return m_maxMemoryInGBsHasBeenSet; }
252 inline void SetMaxMemoryInGBs(int value) {
253 m_maxMemoryInGBsHasBeenSet = true;
254 m_maxMemoryInGBs = value;
255 }
256 inline DbServer& WithMaxMemoryInGBs(int value) {
257 SetMaxMemoryInGBs(value);
258 return *this;
259 }
261
263
266 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
267 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
268 inline void SetMemorySizeInGBs(int value) {
269 m_memorySizeInGBsHasBeenSet = true;
270 m_memorySizeInGBs = value;
271 }
272 inline DbServer& WithMemorySizeInGBs(int value) {
273 SetMemorySizeInGBs(value);
274 return *this;
275 }
277
279
283 inline const Aws::String& GetShape() const { return m_shape; }
284 inline bool ShapeHasBeenSet() const { return m_shapeHasBeenSet; }
285 template <typename ShapeT = Aws::String>
286 void SetShape(ShapeT&& value) {
287 m_shapeHasBeenSet = true;
288 m_shape = std::forward<ShapeT>(value);
289 }
290 template <typename ShapeT = Aws::String>
291 DbServer& WithShape(ShapeT&& value) {
292 SetShape(std::forward<ShapeT>(value));
293 return *this;
294 }
296
298
301 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
302 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
303 template <typename CreatedAtT = Aws::Utils::DateTime>
304 void SetCreatedAt(CreatedAtT&& value) {
305 m_createdAtHasBeenSet = true;
306 m_createdAt = std::forward<CreatedAtT>(value);
307 }
308 template <typename CreatedAtT = Aws::Utils::DateTime>
309 DbServer& WithCreatedAt(CreatedAtT&& value) {
310 SetCreatedAt(std::forward<CreatedAtT>(value));
311 return *this;
312 }
314
316
319 inline const Aws::Vector<Aws::String>& GetVmClusterIds() const { return m_vmClusterIds; }
320 inline bool VmClusterIdsHasBeenSet() const { return m_vmClusterIdsHasBeenSet; }
321 template <typename VmClusterIdsT = Aws::Vector<Aws::String>>
322 void SetVmClusterIds(VmClusterIdsT&& value) {
323 m_vmClusterIdsHasBeenSet = true;
324 m_vmClusterIds = std::forward<VmClusterIdsT>(value);
325 }
326 template <typename VmClusterIdsT = Aws::Vector<Aws::String>>
327 DbServer& WithVmClusterIds(VmClusterIdsT&& value) {
328 SetVmClusterIds(std::forward<VmClusterIdsT>(value));
329 return *this;
330 }
331 template <typename VmClusterIdsT = Aws::String>
332 DbServer& AddVmClusterIds(VmClusterIdsT&& value) {
333 m_vmClusterIdsHasBeenSet = true;
334 m_vmClusterIds.emplace_back(std::forward<VmClusterIdsT>(value));
335 return *this;
336 }
338
340
343 inline ComputeModel GetComputeModel() const { return m_computeModel; }
344 inline bool ComputeModelHasBeenSet() const { return m_computeModelHasBeenSet; }
345 inline void SetComputeModel(ComputeModel value) {
346 m_computeModelHasBeenSet = true;
347 m_computeModel = value;
348 }
350 SetComputeModel(value);
351 return *this;
352 }
354
356
360 inline const Aws::Vector<Aws::String>& GetAutonomousVmClusterIds() const { return m_autonomousVmClusterIds; }
361 inline bool AutonomousVmClusterIdsHasBeenSet() const { return m_autonomousVmClusterIdsHasBeenSet; }
362 template <typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
363 void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
364 m_autonomousVmClusterIdsHasBeenSet = true;
365 m_autonomousVmClusterIds = std::forward<AutonomousVmClusterIdsT>(value);
366 }
367 template <typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
368 DbServer& WithAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
369 SetAutonomousVmClusterIds(std::forward<AutonomousVmClusterIdsT>(value));
370 return *this;
371 }
372 template <typename AutonomousVmClusterIdsT = Aws::String>
373 DbServer& AddAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
374 m_autonomousVmClusterIdsHasBeenSet = true;
375 m_autonomousVmClusterIds.emplace_back(std::forward<AutonomousVmClusterIdsT>(value));
376 return *this;
377 }
379
381
385 inline const Aws::Vector<Aws::String>& GetAutonomousVirtualMachineIds() const { return m_autonomousVirtualMachineIds; }
386 inline bool AutonomousVirtualMachineIdsHasBeenSet() const { return m_autonomousVirtualMachineIdsHasBeenSet; }
387 template <typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
388 void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
389 m_autonomousVirtualMachineIdsHasBeenSet = true;
390 m_autonomousVirtualMachineIds = std::forward<AutonomousVirtualMachineIdsT>(value);
391 }
392 template <typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
393 DbServer& WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
394 SetAutonomousVirtualMachineIds(std::forward<AutonomousVirtualMachineIdsT>(value));
395 return *this;
396 }
397 template <typename AutonomousVirtualMachineIdsT = Aws::String>
398 DbServer& AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
399 m_autonomousVirtualMachineIdsHasBeenSet = true;
400 m_autonomousVirtualMachineIds.emplace_back(std::forward<AutonomousVirtualMachineIdsT>(value));
401 return *this;
402 }
404 private:
405 Aws::String m_dbServerId;
406
408
409 Aws::String m_statusReason;
410
411 int m_cpuCoreCount{0};
412
413 int m_dbNodeStorageSizeInGBs{0};
414
415 DbServerPatchingDetails m_dbServerPatchingDetails;
416
417 Aws::String m_displayName;
418
419 Aws::String m_exadataInfrastructureId;
420
421 Aws::String m_ocid;
422
423 Aws::String m_ociResourceAnchorName;
424
425 int m_maxCpuCount{0};
426
427 int m_maxDbNodeStorageInGBs{0};
428
429 int m_maxMemoryInGBs{0};
430
431 int m_memorySizeInGBs{0};
432
433 Aws::String m_shape;
434
435 Aws::Utils::DateTime m_createdAt{};
436
437 Aws::Vector<Aws::String> m_vmClusterIds;
438
439 ComputeModel m_computeModel{ComputeModel::NOT_SET};
440
441 Aws::Vector<Aws::String> m_autonomousVmClusterIds;
442
443 Aws::Vector<Aws::String> m_autonomousVirtualMachineIds;
444 bool m_dbServerIdHasBeenSet = false;
445 bool m_statusHasBeenSet = false;
446 bool m_statusReasonHasBeenSet = false;
447 bool m_cpuCoreCountHasBeenSet = false;
448 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
449 bool m_dbServerPatchingDetailsHasBeenSet = false;
450 bool m_displayNameHasBeenSet = false;
451 bool m_exadataInfrastructureIdHasBeenSet = false;
452 bool m_ocidHasBeenSet = false;
453 bool m_ociResourceAnchorNameHasBeenSet = false;
454 bool m_maxCpuCountHasBeenSet = false;
455 bool m_maxDbNodeStorageInGBsHasBeenSet = false;
456 bool m_maxMemoryInGBsHasBeenSet = false;
457 bool m_memorySizeInGBsHasBeenSet = false;
458 bool m_shapeHasBeenSet = false;
459 bool m_createdAtHasBeenSet = false;
460 bool m_vmClusterIdsHasBeenSet = false;
461 bool m_computeModelHasBeenSet = false;
462 bool m_autonomousVmClusterIdsHasBeenSet = false;
463 bool m_autonomousVirtualMachineIdsHasBeenSet = false;
464};
465
466} // namespace Model
467} // namespace odb
468} // namespace Aws
const Aws::Vector< Aws::String > & GetAutonomousVmClusterIds() const
Definition DbServer.h:360
DbServer & WithShape(ShapeT &&value)
Definition DbServer.h:291
DbServer & WithDisplayName(DisplayNameT &&value)
Definition DbServer.h:154
int GetMaxMemoryInGBs() const
Definition DbServer.h:250
void SetMaxDbNodeStorageInGBs(int value)
Definition DbServer.h:236
const Aws::String & GetExadataInfrastructureId() const
Definition DbServer.h:164
void SetStatus(ResourceStatus value)
Definition DbServer.h:63
int GetMaxCpuCount() const
Definition DbServer.h:218
const DbServerPatchingDetails & GetDbServerPatchingDetails() const
Definition DbServer.h:128
DbServer & AddVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:332
const Aws::Vector< Aws::String > & GetVmClusterIds() const
Definition DbServer.h:319
bool MaxDbNodeStorageInGBsHasBeenSet() const
Definition DbServer.h:235
ComputeModel GetComputeModel() const
Definition DbServer.h:343
bool OcidHasBeenSet() const
Definition DbServer.h:183
DbServer & WithMaxDbNodeStorageInGBs(int value)
Definition DbServer.h:240
void SetShape(ShapeT &&value)
Definition DbServer.h:286
const Aws::String & GetOciResourceAnchorName() const
Definition DbServer.h:200
void SetCpuCoreCount(int value)
Definition DbServer.h:97
DbServer & WithExadataInfrastructureId(ExadataInfrastructureIdT &&value)
Definition DbServer.h:172
bool DbServerIdHasBeenSet() const
Definition DbServer.h:44
bool ExadataInfrastructureIdHasBeenSet() const
Definition DbServer.h:165
DbServer & WithCpuCoreCount(int value)
Definition DbServer.h:101
DbServer & WithMemorySizeInGBs(int value)
Definition DbServer.h:272
void SetStatusReason(StatusReasonT &&value)
Definition DbServer.h:80
DbServer & AddAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:373
DbServer & WithDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
Definition DbServer.h:136
DbServer & WithDbNodeStorageSizeInGBs(int value)
Definition DbServer.h:117
int GetMemorySizeInGBs() const
Definition DbServer.h:266
ResourceStatus GetStatus() const
Definition DbServer.h:61
DbServer & WithOciResourceAnchorName(OciResourceAnchorNameT &&value)
Definition DbServer.h:208
int GetDbNodeStorageSizeInGBs() const
Definition DbServer.h:111
void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:363
void SetDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
Definition DbServer.h:131
bool StatusHasBeenSet() const
Definition DbServer.h:62
bool MaxMemoryInGBsHasBeenSet() const
Definition DbServer.h:251
const Aws::String & GetDisplayName() const
Definition DbServer.h:146
AWS_ODB_API DbServer()=default
DbServer & AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:398
bool ComputeModelHasBeenSet() const
Definition DbServer.h:344
void SetDbNodeStorageSizeInGBs(int value)
Definition DbServer.h:113
bool MaxCpuCountHasBeenSet() const
Definition DbServer.h:219
DbServer & WithVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:327
DbServer & WithMaxCpuCount(int value)
Definition DbServer.h:224
const Aws::String & GetOcid() const
Definition DbServer.h:182
void SetMemorySizeInGBs(int value)
Definition DbServer.h:268
bool AutonomousVmClusterIdsHasBeenSet() const
Definition DbServer.h:361
bool CpuCoreCountHasBeenSet() const
Definition DbServer.h:96
DbServer & WithCreatedAt(CreatedAtT &&value)
Definition DbServer.h:309
bool DbNodeStorageSizeInGBsHasBeenSet() const
Definition DbServer.h:112
bool AutonomousVirtualMachineIdsHasBeenSet() const
Definition DbServer.h:386
void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:388
void SetOcid(OcidT &&value)
Definition DbServer.h:185
DbServer & WithOcid(OcidT &&value)
Definition DbServer.h:190
const Aws::Utils::DateTime & GetCreatedAt() const
Definition DbServer.h:301
bool DisplayNameHasBeenSet() const
Definition DbServer.h:147
void SetVmClusterIds(VmClusterIdsT &&value)
Definition DbServer.h:322
DbServer & WithComputeModel(ComputeModel value)
Definition DbServer.h:349
AWS_ODB_API DbServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
Definition DbServer.h:149
const Aws::String & GetShape() const
Definition DbServer.h:283
const Aws::Vector< Aws::String > & GetAutonomousVirtualMachineIds() const
Definition DbServer.h:385
int GetMaxDbNodeStorageInGBs() const
Definition DbServer.h:234
DbServer & WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
Definition DbServer.h:393
bool CreatedAtHasBeenSet() const
Definition DbServer.h:302
const Aws::String & GetStatusReason() const
Definition DbServer.h:77
DbServer & WithMaxMemoryInGBs(int value)
Definition DbServer.h:256
bool VmClusterIdsHasBeenSet() const
Definition DbServer.h:320
void SetComputeModel(ComputeModel value)
Definition DbServer.h:345
void SetMaxMemoryInGBs(int value)
Definition DbServer.h:252
const Aws::String & GetDbServerId() const
Definition DbServer.h:43
void SetMaxCpuCount(int value)
Definition DbServer.h:220
DbServer & WithStatus(ResourceStatus value)
Definition DbServer.h:67
bool OciResourceAnchorNameHasBeenSet() const
Definition DbServer.h:201
bool DbServerPatchingDetailsHasBeenSet() const
Definition DbServer.h:129
DbServer & WithAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
Definition DbServer.h:368
AWS_ODB_API DbServer(Aws::Utils::Json::JsonView jsonValue)
DbServer & WithStatusReason(StatusReasonT &&value)
Definition DbServer.h:85
bool ShapeHasBeenSet() const
Definition DbServer.h:284
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExadataInfrastructureId(ExadataInfrastructureIdT &&value)
Definition DbServer.h:167
int GetCpuCoreCount() const
Definition DbServer.h:95
DbServer & WithDbServerId(DbServerIdT &&value)
Definition DbServer.h:51
void SetOciResourceAnchorName(OciResourceAnchorNameT &&value)
Definition DbServer.h:203
bool StatusReasonHasBeenSet() const
Definition DbServer.h:78
void SetDbServerId(DbServerIdT &&value)
Definition DbServer.h:46
void SetCreatedAt(CreatedAtT &&value)
Definition DbServer.h:304
bool MemorySizeInGBsHasBeenSet() const
Definition DbServer.h:267
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue