AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DbServerSummary.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 DbServerSummary() = default;
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 DbServerSummary& 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 DbServerSummary& 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 DbServerSummary& 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 DbServerSummary& WithCpuCoreCount(int value) { SetCpuCoreCount(value); return *this;}
88
90
94 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
95 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
96 inline void SetDbNodeStorageSizeInGBs(int value) { m_dbNodeStorageSizeInGBsHasBeenSet = true; m_dbNodeStorageSizeInGBs = value; }
97 inline DbServerSummary& WithDbNodeStorageSizeInGBs(int value) { SetDbNodeStorageSizeInGBs(value); return *this;}
99
101
102 inline const DbServerPatchingDetails& GetDbServerPatchingDetails() const { return m_dbServerPatchingDetails; }
103 inline bool DbServerPatchingDetailsHasBeenSet() const { return m_dbServerPatchingDetailsHasBeenSet; }
104 template<typename DbServerPatchingDetailsT = DbServerPatchingDetails>
105 void SetDbServerPatchingDetails(DbServerPatchingDetailsT&& value) { m_dbServerPatchingDetailsHasBeenSet = true; m_dbServerPatchingDetails = std::forward<DbServerPatchingDetailsT>(value); }
106 template<typename DbServerPatchingDetailsT = DbServerPatchingDetails>
107 DbServerSummary& WithDbServerPatchingDetails(DbServerPatchingDetailsT&& value) { SetDbServerPatchingDetails(std::forward<DbServerPatchingDetailsT>(value)); return *this;}
109
111
115 inline const Aws::String& GetDisplayName() const { return m_displayName; }
116 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
117 template<typename DisplayNameT = Aws::String>
118 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
119 template<typename DisplayNameT = Aws::String>
120 DbServerSummary& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
122
124
127 inline const Aws::String& GetExadataInfrastructureId() const { return m_exadataInfrastructureId; }
128 inline bool ExadataInfrastructureIdHasBeenSet() const { return m_exadataInfrastructureIdHasBeenSet; }
129 template<typename ExadataInfrastructureIdT = Aws::String>
130 void SetExadataInfrastructureId(ExadataInfrastructureIdT&& value) { m_exadataInfrastructureIdHasBeenSet = true; m_exadataInfrastructureId = std::forward<ExadataInfrastructureIdT>(value); }
131 template<typename ExadataInfrastructureIdT = Aws::String>
132 DbServerSummary& WithExadataInfrastructureId(ExadataInfrastructureIdT&& value) { SetExadataInfrastructureId(std::forward<ExadataInfrastructureIdT>(value)); return *this;}
134
136
139 inline const Aws::String& GetOcid() const { return m_ocid; }
140 inline bool OcidHasBeenSet() const { return m_ocidHasBeenSet; }
141 template<typename OcidT = Aws::String>
142 void SetOcid(OcidT&& value) { m_ocidHasBeenSet = true; m_ocid = std::forward<OcidT>(value); }
143 template<typename OcidT = Aws::String>
144 DbServerSummary& WithOcid(OcidT&& value) { SetOcid(std::forward<OcidT>(value)); return *this;}
146
148
151 inline const Aws::String& GetOciResourceAnchorName() const { return m_ociResourceAnchorName; }
152 inline bool OciResourceAnchorNameHasBeenSet() const { return m_ociResourceAnchorNameHasBeenSet; }
153 template<typename OciResourceAnchorNameT = Aws::String>
154 void SetOciResourceAnchorName(OciResourceAnchorNameT&& value) { m_ociResourceAnchorNameHasBeenSet = true; m_ociResourceAnchorName = std::forward<OciResourceAnchorNameT>(value); }
155 template<typename OciResourceAnchorNameT = Aws::String>
156 DbServerSummary& WithOciResourceAnchorName(OciResourceAnchorNameT&& value) { SetOciResourceAnchorName(std::forward<OciResourceAnchorNameT>(value)); return *this;}
158
160
163 inline int GetMaxCpuCount() const { return m_maxCpuCount; }
164 inline bool MaxCpuCountHasBeenSet() const { return m_maxCpuCountHasBeenSet; }
165 inline void SetMaxCpuCount(int value) { m_maxCpuCountHasBeenSet = true; m_maxCpuCount = value; }
166 inline DbServerSummary& WithMaxCpuCount(int value) { SetMaxCpuCount(value); return *this;}
168
170
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 DbServerSummary& WithMaxDbNodeStorageInGBs(int value) { SetMaxDbNodeStorageInGBs(value); return *this;}
179
181
185 inline int GetMaxMemoryInGBs() const { return m_maxMemoryInGBs; }
186 inline bool MaxMemoryInGBsHasBeenSet() const { return m_maxMemoryInGBsHasBeenSet; }
187 inline void SetMaxMemoryInGBs(int value) { m_maxMemoryInGBsHasBeenSet = true; m_maxMemoryInGBs = value; }
188 inline DbServerSummary& WithMaxMemoryInGBs(int value) { SetMaxMemoryInGBs(value); return *this;}
190
192
196 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
197 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
198 inline void SetMemorySizeInGBs(int value) { m_memorySizeInGBsHasBeenSet = true; m_memorySizeInGBs = value; }
199 inline DbServerSummary& WithMemorySizeInGBs(int value) { SetMemorySizeInGBs(value); return *this;}
201
203
208 inline const Aws::String& GetShape() const { return m_shape; }
209 inline bool ShapeHasBeenSet() const { return m_shapeHasBeenSet; }
210 template<typename ShapeT = Aws::String>
211 void SetShape(ShapeT&& value) { m_shapeHasBeenSet = true; m_shape = std::forward<ShapeT>(value); }
212 template<typename ShapeT = Aws::String>
213 DbServerSummary& WithShape(ShapeT&& value) { SetShape(std::forward<ShapeT>(value)); return *this;}
215
217
220 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
221 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
222 template<typename CreatedAtT = Aws::Utils::DateTime>
223 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
224 template<typename CreatedAtT = Aws::Utils::DateTime>
225 DbServerSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
227
229
232 inline const Aws::Vector<Aws::String>& GetVmClusterIds() const { return m_vmClusterIds; }
233 inline bool VmClusterIdsHasBeenSet() const { return m_vmClusterIdsHasBeenSet; }
234 template<typename VmClusterIdsT = Aws::Vector<Aws::String>>
235 void SetVmClusterIds(VmClusterIdsT&& value) { m_vmClusterIdsHasBeenSet = true; m_vmClusterIds = std::forward<VmClusterIdsT>(value); }
236 template<typename VmClusterIdsT = Aws::Vector<Aws::String>>
237 DbServerSummary& WithVmClusterIds(VmClusterIdsT&& value) { SetVmClusterIds(std::forward<VmClusterIdsT>(value)); return *this;}
238 template<typename VmClusterIdsT = Aws::String>
239 DbServerSummary& AddVmClusterIds(VmClusterIdsT&& value) { m_vmClusterIdsHasBeenSet = true; m_vmClusterIds.emplace_back(std::forward<VmClusterIdsT>(value)); return *this; }
241
243
250 inline ComputeModel GetComputeModel() const { return m_computeModel; }
251 inline bool ComputeModelHasBeenSet() const { return m_computeModelHasBeenSet; }
252 inline void SetComputeModel(ComputeModel value) { m_computeModelHasBeenSet = true; m_computeModel = value; }
253 inline DbServerSummary& WithComputeModel(ComputeModel value) { SetComputeModel(value); return *this;}
255
257
260 inline const Aws::Vector<Aws::String>& GetAutonomousVmClusterIds() const { return m_autonomousVmClusterIds; }
261 inline bool AutonomousVmClusterIdsHasBeenSet() const { return m_autonomousVmClusterIdsHasBeenSet; }
262 template<typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
263 void SetAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { m_autonomousVmClusterIdsHasBeenSet = true; m_autonomousVmClusterIds = std::forward<AutonomousVmClusterIdsT>(value); }
264 template<typename AutonomousVmClusterIdsT = Aws::Vector<Aws::String>>
265 DbServerSummary& WithAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { SetAutonomousVmClusterIds(std::forward<AutonomousVmClusterIdsT>(value)); return *this;}
266 template<typename AutonomousVmClusterIdsT = Aws::String>
267 DbServerSummary& AddAutonomousVmClusterIds(AutonomousVmClusterIdsT&& value) { m_autonomousVmClusterIdsHasBeenSet = true; m_autonomousVmClusterIds.emplace_back(std::forward<AutonomousVmClusterIdsT>(value)); return *this; }
269
271
274 inline const Aws::Vector<Aws::String>& GetAutonomousVirtualMachineIds() const { return m_autonomousVirtualMachineIds; }
275 inline bool AutonomousVirtualMachineIdsHasBeenSet() const { return m_autonomousVirtualMachineIdsHasBeenSet; }
276 template<typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
277 void SetAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { m_autonomousVirtualMachineIdsHasBeenSet = true; m_autonomousVirtualMachineIds = std::forward<AutonomousVirtualMachineIdsT>(value); }
278 template<typename AutonomousVirtualMachineIdsT = Aws::Vector<Aws::String>>
279 DbServerSummary& WithAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { SetAutonomousVirtualMachineIds(std::forward<AutonomousVirtualMachineIdsT>(value)); return *this;}
280 template<typename AutonomousVirtualMachineIdsT = Aws::String>
281 DbServerSummary& AddAutonomousVirtualMachineIds(AutonomousVirtualMachineIdsT&& value) { m_autonomousVirtualMachineIdsHasBeenSet = true; m_autonomousVirtualMachineIds.emplace_back(std::forward<AutonomousVirtualMachineIdsT>(value)); return *this; }
283 private:
284
285 Aws::String m_dbServerId;
286 bool m_dbServerIdHasBeenSet = false;
287
289 bool m_statusHasBeenSet = false;
290
291 Aws::String m_statusReason;
292 bool m_statusReasonHasBeenSet = false;
293
294 int m_cpuCoreCount{0};
295 bool m_cpuCoreCountHasBeenSet = false;
296
297 int m_dbNodeStorageSizeInGBs{0};
298 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
299
300 DbServerPatchingDetails m_dbServerPatchingDetails;
301 bool m_dbServerPatchingDetailsHasBeenSet = false;
302
303 Aws::String m_displayName;
304 bool m_displayNameHasBeenSet = false;
305
306 Aws::String m_exadataInfrastructureId;
307 bool m_exadataInfrastructureIdHasBeenSet = false;
308
309 Aws::String m_ocid;
310 bool m_ocidHasBeenSet = false;
311
312 Aws::String m_ociResourceAnchorName;
313 bool m_ociResourceAnchorNameHasBeenSet = false;
314
315 int m_maxCpuCount{0};
316 bool m_maxCpuCountHasBeenSet = false;
317
318 int m_maxDbNodeStorageInGBs{0};
319 bool m_maxDbNodeStorageInGBsHasBeenSet = false;
320
321 int m_maxMemoryInGBs{0};
322 bool m_maxMemoryInGBsHasBeenSet = false;
323
324 int m_memorySizeInGBs{0};
325 bool m_memorySizeInGBsHasBeenSet = false;
326
327 Aws::String m_shape;
328 bool m_shapeHasBeenSet = false;
329
330 Aws::Utils::DateTime m_createdAt{};
331 bool m_createdAtHasBeenSet = false;
332
333 Aws::Vector<Aws::String> m_vmClusterIds;
334 bool m_vmClusterIdsHasBeenSet = false;
335
336 ComputeModel m_computeModel{ComputeModel::NOT_SET};
337 bool m_computeModelHasBeenSet = false;
338
339 Aws::Vector<Aws::String> m_autonomousVmClusterIds;
340 bool m_autonomousVmClusterIdsHasBeenSet = false;
341
342 Aws::Vector<Aws::String> m_autonomousVirtualMachineIds;
343 bool m_autonomousVirtualMachineIdsHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace odb
348} // 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