AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateDbInstanceResult.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/Status.h>
10#include <aws/timestream-influxdb/model/NetworkType.h>
11#include <aws/timestream-influxdb/model/DbInstanceType.h>
12#include <aws/timestream-influxdb/model/DbStorageType.h>
13#include <aws/timestream-influxdb/model/DeploymentType.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/timestream-influxdb/model/LogDeliveryConfiguration.h>
16#include <aws/timestream-influxdb/model/InstanceMode.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 CreateDbInstanceResult() = 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 CreateDbInstanceResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateDbInstanceResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 template<typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
73 template<typename ArnT = Aws::String>
74 CreateDbInstanceResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
76
78
81 inline Status GetStatus() const { return m_status; }
82 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
83 inline CreateDbInstanceResult& WithStatus(Status value) { SetStatus(value); return *this;}
85
87
91 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
92 template<typename EndpointT = Aws::String>
93 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
94 template<typename EndpointT = Aws::String>
95 CreateDbInstanceResult& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
97
99
103 inline int GetPort() const { return m_port; }
104 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
105 inline CreateDbInstanceResult& WithPort(int value) { SetPort(value); return *this;}
107
109
114 inline NetworkType GetNetworkType() const { return m_networkType; }
115 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
116 inline CreateDbInstanceResult& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
118
120
123 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
124 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
127
129
132 inline DbStorageType GetDbStorageType() const { return m_dbStorageType; }
133 inline void SetDbStorageType(DbStorageType value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
136
138
141 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
142 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
143 inline CreateDbInstanceResult& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
145
147
151 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
152 inline void SetDeploymentType(DeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
155
157
160 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
161 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
162 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
163 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
164 CreateDbInstanceResult& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
165 template<typename VpcSubnetIdsT = Aws::String>
166 CreateDbInstanceResult& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
168
170
173 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
174 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
175 inline CreateDbInstanceResult& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
177
179
182 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
183 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
184 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
185 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
186 CreateDbInstanceResult& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
187 template<typename VpcSecurityGroupIdsT = Aws::String>
188 CreateDbInstanceResult& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
190
192
195 inline const Aws::String& GetDbParameterGroupIdentifier() const { return m_dbParameterGroupIdentifier; }
196 template<typename DbParameterGroupIdentifierT = Aws::String>
197 void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::forward<DbParameterGroupIdentifierT>(value); }
198 template<typename DbParameterGroupIdentifierT = Aws::String>
199 CreateDbInstanceResult& WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { SetDbParameterGroupIdentifier(std::forward<DbParameterGroupIdentifierT>(value)); return *this;}
201
203
206 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
207 template<typename AvailabilityZoneT = Aws::String>
208 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
209 template<typename AvailabilityZoneT = Aws::String>
210 CreateDbInstanceResult& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
212
214
218 inline const Aws::String& GetSecondaryAvailabilityZone() const { return m_secondaryAvailabilityZone; }
219 template<typename SecondaryAvailabilityZoneT = Aws::String>
220 void SetSecondaryAvailabilityZone(SecondaryAvailabilityZoneT&& value) { m_secondaryAvailabilityZoneHasBeenSet = true; m_secondaryAvailabilityZone = std::forward<SecondaryAvailabilityZoneT>(value); }
221 template<typename SecondaryAvailabilityZoneT = Aws::String>
222 CreateDbInstanceResult& WithSecondaryAvailabilityZone(SecondaryAvailabilityZoneT&& value) { SetSecondaryAvailabilityZone(std::forward<SecondaryAvailabilityZoneT>(value)); return *this;}
224
226
230 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const { return m_logDeliveryConfiguration; }
231 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
232 void SetLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::forward<LogDeliveryConfigurationT>(value); }
233 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
234 CreateDbInstanceResult& WithLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { SetLogDeliveryConfiguration(std::forward<LogDeliveryConfigurationT>(value)); return *this;}
236
238
244 inline const Aws::String& GetInfluxAuthParametersSecretArn() const { return m_influxAuthParametersSecretArn; }
245 template<typename InfluxAuthParametersSecretArnT = Aws::String>
246 void SetInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT&& value) { m_influxAuthParametersSecretArnHasBeenSet = true; m_influxAuthParametersSecretArn = std::forward<InfluxAuthParametersSecretArnT>(value); }
247 template<typename InfluxAuthParametersSecretArnT = Aws::String>
248 CreateDbInstanceResult& WithInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT&& value) { SetInfluxAuthParametersSecretArn(std::forward<InfluxAuthParametersSecretArnT>(value)); return *this;}
250
252
255 inline const Aws::String& GetDbClusterId() const { return m_dbClusterId; }
256 template<typename DbClusterIdT = Aws::String>
257 void SetDbClusterId(DbClusterIdT&& value) { m_dbClusterIdHasBeenSet = true; m_dbClusterId = std::forward<DbClusterIdT>(value); }
258 template<typename DbClusterIdT = Aws::String>
259 CreateDbInstanceResult& WithDbClusterId(DbClusterIdT&& value) { SetDbClusterId(std::forward<DbClusterIdT>(value)); return *this;}
261
263
266 inline InstanceMode GetInstanceMode() const { return m_instanceMode; }
267 inline void SetInstanceMode(InstanceMode value) { m_instanceModeHasBeenSet = true; m_instanceMode = value; }
270
272
273 inline const Aws::String& GetRequestId() const { return m_requestId; }
274 template<typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
276 template<typename RequestIdT = Aws::String>
277 CreateDbInstanceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
279 private:
280
281 Aws::String m_id;
282 bool m_idHasBeenSet = false;
283
284 Aws::String m_name;
285 bool m_nameHasBeenSet = false;
286
287 Aws::String m_arn;
288 bool m_arnHasBeenSet = false;
289
290 Status m_status{Status::NOT_SET};
291 bool m_statusHasBeenSet = false;
292
293 Aws::String m_endpoint;
294 bool m_endpointHasBeenSet = false;
295
296 int m_port{0};
297 bool m_portHasBeenSet = false;
298
299 NetworkType m_networkType{NetworkType::NOT_SET};
300 bool m_networkTypeHasBeenSet = false;
301
302 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
303 bool m_dbInstanceTypeHasBeenSet = false;
304
305 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
306 bool m_dbStorageTypeHasBeenSet = false;
307
308 int m_allocatedStorage{0};
309 bool m_allocatedStorageHasBeenSet = false;
310
311 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
312 bool m_deploymentTypeHasBeenSet = false;
313
314 Aws::Vector<Aws::String> m_vpcSubnetIds;
315 bool m_vpcSubnetIdsHasBeenSet = false;
316
317 bool m_publiclyAccessible{false};
318 bool m_publiclyAccessibleHasBeenSet = false;
319
320 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
321 bool m_vpcSecurityGroupIdsHasBeenSet = false;
322
323 Aws::String m_dbParameterGroupIdentifier;
324 bool m_dbParameterGroupIdentifierHasBeenSet = false;
325
326 Aws::String m_availabilityZone;
327 bool m_availabilityZoneHasBeenSet = false;
328
329 Aws::String m_secondaryAvailabilityZone;
330 bool m_secondaryAvailabilityZoneHasBeenSet = false;
331
332 LogDeliveryConfiguration m_logDeliveryConfiguration;
333 bool m_logDeliveryConfigurationHasBeenSet = false;
334
335 Aws::String m_influxAuthParametersSecretArn;
336 bool m_influxAuthParametersSecretArnHasBeenSet = false;
337
338 Aws::String m_dbClusterId;
339 bool m_dbClusterIdHasBeenSet = false;
340
341 InstanceMode m_instanceMode{InstanceMode::NOT_SET};
342 bool m_instanceModeHasBeenSet = false;
343
344 Aws::String m_requestId;
345 bool m_requestIdHasBeenSet = false;
346 };
347
348} // namespace Model
349} // namespace TimestreamInfluxDB
350} // namespace Aws
CreateDbInstanceResult & WithDbClusterId(DbClusterIdT &&value)
CreateDbInstanceResult & WithVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDbInstanceResult & WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
CreateDbInstanceResult & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDbInstanceResult & WithSecondaryAvailabilityZone(SecondaryAvailabilityZoneT &&value)
AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceResult()=default
void SetLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDbInstanceResult & WithEndpoint(EndpointT &&value)
AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDbInstanceResult & WithRequestId(RequestIdT &&value)
CreateDbInstanceResult & AddVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDbInstanceResult & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDbInstanceResult & WithInstanceMode(InstanceMode value)
CreateDbInstanceResult & WithLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
CreateDbInstanceResult & WithNetworkType(NetworkType value)
CreateDbInstanceResult & WithDbInstanceType(DbInstanceType value)
CreateDbInstanceResult & WithDeploymentType(DeploymentType value)
CreateDbInstanceResult & WithDbStorageType(DbStorageType value)
void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
void SetInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT &&value)
void SetSecondaryAvailabilityZone(SecondaryAvailabilityZoneT &&value)
CreateDbInstanceResult & WithInfluxAuthParametersSecretArn(InfluxAuthParametersSecretArnT &&value)
CreateDbInstanceResult & WithAvailabilityZone(AvailabilityZoneT &&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