AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RelationalDatabaseSnapshot.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_LIGHTSAIL_API RelationalDatabaseSnapshot();
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline RelationalDatabaseSnapshot& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline RelationalDatabaseSnapshot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline RelationalDatabaseSnapshot& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline RelationalDatabaseSnapshot& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline RelationalDatabaseSnapshot& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline RelationalDatabaseSnapshot& WithArn(const char* value) { SetArn(value); return *this;}
72
74
80 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
81 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
82 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
83 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
84 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
85 inline RelationalDatabaseSnapshot& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
86 inline RelationalDatabaseSnapshot& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
87 inline RelationalDatabaseSnapshot& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
95 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
96 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
97 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
98 inline RelationalDatabaseSnapshot& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
99 inline RelationalDatabaseSnapshot& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
101
103
107 inline const ResourceLocation& GetLocation() const{ return m_location; }
108 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
109 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
110 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
111 inline RelationalDatabaseSnapshot& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
112 inline RelationalDatabaseSnapshot& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
114
116
119 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
120 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
121 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
122 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
123 inline RelationalDatabaseSnapshot& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
124 inline RelationalDatabaseSnapshot& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
126
128
134 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline RelationalDatabaseSnapshot& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
139 inline RelationalDatabaseSnapshot& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
140 inline RelationalDatabaseSnapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
141 inline RelationalDatabaseSnapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::String& GetEngine() const{ return m_engine; }
149 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
150 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
151 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
152 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
153 inline RelationalDatabaseSnapshot& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
154 inline RelationalDatabaseSnapshot& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
155 inline RelationalDatabaseSnapshot& WithEngine(const char* value) { SetEngine(value); return *this;}
157
159
163 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
164 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
165 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
166 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
167 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
168 inline RelationalDatabaseSnapshot& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
169 inline RelationalDatabaseSnapshot& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
170 inline RelationalDatabaseSnapshot& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
172
174
178 inline int GetSizeInGb() const{ return m_sizeInGb; }
179 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
180 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
181 inline RelationalDatabaseSnapshot& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
183
185
188 inline const Aws::String& GetState() const{ return m_state; }
189 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
190 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
191 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
192 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
193 inline RelationalDatabaseSnapshot& WithState(const Aws::String& value) { SetState(value); return *this;}
194 inline RelationalDatabaseSnapshot& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
195 inline RelationalDatabaseSnapshot& WithState(const char* value) { SetState(value); return *this;}
197
199
203 inline const Aws::String& GetFromRelationalDatabaseName() const{ return m_fromRelationalDatabaseName; }
204 inline bool FromRelationalDatabaseNameHasBeenSet() const { return m_fromRelationalDatabaseNameHasBeenSet; }
205 inline void SetFromRelationalDatabaseName(const Aws::String& value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName = value; }
206 inline void SetFromRelationalDatabaseName(Aws::String&& value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName = std::move(value); }
207 inline void SetFromRelationalDatabaseName(const char* value) { m_fromRelationalDatabaseNameHasBeenSet = true; m_fromRelationalDatabaseName.assign(value); }
212
214
218 inline const Aws::String& GetFromRelationalDatabaseArn() const{ return m_fromRelationalDatabaseArn; }
219 inline bool FromRelationalDatabaseArnHasBeenSet() const { return m_fromRelationalDatabaseArnHasBeenSet; }
220 inline void SetFromRelationalDatabaseArn(const Aws::String& value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn = value; }
221 inline void SetFromRelationalDatabaseArn(Aws::String&& value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn = std::move(value); }
222 inline void SetFromRelationalDatabaseArn(const char* value) { m_fromRelationalDatabaseArnHasBeenSet = true; m_fromRelationalDatabaseArn.assign(value); }
227
229
233 inline const Aws::String& GetFromRelationalDatabaseBundleId() const{ return m_fromRelationalDatabaseBundleId; }
234 inline bool FromRelationalDatabaseBundleIdHasBeenSet() const { return m_fromRelationalDatabaseBundleIdHasBeenSet; }
235 inline void SetFromRelationalDatabaseBundleId(const Aws::String& value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId = value; }
236 inline void SetFromRelationalDatabaseBundleId(Aws::String&& value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId = std::move(value); }
237 inline void SetFromRelationalDatabaseBundleId(const char* value) { m_fromRelationalDatabaseBundleIdHasBeenSet = true; m_fromRelationalDatabaseBundleId.assign(value); }
242
244
248 inline const Aws::String& GetFromRelationalDatabaseBlueprintId() const{ return m_fromRelationalDatabaseBlueprintId; }
249 inline bool FromRelationalDatabaseBlueprintIdHasBeenSet() const { return m_fromRelationalDatabaseBlueprintIdHasBeenSet; }
250 inline void SetFromRelationalDatabaseBlueprintId(const Aws::String& value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId = value; }
251 inline void SetFromRelationalDatabaseBlueprintId(Aws::String&& value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId = std::move(value); }
252 inline void SetFromRelationalDatabaseBlueprintId(const char* value) { m_fromRelationalDatabaseBlueprintIdHasBeenSet = true; m_fromRelationalDatabaseBlueprintId.assign(value); }
257 private:
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 Aws::String m_arn;
263 bool m_arnHasBeenSet = false;
264
265 Aws::String m_supportCode;
266 bool m_supportCodeHasBeenSet = false;
267
268 Aws::Utils::DateTime m_createdAt;
269 bool m_createdAtHasBeenSet = false;
270
271 ResourceLocation m_location;
272 bool m_locationHasBeenSet = false;
273
274 ResourceType m_resourceType;
275 bool m_resourceTypeHasBeenSet = false;
276
277 Aws::Vector<Tag> m_tags;
278 bool m_tagsHasBeenSet = false;
279
280 Aws::String m_engine;
281 bool m_engineHasBeenSet = false;
282
283 Aws::String m_engineVersion;
284 bool m_engineVersionHasBeenSet = false;
285
286 int m_sizeInGb;
287 bool m_sizeInGbHasBeenSet = false;
288
289 Aws::String m_state;
290 bool m_stateHasBeenSet = false;
291
292 Aws::String m_fromRelationalDatabaseName;
293 bool m_fromRelationalDatabaseNameHasBeenSet = false;
294
295 Aws::String m_fromRelationalDatabaseArn;
296 bool m_fromRelationalDatabaseArnHasBeenSet = false;
297
298 Aws::String m_fromRelationalDatabaseBundleId;
299 bool m_fromRelationalDatabaseBundleIdHasBeenSet = false;
300
301 Aws::String m_fromRelationalDatabaseBlueprintId;
302 bool m_fromRelationalDatabaseBlueprintIdHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace Lightsail
307} // namespace Aws
RelationalDatabaseSnapshot & WithFromRelationalDatabaseName(const Aws::String &value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBundleId(const char *value)
RelationalDatabaseSnapshot & WithName(const char *value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseArn(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBlueprintId(Aws::String &&value)
RelationalDatabaseSnapshot & AddTags(Tag &&value)
RelationalDatabaseSnapshot & WithName(const Aws::String &value)
AWS_LIGHTSAIL_API RelationalDatabaseSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
RelationalDatabaseSnapshot & WithArn(const Aws::String &value)
AWS_LIGHTSAIL_API RelationalDatabaseSnapshot(Aws::Utils::Json::JsonView jsonValue)
RelationalDatabaseSnapshot & WithLocation(ResourceLocation &&value)
RelationalDatabaseSnapshot & WithEngineVersion(const Aws::String &value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseName(const char *value)
RelationalDatabaseSnapshot & WithEngine(Aws::String &&value)
RelationalDatabaseSnapshot & WithLocation(const ResourceLocation &value)
RelationalDatabaseSnapshot & WithState(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
RelationalDatabaseSnapshot & WithEngine(const Aws::String &value)
RelationalDatabaseSnapshot & WithSupportCode(Aws::String &&value)
RelationalDatabaseSnapshot & WithState(const char *value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBundleId(Aws::String &&value)
RelationalDatabaseSnapshot & WithEngineVersion(const char *value)
RelationalDatabaseSnapshot & WithSupportCode(const Aws::String &value)
RelationalDatabaseSnapshot & WithEngineVersion(Aws::String &&value)
RelationalDatabaseSnapshot & WithTags(Aws::Vector< Tag > &&value)
RelationalDatabaseSnapshot & WithResourceType(ResourceType &&value)
RelationalDatabaseSnapshot & WithState(Aws::String &&value)
RelationalDatabaseSnapshot & WithResourceType(const ResourceType &value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseArn(const Aws::String &value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBundleId(const Aws::String &value)
RelationalDatabaseSnapshot & WithTags(const Aws::Vector< Tag > &value)
RelationalDatabaseSnapshot & WithCreatedAt(const Aws::Utils::DateTime &value)
RelationalDatabaseSnapshot & WithArn(Aws::String &&value)
RelationalDatabaseSnapshot & WithCreatedAt(Aws::Utils::DateTime &&value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBlueprintId(const char *value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseBlueprintId(const Aws::String &value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseArn(const char *value)
RelationalDatabaseSnapshot & WithArn(const char *value)
RelationalDatabaseSnapshot & WithEngine(const char *value)
RelationalDatabaseSnapshot & WithFromRelationalDatabaseName(Aws::String &&value)
RelationalDatabaseSnapshot & AddTags(const Tag &value)
RelationalDatabaseSnapshot & WithName(Aws::String &&value)
RelationalDatabaseSnapshot & WithSupportCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue