AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRelationalDatabaseFromSnapshotRequest.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lightsail/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRelationalDatabaseFromSnapshot"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
48 inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
49 inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
50 inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
51 inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
56
58
65 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
66 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
67 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
68 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
69 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
74
76
83 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
84 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
85 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
88
90
93 inline const Aws::String& GetRelationalDatabaseSnapshotName() const{ return m_relationalDatabaseSnapshotName; }
94 inline bool RelationalDatabaseSnapshotNameHasBeenSet() const { return m_relationalDatabaseSnapshotNameHasBeenSet; }
95 inline void SetRelationalDatabaseSnapshotName(const Aws::String& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = value; }
96 inline void SetRelationalDatabaseSnapshotName(Aws::String&& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = std::move(value); }
97 inline void SetRelationalDatabaseSnapshotName(const char* value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName.assign(value); }
102
104
111 inline const Aws::String& GetRelationalDatabaseBundleId() const{ return m_relationalDatabaseBundleId; }
112 inline bool RelationalDatabaseBundleIdHasBeenSet() const { return m_relationalDatabaseBundleIdHasBeenSet; }
113 inline void SetRelationalDatabaseBundleId(const Aws::String& value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId = value; }
114 inline void SetRelationalDatabaseBundleId(Aws::String&& value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId = std::move(value); }
115 inline void SetRelationalDatabaseBundleId(const char* value) { m_relationalDatabaseBundleIdHasBeenSet = true; m_relationalDatabaseBundleId.assign(value); }
120
122
125 inline const Aws::String& GetSourceRelationalDatabaseName() const{ return m_sourceRelationalDatabaseName; }
126 inline bool SourceRelationalDatabaseNameHasBeenSet() const { return m_sourceRelationalDatabaseNameHasBeenSet; }
127 inline void SetSourceRelationalDatabaseName(const Aws::String& value) { m_sourceRelationalDatabaseNameHasBeenSet = true; m_sourceRelationalDatabaseName = value; }
128 inline void SetSourceRelationalDatabaseName(Aws::String&& value) { m_sourceRelationalDatabaseNameHasBeenSet = true; m_sourceRelationalDatabaseName = std::move(value); }
129 inline void SetSourceRelationalDatabaseName(const char* value) { m_sourceRelationalDatabaseNameHasBeenSet = true; m_sourceRelationalDatabaseName.assign(value); }
134
136
145 inline const Aws::Utils::DateTime& GetRestoreTime() const{ return m_restoreTime; }
146 inline bool RestoreTimeHasBeenSet() const { return m_restoreTimeHasBeenSet; }
147 inline void SetRestoreTime(const Aws::Utils::DateTime& value) { m_restoreTimeHasBeenSet = true; m_restoreTime = value; }
148 inline void SetRestoreTime(Aws::Utils::DateTime&& value) { m_restoreTimeHasBeenSet = true; m_restoreTime = std::move(value); }
152
154
160 inline bool GetUseLatestRestorableTime() const{ return m_useLatestRestorableTime; }
161 inline bool UseLatestRestorableTimeHasBeenSet() const { return m_useLatestRestorableTimeHasBeenSet; }
162 inline void SetUseLatestRestorableTime(bool value) { m_useLatestRestorableTimeHasBeenSet = true; m_useLatestRestorableTime = value; }
165
167
172 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
175 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 inline CreateRelationalDatabaseFromSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
178 inline CreateRelationalDatabaseFromSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
179 inline CreateRelationalDatabaseFromSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
181 private:
182
183 Aws::String m_relationalDatabaseName;
184 bool m_relationalDatabaseNameHasBeenSet = false;
185
186 Aws::String m_availabilityZone;
187 bool m_availabilityZoneHasBeenSet = false;
188
189 bool m_publiclyAccessible;
190 bool m_publiclyAccessibleHasBeenSet = false;
191
192 Aws::String m_relationalDatabaseSnapshotName;
193 bool m_relationalDatabaseSnapshotNameHasBeenSet = false;
194
195 Aws::String m_relationalDatabaseBundleId;
196 bool m_relationalDatabaseBundleIdHasBeenSet = false;
197
198 Aws::String m_sourceRelationalDatabaseName;
199 bool m_sourceRelationalDatabaseNameHasBeenSet = false;
200
201 Aws::Utils::DateTime m_restoreTime;
202 bool m_restoreTimeHasBeenSet = false;
203
204 bool m_useLatestRestorableTime;
205 bool m_useLatestRestorableTimeHasBeenSet = false;
206
207 Aws::Vector<Tag> m_tags;
208 bool m_tagsHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace Lightsail
213} // namespace Aws
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseName(Aws::String &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseBundleId(Aws::String &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithAvailabilityZone(const Aws::String &value)
CreateRelationalDatabaseFromSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithSourceRelationalDatabaseName(const char *value)
CreateRelationalDatabaseFromSnapshotRequest & WithUseLatestRestorableTime(bool value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseName(const Aws::String &value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseBundleId(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateRelationalDatabaseFromSnapshotRequest & WithRestoreTime(Aws::Utils::DateTime &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithSourceRelationalDatabaseName(const Aws::String &value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseName(const char *value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseSnapshotName(Aws::String &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseSnapshotName(const char *value)
CreateRelationalDatabaseFromSnapshotRequest & WithAvailabilityZone(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRelationalDatabaseFromSnapshotRequest & WithSourceRelationalDatabaseName(Aws::String &&value)
CreateRelationalDatabaseFromSnapshotRequest & WithAvailabilityZone(const char *value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseBundleId(const Aws::String &value)
CreateRelationalDatabaseFromSnapshotRequest & WithRestoreTime(const Aws::Utils::DateTime &value)
CreateRelationalDatabaseFromSnapshotRequest & WithRelationalDatabaseSnapshotName(const 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