AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DbServerSummary.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
33 public:
34 AWS_ODB_API DbServerSummary() = default;
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 DbServerSummary& 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 DbServerSummary& 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 }
102 SetCpuCoreCount(value);
103 return *this;
104 }
106
108
112 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
113 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
114 inline void SetDbNodeStorageSizeInGBs(int value) {
115 m_dbNodeStorageSizeInGBsHasBeenSet = true;
116 m_dbNodeStorageSizeInGBs = value;
117 }
120 return *this;
121 }
123
125
126 inline const DbServerPatchingDetails& GetDbServerPatchingDetails() const { return m_dbServerPatchingDetails; }
127 inline bool DbServerPatchingDetailsHasBeenSet() const { return m_dbServerPatchingDetailsHasBeenSet; }
128 template <typename DbServerPatchingDetailsT = DbServerPatchingDetails>
129 void SetDbServerPatchingDetails(DbServerPatchingDetailsT&& value) {
130 m_dbServerPatchingDetailsHasBeenSet = true;
131 m_dbServerPatchingDetails = std::forward<DbServerPatchingDetailsT>(value);
132 }
133 template <typename DbServerPatchingDetailsT = DbServerPatchingDetails>
134 DbServerSummary& WithDbServerPatchingDetails(DbServerPatchingDetailsT&& value) {
135 SetDbServerPatchingDetails(std::forward<DbServerPatchingDetailsT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetDisplayName() const { return m_displayName; }
146 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
147 template <typename DisplayNameT = Aws::String>
148 void SetDisplayName(DisplayNameT&& value) {
149 m_displayNameHasBeenSet = true;
150 m_displayName = std::forward<DisplayNameT>(value);
151 }
152 template <typename DisplayNameT = Aws::String>
153 DbServerSummary& WithDisplayName(DisplayNameT&& value) {
154 SetDisplayName(std::forward<DisplayNameT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetExadataInfrastructureId() const { return m_exadataInfrastructureId; }
164 inline bool ExadataInfrastructureIdHasBeenSet() const { return m_exadataInfrastructureIdHasBeenSet; }
165 template <typename ExadataInfrastructureIdT = Aws::String>
166 void SetExadataInfrastructureId(ExadataInfrastructureIdT&& value) {
167 m_exadataInfrastructureIdHasBeenSet = true;
168 m_exadataInfrastructureId = std::forward<ExadataInfrastructureIdT>(value);
169 }
170 template <typename ExadataInfrastructureIdT = Aws::String>
171 DbServerSummary& WithExadataInfrastructureId(ExadataInfrastructureIdT&& value) {
172 SetExadataInfrastructureId(std::forward<ExadataInfrastructureIdT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetOcid() const { return m_ocid; }
182 inline bool OcidHasBeenSet() const { return m_ocidHasBeenSet; }
183 template <typename OcidT = Aws::String>
184 void SetOcid(OcidT&& value) {
185 m_ocidHasBeenSet = true;
186 m_ocid = std::forward<OcidT>(value);
187 }
188 template <typename OcidT = Aws::String>
189 DbServerSummary& WithOcid(OcidT&& value) {
190 SetOcid(std::forward<OcidT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetOciResourceAnchorName() const { return m_ociResourceAnchorName; }
200 inline bool OciResourceAnchorNameHasBeenSet() const { return m_ociResourceAnchorNameHasBeenSet; }
201 template <typename OciResourceAnchorNameT = Aws::String>
202 void SetOciResourceAnchorName(OciResourceAnchorNameT&& value) {
203 m_ociResourceAnchorNameHasBeenSet = true;
204 m_ociResourceAnchorName = std::forward<OciResourceAnchorNameT>(value);
205 }
206 template <typename OciResourceAnchorNameT = Aws::String>
207 DbServerSummary& WithOciResourceAnchorName(OciResourceAnchorNameT&& value) {
208 SetOciResourceAnchorName(std::forward<OciResourceAnchorNameT>(value));
209 return *this;
210 }
212
214
217 inline int GetMaxCpuCount() const { return m_maxCpuCount; }
218 inline bool MaxCpuCountHasBeenSet() const { return m_maxCpuCountHasBeenSet; }
219 inline void SetMaxCpuCount(int value) {
220 m_maxCpuCountHasBeenSet = true;
221 m_maxCpuCount = value;
222 }
223 inline DbServerSummary& WithMaxCpuCount(int value) {
224 SetMaxCpuCount(value);
225 return *this;
226 }
228
230
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
251 inline int GetMaxMemoryInGBs() const { return m_maxMemoryInGBs; }
252 inline bool MaxMemoryInGBsHasBeenSet() const { return m_maxMemoryInGBsHasBeenSet; }
253 inline void SetMaxMemoryInGBs(int value) {
254 m_maxMemoryInGBsHasBeenSet = true;
255 m_maxMemoryInGBs = value;
256 }
258 SetMaxMemoryInGBs(value);
259 return *this;
260 }
262
264
268 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
269 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
270 inline void SetMemorySizeInGBs(int value) {
271 m_memorySizeInGBsHasBeenSet = true;
272 m_memorySizeInGBs = value;
273 }
275 SetMemorySizeInGBs(value);
276 return *this;
277 }
279
281
286 inline const Aws::String& GetShape() const { return m_shape; }
287 inline bool ShapeHasBeenSet() const { return m_shapeHasBeenSet; }
288 template <typename ShapeT = Aws::String>
289 void SetShape(ShapeT&& value) {
290 m_shapeHasBeenSet = true;
291 m_shape = std::forward<ShapeT>(value);
292 }
293 template <typename ShapeT = Aws::String>
294 DbServerSummary& WithShape(ShapeT&& value) {
295 SetShape(std::forward<ShapeT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
305 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
306 template <typename CreatedAtT = Aws::Utils::DateTime>
307 void SetCreatedAt(CreatedAtT&& value) {
308 m_createdAtHasBeenSet = true;
309 m_createdAt = std::forward<CreatedAtT>(value);
310 }
311 template <typename CreatedAtT = Aws::Utils::DateTime>
312 DbServerSummary& WithCreatedAt(CreatedAtT&& value) {
313 SetCreatedAt(std::forward<CreatedAtT>(value));
314 return *this;
315 }
317
319
322 inline const Aws::Vector<Aws::String>& GetVmClusterIds() const { return m_vmClusterIds; }
323 inline bool VmClusterIdsHasBeenSet() const { return m_vmClusterIdsHasBeenSet; }
324 template <typename VmClusterIdsT = Aws::Vector<Aws::String>>
325 void SetVmClusterIds(VmClusterIdsT&& value) {
326 m_vmClusterIdsHasBeenSet = true;
327 m_vmClusterIds = std::forward<VmClusterIdsT>(value);
328 }
329 template <typename VmClusterIdsT = Aws::Vector<Aws::String>>
330 DbServerSummary& WithVmClusterIds(VmClusterIdsT&& value) {
331 SetVmClusterIds(std::forward<VmClusterIdsT>(value));
332 return *this;
333 }
334 template <typename VmClusterIdsT = Aws::String>
335 DbServerSummary& AddVmClusterIds(VmClusterIdsT&& value) {
336 m_vmClusterIdsHasBeenSet = true;
337 m_vmClusterIds.emplace_back(std::forward<VmClusterIdsT>(value));
338 return *this;
339 }
341
343
350 inline ComputeModel GetComputeModel() const { return m_computeModel; }
351 inline bool ComputeModelHasBeenSet() const { return m_computeModelHasBeenSet; }
352 inline void SetComputeModel(ComputeModel value) {
353 m_computeModelHasBeenSet = true;
354 m_computeModel = value;
355 }
357 SetComputeModel(value);
358 return *this;
359 }
361
363
366 inline const Aws::Vector<Aws::String>& GetAutonomousVmClusterIds() const { return m_autonomousVmClusterIds; }
367 inline bool AutonomousVmClusterIdsHasBeenSet() const { return m_autonomousVmClusterIdsHasBeenSet; }
368 template <typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
369 void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
370 m_autonomousVmClusterIdsHasBeenSet = true;
371 m_autonomousVmClusterIds = std::forward<AutonomousVmClusterIdsT>(value);
372 }
373 template <typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
374 DbServerSummary& WithAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
375 SetAutonomousVmClusterIds(std::forward<AutonomousVmClusterIdsT>(value));
376 return *this;
377 }
378 template <typename AutonomousVmClusterIdsT = Aws::String>
379 DbServerSummary& AddAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) {
380 m_autonomousVmClusterIdsHasBeenSet = true;
381 m_autonomousVmClusterIds.emplace_back(std::forward<AutonomousVmClusterIdsT>(value));
382 return *this;
383 }
385
387
390 inline const Aws::Vector<Aws::String>& GetAutonomousVirtualMachineIds() const { return m_autonomousVirtualMachineIds; }
391 inline bool AutonomousVirtualMachineIdsHasBeenSet() const { return m_autonomousVirtualMachineIdsHasBeenSet; }
392 template <typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
393 void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
394 m_autonomousVirtualMachineIdsHasBeenSet = true;
395 m_autonomousVirtualMachineIds = std::forward<AutonomousVirtualMachineIdsT>(value);
396 }
397 template <typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
398 DbServerSummary& WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
399 SetAutonomousVirtualMachineIds(std::forward<AutonomousVirtualMachineIdsT>(value));
400 return *this;
401 }
402 template <typename AutonomousVirtualMachineIdsT = Aws::String>
403 DbServerSummary& AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) {
404 m_autonomousVirtualMachineIdsHasBeenSet = true;
405 m_autonomousVirtualMachineIds.emplace_back(std::forward<AutonomousVirtualMachineIdsT>(value));
406 return *this;
407 }
409 private:
410 Aws::String m_dbServerId;
411
413
414 Aws::String m_statusReason;
415
416 int m_cpuCoreCount{0};
417
418 int m_dbNodeStorageSizeInGBs{0};
419
420 DbServerPatchingDetails m_dbServerPatchingDetails;
421
422 Aws::String m_displayName;
423
424 Aws::String m_exadataInfrastructureId;
425
426 Aws::String m_ocid;
427
428 Aws::String m_ociResourceAnchorName;
429
430 int m_maxCpuCount{0};
431
432 int m_maxDbNodeStorageInGBs{0};
433
434 int m_maxMemoryInGBs{0};
435
436 int m_memorySizeInGBs{0};
437
438 Aws::String m_shape;
439
440 Aws::Utils::DateTime m_createdAt{};
441
442 Aws::Vector<Aws::String> m_vmClusterIds;
443
444 ComputeModel m_computeModel{ComputeModel::NOT_SET};
445
446 Aws::Vector<Aws::String> m_autonomousVmClusterIds;
447
448 Aws::Vector<Aws::String> m_autonomousVirtualMachineIds;
449 bool m_dbServerIdHasBeenSet = false;
450 bool m_statusHasBeenSet = false;
451 bool m_statusReasonHasBeenSet = false;
452 bool m_cpuCoreCountHasBeenSet = false;
453 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
454 bool m_dbServerPatchingDetailsHasBeenSet = false;
455 bool m_displayNameHasBeenSet = false;
456 bool m_exadataInfrastructureIdHasBeenSet = false;
457 bool m_ocidHasBeenSet = false;
458 bool m_ociResourceAnchorNameHasBeenSet = false;
459 bool m_maxCpuCountHasBeenSet = false;
460 bool m_maxDbNodeStorageInGBsHasBeenSet = false;
461 bool m_maxMemoryInGBsHasBeenSet = false;
462 bool m_memorySizeInGBsHasBeenSet = false;
463 bool m_shapeHasBeenSet = false;
464 bool m_createdAtHasBeenSet = false;
465 bool m_vmClusterIdsHasBeenSet = false;
466 bool m_computeModelHasBeenSet = false;
467 bool m_autonomousVmClusterIdsHasBeenSet = false;
468 bool m_autonomousVirtualMachineIdsHasBeenSet = false;
469};
470
471} // namespace Model
472} // namespace odb
473} // namespace Aws
DbServerSummary & AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
AWS_ODB_API DbServerSummary()=default
const Aws::Vector< Aws::String > & GetVmClusterIds() const
DbServerSummary & WithVmClusterIds(VmClusterIdsT &&value)
ComputeModel GetComputeModel() const
AWS_ODB_API DbServerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDisplayName() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetStatusReason() const
const Aws::Vector< Aws::String > & GetAutonomousVmClusterIds() const
DbServerSummary & WithStatusReason(StatusReasonT &&value)
void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
DbServerSummary & WithOcid(OcidT &&value)
DbServerSummary & WithDbNodeStorageSizeInGBs(int value)
void SetDisplayName(DisplayNameT &&value)
DbServerSummary & WithAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
const Aws::String & GetShape() const
DbServerSummary & WithMaxDbNodeStorageInGBs(int value)
DbServerSummary & WithCpuCoreCount(int value)
ResourceStatus GetStatus() const
void SetVmClusterIds(VmClusterIdsT &&value)
void SetStatusReason(StatusReasonT &&value)
DbServerSummary & WithExadataInfrastructureId(ExadataInfrastructureIdT &&value)
DbServerSummary & WithShape(ShapeT &&value)
void SetComputeModel(ComputeModel value)
void SetStatus(ResourceStatus value)
void SetOciResourceAnchorName(OciResourceAnchorNameT &&value)
const Aws::String & GetOcid() const
void SetDbServerId(DbServerIdT &&value)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
DbServerSummary & WithDbServerId(DbServerIdT &&value)
DbServerSummary & AddAutonomousVmClusterIds(AutonomousVmClusterIdsT &&value)
DbServerSummary & WithStatus(ResourceStatus value)
void SetExadataInfrastructureId(ExadataInfrastructureIdT &&value)
AWS_ODB_API DbServerSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDbServerId() const
DbServerSummary & WithOciResourceAnchorName(OciResourceAnchorNameT &&value)
const Aws::String & GetExadataInfrastructureId() const
DbServerSummary & WithDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
DbServerSummary & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
DbServerSummary & WithComputeModel(ComputeModel value)
DbServerSummary & WithDisplayName(DisplayNameT &&value)
DbServerSummary & WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
const Aws::Vector< Aws::String > & GetAutonomousVirtualMachineIds() const
DbServerSummary & WithMemorySizeInGBs(int value)
DbServerSummary & WithMaxMemoryInGBs(int value)
DbServerSummary & WithMaxCpuCount(int value)
const DbServerPatchingDetails & GetDbServerPatchingDetails() const
const Aws::String & GetOciResourceAnchorName() const
void SetDbServerPatchingDetails(DbServerPatchingDetailsT &&value)
void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT &&value)
DbServerSummary & AddVmClusterIds(VmClusterIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue