AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CopyDBSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API CopyDBSnapshotRequest() = default;
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 "CopyDBSnapshot"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
58 inline const Aws::String& GetSourceDBSnapshotIdentifier() const { return m_sourceDBSnapshotIdentifier; }
59 inline bool SourceDBSnapshotIdentifierHasBeenSet() const { return m_sourceDBSnapshotIdentifierHasBeenSet; }
60 template <typename SourceDBSnapshotIdentifierT = Aws::String>
61 void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
62 m_sourceDBSnapshotIdentifierHasBeenSet = true;
63 m_sourceDBSnapshotIdentifier = std::forward<SourceDBSnapshotIdentifierT>(value);
64 }
65 template <typename SourceDBSnapshotIdentifierT = Aws::String>
66 CopyDBSnapshotRequest& WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) {
67 SetSourceDBSnapshotIdentifier(std::forward<SourceDBSnapshotIdentifierT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetTargetDBSnapshotIdentifier() const { return m_targetDBSnapshotIdentifier; }
81 inline bool TargetDBSnapshotIdentifierHasBeenSet() const { return m_targetDBSnapshotIdentifierHasBeenSet; }
82 template <typename TargetDBSnapshotIdentifierT = Aws::String>
83 void SetTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT&& value) {
84 m_targetDBSnapshotIdentifierHasBeenSet = true;
85 m_targetDBSnapshotIdentifier = std::forward<TargetDBSnapshotIdentifierT>(value);
86 }
87 template <typename TargetDBSnapshotIdentifierT = Aws::String>
88 CopyDBSnapshotRequest& WithTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT&& value) {
89 SetTargetDBSnapshotIdentifier(std::forward<TargetDBSnapshotIdentifierT>(value));
90 return *this;
91 }
93
95
112 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
113 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
114 template <typename KmsKeyIdT = Aws::String>
115 void SetKmsKeyId(KmsKeyIdT&& value) {
116 m_kmsKeyIdHasBeenSet = true;
117 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
118 }
119 template <typename KmsKeyIdT = Aws::String>
121 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
122 return *this;
123 }
125
127
128 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template <typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Vector<Tag>>
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsT = Tag>
142 m_tagsHasBeenSet = true;
143 m_tags.emplace_back(std::forward<TagsT>(value));
144 return *this;
145 }
147
149
153 inline bool GetCopyTags() const { return m_copyTags; }
154 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
155 inline void SetCopyTags(bool value) {
156 m_copyTagsHasBeenSet = true;
157 m_copyTags = value;
158 }
160 SetCopyTags(value);
161 return *this;
162 }
164
166
215 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
216 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
217 template <typename PreSignedUrlT = Aws::String>
218 void SetPreSignedUrl(PreSignedUrlT&& value) {
219 m_preSignedUrlHasBeenSet = true;
220 m_preSignedUrl = std::forward<PreSignedUrlT>(value);
221 }
222 template <typename PreSignedUrlT = Aws::String>
223 CopyDBSnapshotRequest& WithPreSignedUrl(PreSignedUrlT&& value) {
224 SetPreSignedUrl(std::forward<PreSignedUrlT>(value));
225 return *this;
226 }
228
230
240 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
241 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
242 template <typename OptionGroupNameT = Aws::String>
243 void SetOptionGroupName(OptionGroupNameT&& value) {
244 m_optionGroupNameHasBeenSet = true;
245 m_optionGroupName = std::forward<OptionGroupNameT>(value);
246 }
247 template <typename OptionGroupNameT = Aws::String>
248 CopyDBSnapshotRequest& WithOptionGroupName(OptionGroupNameT&& value) {
249 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::String& GetTargetCustomAvailabilityZone() const { return m_targetCustomAvailabilityZone; }
260 inline bool TargetCustomAvailabilityZoneHasBeenSet() const { return m_targetCustomAvailabilityZoneHasBeenSet; }
261 template <typename TargetCustomAvailabilityZoneT = Aws::String>
262 void SetTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT&& value) {
263 m_targetCustomAvailabilityZoneHasBeenSet = true;
264 m_targetCustomAvailabilityZone = std::forward<TargetCustomAvailabilityZoneT>(value);
265 }
266 template <typename TargetCustomAvailabilityZoneT = Aws::String>
267 CopyDBSnapshotRequest& WithTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT&& value) {
268 SetTargetCustomAvailabilityZone(std::forward<TargetCustomAvailabilityZoneT>(value));
269 return *this;
270 }
272
274
280 inline const Aws::String& GetSnapshotTarget() const { return m_snapshotTarget; }
281 inline bool SnapshotTargetHasBeenSet() const { return m_snapshotTargetHasBeenSet; }
282 template <typename SnapshotTargetT = Aws::String>
283 void SetSnapshotTarget(SnapshotTargetT&& value) {
284 m_snapshotTargetHasBeenSet = true;
285 m_snapshotTarget = std::forward<SnapshotTargetT>(value);
286 }
287 template <typename SnapshotTargetT = Aws::String>
288 CopyDBSnapshotRequest& WithSnapshotTarget(SnapshotTargetT&& value) {
289 SetSnapshotTarget(std::forward<SnapshotTargetT>(value));
290 return *this;
291 }
293
295
301 inline bool GetCopyOptionGroup() const { return m_copyOptionGroup; }
302 inline bool CopyOptionGroupHasBeenSet() const { return m_copyOptionGroupHasBeenSet; }
303 inline void SetCopyOptionGroup(bool value) {
304 m_copyOptionGroupHasBeenSet = true;
305 m_copyOptionGroup = value;
306 }
308 SetCopyOptionGroup(value);
309 return *this;
310 }
312
314
319 inline const Aws::String& GetSnapshotAvailabilityZone() const { return m_snapshotAvailabilityZone; }
320 inline bool SnapshotAvailabilityZoneHasBeenSet() const { return m_snapshotAvailabilityZoneHasBeenSet; }
321 template <typename SnapshotAvailabilityZoneT = Aws::String>
322 void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
323 m_snapshotAvailabilityZoneHasBeenSet = true;
324 m_snapshotAvailabilityZone = std::forward<SnapshotAvailabilityZoneT>(value);
325 }
326 template <typename SnapshotAvailabilityZoneT = Aws::String>
327 CopyDBSnapshotRequest& WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) {
328 SetSnapshotAvailabilityZone(std::forward<SnapshotAvailabilityZoneT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
338 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
339 template <typename SourceRegionT = Aws::String>
340 void SetSourceRegion(SourceRegionT&& value) {
341 m_sourceRegionHasBeenSet = true;
342 m_sourceRegion = std::forward<SourceRegionT>(value);
343 }
344 template <typename SourceRegionT = Aws::String>
345 CopyDBSnapshotRequest& WithSourceRegion(SourceRegionT&& value) {
346 SetSourceRegion(std::forward<SourceRegionT>(value));
347 return *this;
348 }
350 private:
351 Aws::String m_sourceDBSnapshotIdentifier;
352
353 Aws::String m_targetDBSnapshotIdentifier;
354
355 Aws::String m_kmsKeyId;
356
357 Aws::Vector<Tag> m_tags;
358
359 bool m_copyTags{false};
360
361 Aws::String m_preSignedUrl;
362
363 Aws::String m_optionGroupName;
364
365 Aws::String m_targetCustomAvailabilityZone;
366
367 Aws::String m_snapshotTarget;
368
369 bool m_copyOptionGroup{false};
370
371 Aws::String m_snapshotAvailabilityZone;
372
373 Aws::String m_sourceRegion;
374 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
375 bool m_targetDBSnapshotIdentifierHasBeenSet = false;
376 bool m_kmsKeyIdHasBeenSet = false;
377 bool m_tagsHasBeenSet = false;
378 bool m_copyTagsHasBeenSet = false;
379 bool m_preSignedUrlHasBeenSet = false;
380 bool m_optionGroupNameHasBeenSet = false;
381 bool m_targetCustomAvailabilityZoneHasBeenSet = false;
382 bool m_snapshotTargetHasBeenSet = false;
383 bool m_copyOptionGroupHasBeenSet = false;
384 bool m_snapshotAvailabilityZoneHasBeenSet = false;
385 bool m_sourceRegionHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace RDS
390} // namespace Aws
CopyDBSnapshotRequest & WithOptionGroupName(OptionGroupNameT &&value)
CopyDBSnapshotRequest & WithSourceRegion(SourceRegionT &&value)
CopyDBSnapshotRequest & WithPreSignedUrl(PreSignedUrlT &&value)
const Aws::String & GetSnapshotAvailabilityZone() const
CopyDBSnapshotRequest & AddTags(TagsT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
CopyDBSnapshotRequest & WithCopyTags(bool value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT &&value)
void SetTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT &&value)
void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
CopyDBSnapshotRequest & WithSnapshotTarget(SnapshotTargetT &&value)
AWS_RDS_API CopyDBSnapshotRequest()=default
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT &&value)
void SetSnapshotTarget(SnapshotTargetT &&value)
CopyDBSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyDBSnapshotRequest & WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
const Aws::String & GetOptionGroupName() const
const Aws::String & GetSnapshotTarget() const
virtual const char * GetServiceRequestName() const override
CopyDBSnapshotRequest & WithTags(TagsT &&value)
const Aws::String & GetTargetCustomAvailabilityZone() const
const Aws::String & GetSourceDBSnapshotIdentifier() const
CopyDBSnapshotRequest & WithCopyOptionGroup(bool value)
void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetOptionGroupName(OptionGroupNameT &&value)
const Aws::String & GetTargetDBSnapshotIdentifier() const
CopyDBSnapshotRequest & WithTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector