AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DbClusterSummary.h
1
6#pragma once
7#include <aws/timestream-influxdb/TimestreamInfluxDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-influxdb/model/ClusterStatus.h>
10#include <aws/timestream-influxdb/model/ClusterDeploymentType.h>
11#include <aws/timestream-influxdb/model/DbInstanceType.h>
12#include <aws/timestream-influxdb/model/NetworkType.h>
13#include <aws/timestream-influxdb/model/DbStorageType.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 TimestreamInfluxDB
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_TIMESTREAMINFLUXDB_API DbClusterSummary() = default;
41 AWS_TIMESTREAMINFLUXDB_API DbClusterSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMINFLUXDB_API DbClusterSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 DbClusterSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 DbClusterSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 template<typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
78 template<typename ArnT = Aws::String>
79 DbClusterSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
81
83
86 inline ClusterStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(ClusterStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline DbClusterSummary& WithStatus(ClusterStatus value) { SetStatus(value); return *this;}
91
93
97 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
98 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
99 template<typename EndpointT = Aws::String>
100 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
101 template<typename EndpointT = Aws::String>
102 DbClusterSummary& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
104
106
110 inline const Aws::String& GetReaderEndpoint() const { return m_readerEndpoint; }
111 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
112 template<typename ReaderEndpointT = Aws::String>
113 void SetReaderEndpoint(ReaderEndpointT&& value) { m_readerEndpointHasBeenSet = true; m_readerEndpoint = std::forward<ReaderEndpointT>(value); }
114 template<typename ReaderEndpointT = Aws::String>
115 DbClusterSummary& WithReaderEndpoint(ReaderEndpointT&& value) { SetReaderEndpoint(std::forward<ReaderEndpointT>(value)); return *this;}
117
119
122 inline int GetPort() const { return m_port; }
123 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
124 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
125 inline DbClusterSummary& WithPort(int value) { SetPort(value); return *this;}
127
129
132 inline ClusterDeploymentType GetDeploymentType() const { return m_deploymentType; }
133 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
134 inline void SetDeploymentType(ClusterDeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
137
139
142 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
143 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
144 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
147
149
154 inline NetworkType GetNetworkType() const { return m_networkType; }
155 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
156 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
157 inline DbClusterSummary& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
159
161
164 inline DbStorageType GetDbStorageType() const { return m_dbStorageType; }
165 inline bool DbStorageTypeHasBeenSet() const { return m_dbStorageTypeHasBeenSet; }
166 inline void SetDbStorageType(DbStorageType value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
167 inline DbClusterSummary& WithDbStorageType(DbStorageType value) { SetDbStorageType(value); return *this;}
169
171
174 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
175 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
176 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
177 inline DbClusterSummary& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
179 private:
180
181 Aws::String m_id;
182 bool m_idHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
191 bool m_statusHasBeenSet = false;
192
193 Aws::String m_endpoint;
194 bool m_endpointHasBeenSet = false;
195
196 Aws::String m_readerEndpoint;
197 bool m_readerEndpointHasBeenSet = false;
198
199 int m_port{0};
200 bool m_portHasBeenSet = false;
201
203 bool m_deploymentTypeHasBeenSet = false;
204
205 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
206 bool m_dbInstanceTypeHasBeenSet = false;
207
208 NetworkType m_networkType{NetworkType::NOT_SET};
209 bool m_networkTypeHasBeenSet = false;
210
211 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
212 bool m_dbStorageTypeHasBeenSet = false;
213
214 int m_allocatedStorage{0};
215 bool m_allocatedStorageHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace TimestreamInfluxDB
220} // namespace Aws
DbClusterSummary & WithStatus(ClusterStatus value)
void SetDeploymentType(ClusterDeploymentType value)
DbClusterSummary & WithEndpoint(EndpointT &&value)
DbClusterSummary & WithDeploymentType(ClusterDeploymentType value)
DbClusterSummary & WithReaderEndpoint(ReaderEndpointT &&value)
DbClusterSummary & WithDbStorageType(DbStorageType value)
DbClusterSummary & WithDbInstanceType(DbInstanceType value)
AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMINFLUXDB_API DbClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DbClusterSummary & WithNetworkType(NetworkType value)
AWS_TIMESTREAMINFLUXDB_API DbClusterSummary()=default
DbClusterSummary & WithName(NameT &&value)
AWS_TIMESTREAMINFLUXDB_API DbClusterSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue