AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateDbClusterRequest.h
1
6#pragma once
7#include <aws/timestream-influxdb/TimestreamInfluxDB_EXPORTS.h>
8#include <aws/timestream-influxdb/TimestreamInfluxDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-influxdb/model/DbInstanceType.h>
11#include <aws/timestream-influxdb/model/DbStorageType.h>
12#include <aws/timestream-influxdb/model/NetworkType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/timestream-influxdb/model/ClusterDeploymentType.h>
15#include <aws/timestream-influxdb/model/FailoverMode.h>
16#include <aws/timestream-influxdb/model/LogDeliveryConfiguration.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <utility>
19
20namespace Aws
21{
22namespace TimestreamInfluxDB
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_TIMESTREAMINFLUXDB_API CreateDbClusterRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDbCluster"; }
39
40 AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override;
41
42 AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateDbClusterRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
69 inline const Aws::String& GetUsername() const { return m_username; }
70 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
71 template<typename UsernameT = Aws::String>
72 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
73 template<typename UsernameT = Aws::String>
74 CreateDbClusterRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
76
78
84 inline const Aws::String& GetPassword() const { return m_password; }
85 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
86 template<typename PasswordT = Aws::String>
87 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
88 template<typename PasswordT = Aws::String>
89 CreateDbClusterRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
91
93
97 inline const Aws::String& GetOrganization() const { return m_organization; }
98 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
99 template<typename OrganizationT = Aws::String>
100 void SetOrganization(OrganizationT&& value) { m_organizationHasBeenSet = true; m_organization = std::forward<OrganizationT>(value); }
101 template<typename OrganizationT = Aws::String>
102 CreateDbClusterRequest& WithOrganization(OrganizationT&& value) { SetOrganization(std::forward<OrganizationT>(value)); return *this;}
104
106
112 inline const Aws::String& GetBucket() const { return m_bucket; }
113 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
114 template<typename BucketT = Aws::String>
115 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
116 template<typename BucketT = Aws::String>
117 CreateDbClusterRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
119
121
126 inline int GetPort() const { return m_port; }
127 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
128 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
129 inline CreateDbClusterRequest& WithPort(int value) { SetPort(value); return *this;}
131
133
138 inline const Aws::String& GetDbParameterGroupIdentifier() const { return m_dbParameterGroupIdentifier; }
139 inline bool DbParameterGroupIdentifierHasBeenSet() const { return m_dbParameterGroupIdentifierHasBeenSet; }
140 template<typename DbParameterGroupIdentifierT = Aws::String>
141 void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::forward<DbParameterGroupIdentifierT>(value); }
142 template<typename DbParameterGroupIdentifierT = Aws::String>
143 CreateDbClusterRequest& WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { SetDbParameterGroupIdentifier(std::forward<DbParameterGroupIdentifierT>(value)); return *this;}
145
147
150 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
151 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
152 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
155
157
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; }
169
171
175 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
176 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
177 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
178 inline CreateDbClusterRequest& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
180
182
187 inline NetworkType GetNetworkType() const { return m_networkType; }
188 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
189 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
190 inline CreateDbClusterRequest& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
192
194
198 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
199 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
200 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
201 inline CreateDbClusterRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
203
205
210 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
211 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
212 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
213 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
214 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
215 CreateDbClusterRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
216 template<typename VpcSubnetIdsT = Aws::String>
217 CreateDbClusterRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
219
221
225 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
226 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
227 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
228 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
229 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
230 CreateDbClusterRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
231 template<typename VpcSecurityGroupIdsT = Aws::String>
232 CreateDbClusterRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
234
236
239 inline ClusterDeploymentType GetDeploymentType() const { return m_deploymentType; }
240 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
241 inline void SetDeploymentType(ClusterDeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
244
246
250 inline FailoverMode GetFailoverMode() const { return m_failoverMode; }
251 inline bool FailoverModeHasBeenSet() const { return m_failoverModeHasBeenSet; }
252 inline void SetFailoverMode(FailoverMode value) { m_failoverModeHasBeenSet = true; m_failoverMode = value; }
255
257
260 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const { return m_logDeliveryConfiguration; }
261 inline bool LogDeliveryConfigurationHasBeenSet() const { return m_logDeliveryConfigurationHasBeenSet; }
262 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
263 void SetLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::forward<LogDeliveryConfigurationT>(value); }
264 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
265 CreateDbClusterRequest& WithLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { SetLogDeliveryConfiguration(std::forward<LogDeliveryConfigurationT>(value)); return *this;}
267
269
272 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
273 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
274 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
275 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
276 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
277 CreateDbClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
278 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
279 CreateDbClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
280 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
281 }
283 private:
284
285 Aws::String m_name;
286 bool m_nameHasBeenSet = false;
287
288 Aws::String m_username;
289 bool m_usernameHasBeenSet = false;
290
291 Aws::String m_password;
292 bool m_passwordHasBeenSet = false;
293
294 Aws::String m_organization;
295 bool m_organizationHasBeenSet = false;
296
297 Aws::String m_bucket;
298 bool m_bucketHasBeenSet = false;
299
300 int m_port{0};
301 bool m_portHasBeenSet = false;
302
303 Aws::String m_dbParameterGroupIdentifier;
304 bool m_dbParameterGroupIdentifierHasBeenSet = false;
305
306 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
307 bool m_dbInstanceTypeHasBeenSet = false;
308
309 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
310 bool m_dbStorageTypeHasBeenSet = false;
311
312 int m_allocatedStorage{0};
313 bool m_allocatedStorageHasBeenSet = false;
314
315 NetworkType m_networkType{NetworkType::NOT_SET};
316 bool m_networkTypeHasBeenSet = false;
317
318 bool m_publiclyAccessible{false};
319 bool m_publiclyAccessibleHasBeenSet = false;
320
321 Aws::Vector<Aws::String> m_vpcSubnetIds;
322 bool m_vpcSubnetIdsHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
325 bool m_vpcSecurityGroupIdsHasBeenSet = false;
326
328 bool m_deploymentTypeHasBeenSet = false;
329
330 FailoverMode m_failoverMode{FailoverMode::NOT_SET};
331 bool m_failoverModeHasBeenSet = false;
332
333 LogDeliveryConfiguration m_logDeliveryConfiguration;
334 bool m_logDeliveryConfigurationHasBeenSet = false;
335
337 bool m_tagsHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace TimestreamInfluxDB
342} // namespace Aws
CreateDbClusterRequest & WithUsername(UsernameT &&value)
CreateDbClusterRequest & WithLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
CreateDbClusterRequest & WithNetworkType(NetworkType value)
AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDbClusterRequest & WithFailoverMode(FailoverMode value)
void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
CreateDbClusterRequest & WithVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDbClusterRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDbClusterRequest & WithBucket(BucketT &&value)
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDbClusterRequest & WithDeploymentType(ClusterDeploymentType value)
AWS_TIMESTREAMINFLUXDB_API CreateDbClusterRequest()=default
CreateDbClusterRequest & WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
CreateDbClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDbClusterRequest & WithPassword(PasswordT &&value)
CreateDbClusterRequest & WithOrganization(OrganizationT &&value)
CreateDbClusterRequest & WithDbStorageType(DbStorageType value)
void SetLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDbClusterRequest & AddVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDbClusterRequest & WithDbInstanceType(DbInstanceType value)
virtual const char * GetServiceRequestName() const override
CreateDbClusterRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector