AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDbClusterResult.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 <aws/timestream-influxdb/model/LogDeliveryConfiguration.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/timestream-influxdb/model/FailoverMode.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace TimestreamInfluxDB
32{
33namespace Model
34{
36 {
37 public:
38 AWS_TIMESTREAMINFLUXDB_API GetDbClusterResult() = default;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 GetDbClusterResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 GetDbClusterResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetArn() const { return m_arn; }
70 template<typename ArnT = Aws::String>
71 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
72 template<typename ArnT = Aws::String>
73 GetDbClusterResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
75
77
80 inline ClusterStatus GetStatus() const { return m_status; }
81 inline void SetStatus(ClusterStatus value) { m_statusHasBeenSet = true; m_status = value; }
82 inline GetDbClusterResult& WithStatus(ClusterStatus value) { SetStatus(value); return *this;}
84
86
90 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
91 template<typename EndpointT = Aws::String>
92 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
93 template<typename EndpointT = Aws::String>
94 GetDbClusterResult& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
96
98
102 inline const Aws::String& GetReaderEndpoint() const { return m_readerEndpoint; }
103 template<typename ReaderEndpointT = Aws::String>
104 void SetReaderEndpoint(ReaderEndpointT&& value) { m_readerEndpointHasBeenSet = true; m_readerEndpoint = std::forward<ReaderEndpointT>(value); }
105 template<typename ReaderEndpointT = Aws::String>
106 GetDbClusterResult& WithReaderEndpoint(ReaderEndpointT&& value) { SetReaderEndpoint(std::forward<ReaderEndpointT>(value)); return *this;}
108
110
113 inline int GetPort() const { return m_port; }
114 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
115 inline GetDbClusterResult& WithPort(int value) { SetPort(value); return *this;}
117
119
122 inline ClusterDeploymentType GetDeploymentType() const { return m_deploymentType; }
123 inline void SetDeploymentType(ClusterDeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
126
128
131 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
132 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
135
137
142 inline NetworkType GetNetworkType() const { return m_networkType; }
143 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
144 inline GetDbClusterResult& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
146
148
151 inline DbStorageType GetDbStorageType() const { return m_dbStorageType; }
152 inline void SetDbStorageType(DbStorageType value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
155
157
160 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
161 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
162 inline GetDbClusterResult& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
164
166
170 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
171 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
172 inline GetDbClusterResult& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
174
176
179 inline const Aws::String& GetDbParameterGroupIdentifier() const { return m_dbParameterGroupIdentifier; }
180 template<typename DbParameterGroupIdentifierT = Aws::String>
181 void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::forward<DbParameterGroupIdentifierT>(value); }
182 template<typename DbParameterGroupIdentifierT = Aws::String>
183 GetDbClusterResult& WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { SetDbParameterGroupIdentifier(std::forward<DbParameterGroupIdentifierT>(value)); return *this;}
185
187
191 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const { return m_logDeliveryConfiguration; }
192 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
193 void SetLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::forward<LogDeliveryConfigurationT>(value); }
194 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
195 GetDbClusterResult& WithLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { SetLogDeliveryConfiguration(std::forward<LogDeliveryConfigurationT>(value)); return *this;}
197
199
205 inline const Aws::String& GetInfluxAuthParametersSecretArn() const { return m_influxAuthParametersSecretArn; }
206 template<typename InfluxAuthParametersSecretArnT = Aws::String>
207 void SetInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT&& value) { m_influxAuthParametersSecretArnHasBeenSet = true; m_influxAuthParametersSecretArn = std::forward<InfluxAuthParametersSecretArnT>(value); }
208 template<typename InfluxAuthParametersSecretArnT = Aws::String>
209 GetDbClusterResult& WithInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT&& value) { SetInfluxAuthParametersSecretArn(std::forward<InfluxAuthParametersSecretArnT>(value)); return *this;}
211
213
216 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
217 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
218 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
219 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
220 GetDbClusterResult& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
221 template<typename VpcSubnetIdsT = Aws::String>
222 GetDbClusterResult& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
224
226
229 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
230 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
231 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
232 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
233 GetDbClusterResult& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
234 template<typename VpcSecurityGroupIdsT = Aws::String>
235 GetDbClusterResult& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
237
239
242 inline FailoverMode GetFailoverMode() const { return m_failoverMode; }
243 inline void SetFailoverMode(FailoverMode value) { m_failoverModeHasBeenSet = true; m_failoverMode = value; }
244 inline GetDbClusterResult& WithFailoverMode(FailoverMode value) { SetFailoverMode(value); return *this;}
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template<typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
252 template<typename RequestIdT = Aws::String>
253 GetDbClusterResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
255 private:
256
257 Aws::String m_id;
258 bool m_idHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 Aws::String m_arn;
264 bool m_arnHasBeenSet = false;
265
267 bool m_statusHasBeenSet = false;
268
269 Aws::String m_endpoint;
270 bool m_endpointHasBeenSet = false;
271
272 Aws::String m_readerEndpoint;
273 bool m_readerEndpointHasBeenSet = false;
274
275 int m_port{0};
276 bool m_portHasBeenSet = false;
277
279 bool m_deploymentTypeHasBeenSet = false;
280
281 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
282 bool m_dbInstanceTypeHasBeenSet = false;
283
284 NetworkType m_networkType{NetworkType::NOT_SET};
285 bool m_networkTypeHasBeenSet = false;
286
287 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
288 bool m_dbStorageTypeHasBeenSet = false;
289
290 int m_allocatedStorage{0};
291 bool m_allocatedStorageHasBeenSet = false;
292
293 bool m_publiclyAccessible{false};
294 bool m_publiclyAccessibleHasBeenSet = false;
295
296 Aws::String m_dbParameterGroupIdentifier;
297 bool m_dbParameterGroupIdentifierHasBeenSet = false;
298
299 LogDeliveryConfiguration m_logDeliveryConfiguration;
300 bool m_logDeliveryConfigurationHasBeenSet = false;
301
302 Aws::String m_influxAuthParametersSecretArn;
303 bool m_influxAuthParametersSecretArnHasBeenSet = false;
304
305 Aws::Vector<Aws::String> m_vpcSubnetIds;
306 bool m_vpcSubnetIdsHasBeenSet = false;
307
308 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
309 bool m_vpcSecurityGroupIdsHasBeenSet = false;
310
311 FailoverMode m_failoverMode{FailoverMode::NOT_SET};
312 bool m_failoverModeHasBeenSet = false;
313
314 Aws::String m_requestId;
315 bool m_requestIdHasBeenSet = false;
316 };
317
318} // namespace Model
319} // namespace TimestreamInfluxDB
320} // namespace Aws
AWS_TIMESTREAMINFLUXDB_API GetDbClusterResult()=default
GetDbClusterResult & WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
GetDbClusterResult & WithPubliclyAccessible(bool value)
GetDbClusterResult & WithRequestId(RequestIdT &&value)
GetDbClusterResult & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
GetDbClusterResult & WithNetworkType(NetworkType value)
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
GetDbClusterResult & AddVpcSubnetIds(VpcSubnetIdsT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
GetDbClusterResult & WithStatus(ClusterStatus value)
AWS_TIMESTREAMINFLUXDB_API GetDbClusterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDbClusterResult & WithEndpoint(EndpointT &&value)
void SetLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
GetDbClusterResult & WithDbStorageType(DbStorageType value)
GetDbClusterResult & WithFailoverMode(FailoverMode value)
void SetDeploymentType(ClusterDeploymentType value)
void SetInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT &&value)
GetDbClusterResult & WithDbInstanceType(DbInstanceType value)
AWS_TIMESTREAMINFLUXDB_API GetDbClusterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDbClusterResult & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
GetDbClusterResult & WithInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT &&value)
void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
GetDbClusterResult & WithDeploymentType(ClusterDeploymentType value)
GetDbClusterResult & WithLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
GetDbClusterResult & WithReaderEndpoint(ReaderEndpointT &&value)
GetDbClusterResult & WithVpcSubnetIds(VpcSubnetIdsT &&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