AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
17
18namespace Aws
19{
20namespace TimestreamInfluxDB
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_TIMESTREAMINFLUXDB_API CreateDbInstanceRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDbInstance"; }
37
38 AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override;
39
40 AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline CreateDbInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline CreateDbInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline CreateDbInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
59
61
69 inline const Aws::String& GetUsername() const{ return m_username; }
70 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
71 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
72 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
73 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
74 inline CreateDbInstanceRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
75 inline CreateDbInstanceRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
76 inline CreateDbInstanceRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
78
80
86 inline const Aws::String& GetPassword() const{ return m_password; }
87 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
88 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
89 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
90 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
91 inline CreateDbInstanceRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
92 inline CreateDbInstanceRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
93 inline CreateDbInstanceRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
95
97
101 inline const Aws::String& GetOrganization() const{ return m_organization; }
102 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
103 inline void SetOrganization(const Aws::String& value) { m_organizationHasBeenSet = true; m_organization = value; }
104 inline void SetOrganization(Aws::String&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); }
105 inline void SetOrganization(const char* value) { m_organizationHasBeenSet = true; m_organization.assign(value); }
106 inline CreateDbInstanceRequest& WithOrganization(const Aws::String& value) { SetOrganization(value); return *this;}
107 inline CreateDbInstanceRequest& WithOrganization(Aws::String&& value) { SetOrganization(std::move(value)); return *this;}
108 inline CreateDbInstanceRequest& WithOrganization(const char* value) { SetOrganization(value); return *this;}
110
112
118 inline const Aws::String& GetBucket() const{ return m_bucket; }
119 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
120 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
121 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
122 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
123 inline CreateDbInstanceRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
124 inline CreateDbInstanceRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
125 inline CreateDbInstanceRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
127
129
132 inline const DbInstanceType& GetDbInstanceType() const{ return m_dbInstanceType; }
133 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
134 inline void SetDbInstanceType(const DbInstanceType& value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
135 inline void SetDbInstanceType(DbInstanceType&& value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = std::move(value); }
136 inline CreateDbInstanceRequest& WithDbInstanceType(const DbInstanceType& value) { SetDbInstanceType(value); return *this;}
137 inline CreateDbInstanceRequest& WithDbInstanceType(DbInstanceType&& value) { SetDbInstanceType(std::move(value)); return *this;}
139
141
146 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
147 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
148 inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
149 inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
151 inline CreateDbInstanceRequest& WithVpcSubnetIds(Aws::Vector<Aws::String>&& value) { SetVpcSubnetIds(std::move(value)); return *this;}
152 inline CreateDbInstanceRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
153 inline CreateDbInstanceRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
154 inline CreateDbInstanceRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
156
158
161 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
162 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
163 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
164 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
167 inline CreateDbInstanceRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
168 inline CreateDbInstanceRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
169 inline CreateDbInstanceRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
171
173
176 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
177 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
178 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
179 inline CreateDbInstanceRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
181
183
190 inline const DbStorageType& GetDbStorageType() const{ return m_dbStorageType; }
191 inline bool DbStorageTypeHasBeenSet() const { return m_dbStorageTypeHasBeenSet; }
192 inline void SetDbStorageType(const DbStorageType& value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
193 inline void SetDbStorageType(DbStorageType&& value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = std::move(value); }
194 inline CreateDbInstanceRequest& WithDbStorageType(const DbStorageType& value) { SetDbStorageType(value); return *this;}
195 inline CreateDbInstanceRequest& WithDbStorageType(DbStorageType&& value) { SetDbStorageType(std::move(value)); return *this;}
197
199
203 inline int GetAllocatedStorage() const{ return m_allocatedStorage; }
204 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
205 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
206 inline CreateDbInstanceRequest& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
208
210
215 inline const Aws::String& GetDbParameterGroupIdentifier() const{ return m_dbParameterGroupIdentifier; }
216 inline bool DbParameterGroupIdentifierHasBeenSet() const { return m_dbParameterGroupIdentifierHasBeenSet; }
217 inline void SetDbParameterGroupIdentifier(const Aws::String& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = value; }
218 inline void SetDbParameterGroupIdentifier(Aws::String&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::move(value); }
219 inline void SetDbParameterGroupIdentifier(const char* value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier.assign(value); }
224
226
230 inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
231 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
232 inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
233 inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
234 inline CreateDbInstanceRequest& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
235 inline CreateDbInstanceRequest& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
237
239
242 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const{ return m_logDeliveryConfiguration; }
243 inline bool LogDeliveryConfigurationHasBeenSet() const { return m_logDeliveryConfigurationHasBeenSet; }
244 inline void SetLogDeliveryConfiguration(const LogDeliveryConfiguration& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = value; }
245 inline void SetLogDeliveryConfiguration(LogDeliveryConfiguration&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::move(value); }
249
251
254 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
255 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
256 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
257 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
258 inline CreateDbInstanceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
259 inline CreateDbInstanceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
260 inline CreateDbInstanceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
261 inline CreateDbInstanceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262 inline CreateDbInstanceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
263 inline CreateDbInstanceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
264 inline CreateDbInstanceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
265 inline CreateDbInstanceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
266 inline CreateDbInstanceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
268
270
275 inline int GetPort() const{ return m_port; }
276 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
277 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
278 inline CreateDbInstanceRequest& WithPort(int value) { SetPort(value); return *this;}
280 private:
281
282 Aws::String m_name;
283 bool m_nameHasBeenSet = false;
284
285 Aws::String m_username;
286 bool m_usernameHasBeenSet = false;
287
288 Aws::String m_password;
289 bool m_passwordHasBeenSet = false;
290
291 Aws::String m_organization;
292 bool m_organizationHasBeenSet = false;
293
294 Aws::String m_bucket;
295 bool m_bucketHasBeenSet = false;
296
297 DbInstanceType m_dbInstanceType;
298 bool m_dbInstanceTypeHasBeenSet = false;
299
300 Aws::Vector<Aws::String> m_vpcSubnetIds;
301 bool m_vpcSubnetIdsHasBeenSet = false;
302
303 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
304 bool m_vpcSecurityGroupIdsHasBeenSet = false;
305
306 bool m_publiclyAccessible;
307 bool m_publiclyAccessibleHasBeenSet = false;
308
309 DbStorageType m_dbStorageType;
310 bool m_dbStorageTypeHasBeenSet = false;
311
312 int m_allocatedStorage;
313 bool m_allocatedStorageHasBeenSet = false;
314
315 Aws::String m_dbParameterGroupIdentifier;
316 bool m_dbParameterGroupIdentifierHasBeenSet = false;
317
318 DeploymentType m_deploymentType;
319 bool m_deploymentTypeHasBeenSet = false;
320
321 LogDeliveryConfiguration m_logDeliveryConfiguration;
322 bool m_logDeliveryConfigurationHasBeenSet = false;
323
325 bool m_tagsHasBeenSet = false;
326
327 int m_port;
328 bool m_portHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace TimestreamInfluxDB
333} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDbInstanceRequest & WithPassword(const char *value)
CreateDbInstanceRequest & WithName(const char *value)
CreateDbInstanceRequest & AddVpcSecurityGroupIds(const Aws::String &value)
CreateDbInstanceRequest & WithBucket(const char *value)
CreateDbInstanceRequest & WithOrganization(Aws::String &&value)
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
CreateDbInstanceRequest & WithName(Aws::String &&value)
CreateDbInstanceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDbInstanceRequest & WithDbInstanceType(DbInstanceType &&value)
CreateDbInstanceRequest & AddTags(Aws::String &&key, const char *value)
CreateDbInstanceRequest & WithUsername(const Aws::String &value)
AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override
CreateDbInstanceRequest & WithBucket(const Aws::String &value)
CreateDbInstanceRequest & WithLogDeliveryConfiguration(const LogDeliveryConfiguration &value)
CreateDbInstanceRequest & WithOrganization(const Aws::String &value)
CreateDbInstanceRequest & AddVpcSubnetIds(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDbInstanceRequest & WithUsername(Aws::String &&value)
CreateDbInstanceRequest & WithDbParameterGroupIdentifier(const char *value)
CreateDbInstanceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDbInstanceRequest & WithName(const Aws::String &value)
CreateDbInstanceRequest & WithLogDeliveryConfiguration(LogDeliveryConfiguration &&value)
CreateDbInstanceRequest & WithUsername(const char *value)
CreateDbInstanceRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetLogDeliveryConfiguration(LogDeliveryConfiguration &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDbInstanceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDbInstanceRequest & AddVpcSubnetIds(const Aws::String &value)
CreateDbInstanceRequest & WithPassword(Aws::String &&value)
CreateDbInstanceRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateDbInstanceRequest & AddVpcSecurityGroupIds(const char *value)
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateDbInstanceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDbInstanceRequest & AddVpcSecurityGroupIds(Aws::String &&value)
CreateDbInstanceRequest & WithDbParameterGroupIdentifier(Aws::String &&value)
CreateDbInstanceRequest & WithPassword(const Aws::String &value)
CreateDbInstanceRequest & WithDbStorageType(const DbStorageType &value)
CreateDbInstanceRequest & WithBucket(Aws::String &&value)
CreateDbInstanceRequest & AddTags(const char *key, Aws::String &&value)
CreateDbInstanceRequest & WithDbStorageType(DbStorageType &&value)
CreateDbInstanceRequest & WithOrganization(const char *value)
CreateDbInstanceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDbInstanceRequest & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDbInstanceRequest & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDbInstanceRequest & WithDeploymentType(DeploymentType &&value)
CreateDbInstanceRequest & WithDbParameterGroupIdentifier(const Aws::String &value)
CreateDbInstanceRequest & WithDeploymentType(const DeploymentType &value)
CreateDbInstanceRequest & AddTags(const char *key, const char *value)
AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDbInstanceRequest & AddVpcSubnetIds(const char *value)
CreateDbInstanceRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateDbInstanceRequest & WithDbInstanceType(const DbInstanceType &value)
void SetLogDeliveryConfiguration(const LogDeliveryConfiguration &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