AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRelationalDatabaseRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRelationalDatabase"; }
33
34 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
47 inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
48 inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
49 inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
50 inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
55
57
64 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
65 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
66 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
67 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
68 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
70 inline CreateRelationalDatabaseRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
71 inline CreateRelationalDatabaseRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
73
75
80 inline const Aws::String& GetRelationalDatabaseBlueprintId() const{ return m_relationalDatabaseBlueprintId; }
81 inline bool RelationalDatabaseBlueprintIdHasBeenSet() const { return m_relationalDatabaseBlueprintIdHasBeenSet; }
82 inline void SetRelationalDatabaseBlueprintId(const Aws::String& value) { m_relationalDatabaseBlueprintIdHasBeenSet = true; m_relationalDatabaseBlueprintId = value; }
83 inline void SetRelationalDatabaseBlueprintId(Aws::String&& value) { m_relationalDatabaseBlueprintIdHasBeenSet = true; m_relationalDatabaseBlueprintId = std::move(value); }
84 inline void SetRelationalDatabaseBlueprintId(const char* value) { m_relationalDatabaseBlueprintIdHasBeenSet = true; m_relationalDatabaseBlueprintId.assign(value); }
89
91
96 inline const Aws::String& GetRelationalDatabaseBundleId() const{ return m_relationalDatabaseBundleId; }
97 inline bool RelationalDatabaseBundleIdHasBeenSet() const { return m_relationalDatabaseBundleIdHasBeenSet; }
98 inline void SetRelationalDatabaseBundleId(const Aws::String& value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId = value; }
99 inline void SetRelationalDatabaseBundleId(Aws::String&& value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId = std::move(value); }
100 inline void SetRelationalDatabaseBundleId(const char* value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId.assign(value); }
105
107
138 inline const Aws::String& GetMasterDatabaseName() const{ return m_masterDatabaseName; }
139 inline bool MasterDatabaseNameHasBeenSet() const { return m_masterDatabaseNameHasBeenSet; }
140 inline void SetMasterDatabaseName(const Aws::String& value) { m_masterDatabaseNameHasBeenSet = true; m_masterDatabaseName = value; }
141 inline void SetMasterDatabaseName(Aws::String&& value) { m_masterDatabaseNameHasBeenSet = true; m_masterDatabaseName = std::move(value); }
142 inline void SetMasterDatabaseName(const char* value) { m_masterDatabaseNameHasBeenSet = true; m_masterDatabaseName.assign(value); }
145 inline CreateRelationalDatabaseRequest& WithMasterDatabaseName(const char* value) { SetMasterDatabaseName(value); return *this;}
147
149
174 inline const Aws::String& GetMasterUsername() const{ return m_masterUsername; }
175 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
176 inline void SetMasterUsername(const Aws::String& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = value; }
177 inline void SetMasterUsername(Aws::String&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = std::move(value); }
178 inline void SetMasterUsername(const char* value) { m_masterUsernameHasBeenSet = true; m_masterUsername.assign(value); }
180 inline CreateRelationalDatabaseRequest& WithMasterUsername(Aws::String&& value) { SetMasterUsername(std::move(value)); return *this;}
181 inline CreateRelationalDatabaseRequest& WithMasterUsername(const char* value) { SetMasterUsername(value); return *this;}
183
185
192 inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; }
193 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
194 inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
195 inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::move(value); }
196 inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); }
199 inline CreateRelationalDatabaseRequest& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;}
201
203
217 inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
218 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
219 inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
220 inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
221 inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
226
228
238 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
239 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
240 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
241 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
242 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
247
249
256 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
257 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
258 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
261
263
268 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
269 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
270 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
271 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
272 inline CreateRelationalDatabaseRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
273 inline CreateRelationalDatabaseRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
274 inline CreateRelationalDatabaseRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
275 inline CreateRelationalDatabaseRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
277 private:
278
279 Aws::String m_relationalDatabaseName;
280 bool m_relationalDatabaseNameHasBeenSet = false;
281
282 Aws::String m_availabilityZone;
283 bool m_availabilityZoneHasBeenSet = false;
284
285 Aws::String m_relationalDatabaseBlueprintId;
286 bool m_relationalDatabaseBlueprintIdHasBeenSet = false;
287
288 Aws::String m_relationalDatabaseBundleId;
289 bool m_relationalDatabaseBundleIdHasBeenSet = false;
290
291 Aws::String m_masterDatabaseName;
292 bool m_masterDatabaseNameHasBeenSet = false;
293
294 Aws::String m_masterUsername;
295 bool m_masterUsernameHasBeenSet = false;
296
297 Aws::String m_masterUserPassword;
298 bool m_masterUserPasswordHasBeenSet = false;
299
300 Aws::String m_preferredBackupWindow;
301 bool m_preferredBackupWindowHasBeenSet = false;
302
303 Aws::String m_preferredMaintenanceWindow;
304 bool m_preferredMaintenanceWindowHasBeenSet = false;
305
306 bool m_publiclyAccessible;
307 bool m_publiclyAccessibleHasBeenSet = false;
308
309 Aws::Vector<Tag> m_tags;
310 bool m_tagsHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace Lightsail
315} // namespace Aws
CreateRelationalDatabaseRequest & WithMasterDatabaseName(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRelationalDatabaseRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRelationalDatabaseRequest & WithMasterUsername(const char *value)
CreateRelationalDatabaseRequest & WithMasterUserPassword(const Aws::String &value)
CreateRelationalDatabaseRequest & WithAvailabilityZone(const char *value)
CreateRelationalDatabaseRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateRelationalDatabaseRequest & AddTags(const Tag &value)
CreateRelationalDatabaseRequest & WithMasterDatabaseName(Aws::String &&value)
CreateRelationalDatabaseRequest & WithMasterUserPassword(const char *value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBundleId(const Aws::String &value)
CreateRelationalDatabaseRequest & WithMasterUsername(const Aws::String &value)
CreateRelationalDatabaseRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBlueprintId(const char *value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBundleId(Aws::String &&value)
CreateRelationalDatabaseRequest & WithAvailabilityZone(const Aws::String &value)
CreateRelationalDatabaseRequest & WithMasterUsername(Aws::String &&value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBlueprintId(const Aws::String &value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseName(Aws::String &&value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBundleId(const char *value)
CreateRelationalDatabaseRequest & WithPreferredBackupWindow(Aws::String &&value)
CreateRelationalDatabaseRequest & WithPubliclyAccessible(bool value)
CreateRelationalDatabaseRequest & WithPreferredBackupWindow(const char *value)
CreateRelationalDatabaseRequest & WithPreferredMaintenanceWindow(const char *value)
CreateRelationalDatabaseRequest & WithPreferredBackupWindow(const Aws::String &value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseName(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateRelationalDatabaseRequest & WithMasterDatabaseName(const Aws::String &value)
CreateRelationalDatabaseRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateRelationalDatabaseRequest & WithAvailabilityZone(Aws::String &&value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseBlueprintId(Aws::String &&value)
CreateRelationalDatabaseRequest & WithRelationalDatabaseName(const Aws::String &value)
CreateRelationalDatabaseRequest & WithMasterUserPassword(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector