AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateDbInstanceRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/timestream-influxdb/model/DbStorageType.h>
13#include <aws/timestream-influxdb/model/DeploymentType.h>
14#include <aws/timestream-influxdb/model/LogDeliveryConfiguration.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/timestream-influxdb/model/NetworkType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace TimestreamInfluxDB
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDbInstance"; }
38
39 AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override;
40
41 AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 CreateDbInstanceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
68 inline const Aws::String& GetUsername() const { return m_username; }
69 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
70 template<typename UsernameT = Aws::String>
71 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
72 template<typename UsernameT = Aws::String>
73 CreateDbInstanceRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
75
77
83 inline const Aws::String& GetPassword() const { return m_password; }
84 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
85 template<typename PasswordT = Aws::String>
86 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
87 template<typename PasswordT = Aws::String>
88 CreateDbInstanceRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
90
92
96 inline const Aws::String& GetOrganization() const { return m_organization; }
97 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
98 template<typename OrganizationT = Aws::String>
99 void SetOrganization(OrganizationT&& value) { m_organizationHasBeenSet = true; m_organization = std::forward<OrganizationT>(value); }
100 template<typename OrganizationT = Aws::String>
101 CreateDbInstanceRequest& WithOrganization(OrganizationT&& value) { SetOrganization(std::forward<OrganizationT>(value)); return *this;}
103
105
111 inline const Aws::String& GetBucket() const { return m_bucket; }
112 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
113 template<typename BucketT = Aws::String>
114 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
115 template<typename BucketT = Aws::String>
116 CreateDbInstanceRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
118
120
123 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
124 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
125 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
128
130
135 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
136 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
137 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
138 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
139 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
140 CreateDbInstanceRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
141 template<typename VpcSubnetIdsT = Aws::String>
142 CreateDbInstanceRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
144
146
149 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
150 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
151 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
152 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
153 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
154 CreateDbInstanceRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
155 template<typename VpcSecurityGroupIdsT = Aws::String>
156 CreateDbInstanceRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
158
160
163 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
164 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
165 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
166 inline CreateDbInstanceRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
168
170
177 inline DbStorageType GetDbStorageType() const { return m_dbStorageType; }
178 inline bool DbStorageTypeHasBeenSet() const { return m_dbStorageTypeHasBeenSet; }
179 inline void SetDbStorageType(DbStorageType value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
182
184
188 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
189 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
190 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
191 inline CreateDbInstanceRequest& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
193
195
200 inline const Aws::String& GetDbParameterGroupIdentifier() const { return m_dbParameterGroupIdentifier; }
201 inline bool DbParameterGroupIdentifierHasBeenSet() const { return m_dbParameterGroupIdentifierHasBeenSet; }
202 template<typename DbParameterGroupIdentifierT = Aws::String>
203 void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::forward<DbParameterGroupIdentifierT>(value); }
204 template<typename DbParameterGroupIdentifierT = Aws::String>
205 CreateDbInstanceRequest& WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { SetDbParameterGroupIdentifier(std::forward<DbParameterGroupIdentifierT>(value)); return *this;}
207
209
213 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
214 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
215 inline void SetDeploymentType(DeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
218
220
223 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const { return m_logDeliveryConfiguration; }
224 inline bool LogDeliveryConfigurationHasBeenSet() const { return m_logDeliveryConfigurationHasBeenSet; }
225 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
226 void SetLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::forward<LogDeliveryConfigurationT>(value); }
227 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
228 CreateDbInstanceRequest& WithLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { SetLogDeliveryConfiguration(std::forward<LogDeliveryConfigurationT>(value)); return *this;}
230
232
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
239 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 CreateDbInstanceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
241 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
242 CreateDbInstanceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
243 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
244 }
246
248
253 inline int GetPort() const { return m_port; }
254 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
255 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
256 inline CreateDbInstanceRequest& WithPort(int value) { SetPort(value); return *this;}
258
260
265 inline NetworkType GetNetworkType() const { return m_networkType; }
266 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
267 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
270 private:
271
272 Aws::String m_name;
273 bool m_nameHasBeenSet = false;
274
275 Aws::String m_username;
276 bool m_usernameHasBeenSet = false;
277
278 Aws::String m_password;
279 bool m_passwordHasBeenSet = false;
280
281 Aws::String m_organization;
282 bool m_organizationHasBeenSet = false;
283
284 Aws::String m_bucket;
285 bool m_bucketHasBeenSet = false;
286
287 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
288 bool m_dbInstanceTypeHasBeenSet = false;
289
290 Aws::Vector<Aws::String> m_vpcSubnetIds;
291 bool m_vpcSubnetIdsHasBeenSet = false;
292
293 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
294 bool m_vpcSecurityGroupIdsHasBeenSet = false;
295
296 bool m_publiclyAccessible{false};
297 bool m_publiclyAccessibleHasBeenSet = false;
298
299 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
300 bool m_dbStorageTypeHasBeenSet = false;
301
302 int m_allocatedStorage{0};
303 bool m_allocatedStorageHasBeenSet = false;
304
305 Aws::String m_dbParameterGroupIdentifier;
306 bool m_dbParameterGroupIdentifierHasBeenSet = false;
307
308 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
309 bool m_deploymentTypeHasBeenSet = false;
310
311 LogDeliveryConfiguration m_logDeliveryConfiguration;
312 bool m_logDeliveryConfigurationHasBeenSet = false;
313
315 bool m_tagsHasBeenSet = false;
316
317 int m_port{0};
318 bool m_portHasBeenSet = false;
319
320 NetworkType m_networkType{NetworkType::NOT_SET};
321 bool m_networkTypeHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace TimestreamInfluxDB
326} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDbInstanceRequest & WithDeploymentType(DeploymentType value)
CreateDbInstanceRequest & WithVpcSubnetIds(VpcSubnetIdsT &&value)
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceRequest()=default
CreateDbInstanceRequest & WithPassword(PasswordT &&value)
CreateDbInstanceRequest & WithUsername(UsernameT &&value)
AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override
CreateDbInstanceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDbInstanceRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDbInstanceRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDbInstanceRequest & WithNetworkType(NetworkType value)
CreateDbInstanceRequest & WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
CreateDbInstanceRequest & WithDbStorageType(DbStorageType value)
CreateDbInstanceRequest & AddVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDbInstanceRequest & WithBucket(BucketT &&value)
CreateDbInstanceRequest & WithDbInstanceType(DbInstanceType value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDbInstanceRequest & WithOrganization(OrganizationT &&value)
void SetLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
CreateDbInstanceRequest & WithLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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