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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DOCDB_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_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
53 inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
54 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
55 inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
56 inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
57 inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
59 inline CreateDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
60 inline CreateDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
62
64
68 inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
69 inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
70 inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
71 inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
72 inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
73 inline CreateDBInstanceRequest& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
74 inline CreateDBInstanceRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
75 inline CreateDBInstanceRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
77
79
83 inline const Aws::String& GetEngine() const{ return m_engine; }
84 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
85 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
86 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
87 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
88 inline CreateDBInstanceRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
89 inline CreateDBInstanceRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
90 inline CreateDBInstanceRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
92
94
99 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
100 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
101 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
102 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
103 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
105 inline CreateDBInstanceRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
106 inline CreateDBInstanceRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
108
110
118 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
119 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
120 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
121 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
122 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
127
129
134 inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
135 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
136 inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
139
141
145 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
149 inline CreateDBInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 inline CreateDBInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 inline CreateDBInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 inline CreateDBInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154
156
159 inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
160 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
161 inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
162 inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
163 inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
165 inline CreateDBInstanceRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
166 inline CreateDBInstanceRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
168
170
174 inline bool GetCopyTagsToSnapshot() const{ return m_copyTagsToSnapshot; }
175 inline bool CopyTagsToSnapshotHasBeenSet() const { return m_copyTagsToSnapshotHasBeenSet; }
176 inline void SetCopyTagsToSnapshot(bool value) { m_copyTagsToSnapshotHasBeenSet = true; m_copyTagsToSnapshot = value; }
177 inline CreateDBInstanceRequest& WithCopyTagsToSnapshot(bool value) { SetCopyTagsToSnapshot(value); return *this;}
179
181
186 inline int GetPromotionTier() const{ return m_promotionTier; }
187 inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
188 inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
189 inline CreateDBInstanceRequest& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
191
193
199 inline bool GetEnablePerformanceInsights() const{ return m_enablePerformanceInsights; }
200 inline bool EnablePerformanceInsightsHasBeenSet() const { return m_enablePerformanceInsightsHasBeenSet; }
201 inline void SetEnablePerformanceInsights(bool value) { m_enablePerformanceInsightsHasBeenSet = true; m_enablePerformanceInsights = value; }
204
206
215 inline const Aws::String& GetPerformanceInsightsKMSKeyId() const{ return m_performanceInsightsKMSKeyId; }
216 inline bool PerformanceInsightsKMSKeyIdHasBeenSet() const { return m_performanceInsightsKMSKeyIdHasBeenSet; }
217 inline void SetPerformanceInsightsKMSKeyId(const Aws::String& value) { m_performanceInsightsKMSKeyIdHasBeenSet = true; m_performanceInsightsKMSKeyId = value; }
218 inline void SetPerformanceInsightsKMSKeyId(Aws::String&& value) { m_performanceInsightsKMSKeyIdHasBeenSet = true; m_performanceInsightsKMSKeyId = std::move(value); }
219 inline void SetPerformanceInsightsKMSKeyId(const char* value) { m_performanceInsightsKMSKeyIdHasBeenSet = true; m_performanceInsightsKMSKeyId.assign(value); }
224
226
235 inline const Aws::String& GetCACertificateIdentifier() const{ return m_cACertificateIdentifier; }
236 inline bool CACertificateIdentifierHasBeenSet() const { return m_cACertificateIdentifierHasBeenSet; }
237 inline void SetCACertificateIdentifier(const Aws::String& value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier = value; }
238 inline void SetCACertificateIdentifier(Aws::String&& value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier = std::move(value); }
239 inline void SetCACertificateIdentifier(const char* value) { m_cACertificateIdentifierHasBeenSet = true; m_cACertificateIdentifier.assign(value); }
242 inline CreateDBInstanceRequest& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;}
244 private:
245
246 Aws::String m_dBInstanceIdentifier;
247 bool m_dBInstanceIdentifierHasBeenSet = false;
248
249 Aws::String m_dBInstanceClass;
250 bool m_dBInstanceClassHasBeenSet = false;
251
252 Aws::String m_engine;
253 bool m_engineHasBeenSet = false;
254
255 Aws::String m_availabilityZone;
256 bool m_availabilityZoneHasBeenSet = false;
257
258 Aws::String m_preferredMaintenanceWindow;
259 bool m_preferredMaintenanceWindowHasBeenSet = false;
260
261 bool m_autoMinorVersionUpgrade;
262 bool m_autoMinorVersionUpgradeHasBeenSet = false;
263
264 Aws::Vector<Tag> m_tags;
265 bool m_tagsHasBeenSet = false;
266
267 Aws::String m_dBClusterIdentifier;
268 bool m_dBClusterIdentifierHasBeenSet = false;
269
270 bool m_copyTagsToSnapshot;
271 bool m_copyTagsToSnapshotHasBeenSet = false;
272
273 int m_promotionTier;
274 bool m_promotionTierHasBeenSet = false;
275
276 bool m_enablePerformanceInsights;
277 bool m_enablePerformanceInsightsHasBeenSet = false;
278
279 Aws::String m_performanceInsightsKMSKeyId;
280 bool m_performanceInsightsKMSKeyIdHasBeenSet = false;
281
282 Aws::String m_cACertificateIdentifier;
283 bool m_cACertificateIdentifierHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace DocDB
288} // namespace Aws
CreateDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
CreateDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
CreateDBInstanceRequest & WithPerformanceInsightsKMSKeyId(Aws::String &&value)
CreateDBInstanceRequest & WithPreferredMaintenanceWindow(const char *value)
void SetDBInstanceClass(const Aws::String &value)
CreateDBInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBInstanceRequest & WithCACertificateIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDBInstanceRequest & WithAvailabilityZone(const char *value)
CreateDBInstanceRequest & WithCACertificateIdentifier(const char *value)
CreateDBInstanceRequest & WithEngine(Aws::String &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBInstanceRequest & WithDBClusterIdentifier(Aws::String &&value)
CreateDBInstanceRequest & WithPromotionTier(int value)
void SetCACertificateIdentifier(const Aws::String &value)
CreateDBInstanceRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateDBInstanceRequest & WithPerformanceInsightsKMSKeyId(const char *value)
CreateDBInstanceRequest & WithCACertificateIdentifier(Aws::String &&value)
CreateDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
CreateDBInstanceRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateDBInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBInstanceRequest & WithDBClusterIdentifier(const Aws::String &value)
CreateDBInstanceRequest & WithPerformanceInsightsKMSKeyId(const Aws::String &value)
CreateDBInstanceRequest & AddTags(Tag &&value)
CreateDBInstanceRequest & AddTags(const Tag &value)
CreateDBInstanceRequest & WithAvailabilityZone(const Aws::String &value)
const Aws::String & GetPreferredMaintenanceWindow() const
void SetDBInstanceIdentifier(const Aws::String &value)
const Aws::String & GetPerformanceInsightsKMSKeyId() const
CreateDBInstanceRequest & WithAvailabilityZone(Aws::String &&value)
CreateDBInstanceRequest & WithAutoMinorVersionUpgrade(bool value)
CreateDBInstanceRequest & WithEnablePerformanceInsights(bool value)
void SetDBClusterIdentifier(const Aws::String &value)
CreateDBInstanceRequest & WithDBClusterIdentifier(const char *value)
CreateDBInstanceRequest & WithEngine(const char *value)
void SetPerformanceInsightsKMSKeyId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDBInstanceRequest & WithDBInstanceClass(const Aws::String &value)
CreateDBInstanceRequest & WithDBInstanceClass(Aws::String &&value)
CreateDBInstanceRequest & WithCopyTagsToSnapshot(bool value)
CreateDBInstanceRequest & WithDBInstanceClass(const char *value)
CreateDBInstanceRequest & WithEngine(const Aws::String &value)
AWS_DOCDB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector