AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CopyDBSnapshotRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API CopyDBSnapshotRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CopyDBSnapshot"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
62 inline const Aws::String& GetSourceDBSnapshotIdentifier() const { return m_sourceDBSnapshotIdentifier; }
63 inline bool SourceDBSnapshotIdentifierHasBeenSet() const { return m_sourceDBSnapshotIdentifierHasBeenSet; }
64 template<typename SourceDBSnapshotIdentifierT = Aws::String>
65 void SetSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier = std::forward<SourceDBSnapshotIdentifierT>(value); }
66 template<typename SourceDBSnapshotIdentifierT = Aws::String>
67 CopyDBSnapshotRequest& WithSourceDBSnapshotIdentifier(SourceDBSnapshotIdentifierT&& value) { SetSourceDBSnapshotIdentifier(std::forward<SourceDBSnapshotIdentifierT>(value)); return *this;}
69
71
78 inline const Aws::String& GetTargetDBSnapshotIdentifier() const { return m_targetDBSnapshotIdentifier; }
79 inline bool TargetDBSnapshotIdentifierHasBeenSet() const { return m_targetDBSnapshotIdentifierHasBeenSet; }
80 template<typename TargetDBSnapshotIdentifierT = Aws::String>
81 void SetTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT&& value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier = std::forward<TargetDBSnapshotIdentifierT>(value); }
82 template<typename TargetDBSnapshotIdentifierT = Aws::String>
83 CopyDBSnapshotRequest& WithTargetDBSnapshotIdentifier(TargetDBSnapshotIdentifierT&& value) { SetTargetDBSnapshotIdentifier(std::forward<TargetDBSnapshotIdentifierT>(value)); return *this;}
85
87
104 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
105 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
106 template<typename KmsKeyIdT = Aws::String>
107 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
108 template<typename KmsKeyIdT = Aws::String>
109 CopyDBSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
111
113
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Vector<Tag>>
119 CopyDBSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsT = Tag>
121 CopyDBSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
123
125
129 inline bool GetCopyTags() const { return m_copyTags; }
130 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
131 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
132 inline CopyDBSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
134
136
185 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
186 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
187 template<typename PreSignedUrlT = Aws::String>
188 void SetPreSignedUrl(PreSignedUrlT&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::forward<PreSignedUrlT>(value); }
189 template<typename PreSignedUrlT = Aws::String>
190 CopyDBSnapshotRequest& WithPreSignedUrl(PreSignedUrlT&& value) { SetPreSignedUrl(std::forward<PreSignedUrlT>(value)); return *this;}
192
194
204 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
205 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
206 template<typename OptionGroupNameT = Aws::String>
207 void SetOptionGroupName(OptionGroupNameT&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::forward<OptionGroupNameT>(value); }
208 template<typename OptionGroupNameT = Aws::String>
209 CopyDBSnapshotRequest& WithOptionGroupName(OptionGroupNameT&& value) { SetOptionGroupName(std::forward<OptionGroupNameT>(value)); return *this;}
211
213
217 inline const Aws::String& GetTargetCustomAvailabilityZone() const { return m_targetCustomAvailabilityZone; }
218 inline bool TargetCustomAvailabilityZoneHasBeenSet() const { return m_targetCustomAvailabilityZoneHasBeenSet; }
219 template<typename TargetCustomAvailabilityZoneT = Aws::String>
220 void SetTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT&& value) { m_targetCustomAvailabilityZoneHasBeenSet = true; m_targetCustomAvailabilityZone = std::forward<TargetCustomAvailabilityZoneT>(value); }
221 template<typename TargetCustomAvailabilityZoneT = Aws::String>
222 CopyDBSnapshotRequest& WithTargetCustomAvailabilityZone(TargetCustomAvailabilityZoneT&& value) { SetTargetCustomAvailabilityZone(std::forward<TargetCustomAvailabilityZoneT>(value)); return *this;}
224
226
232 inline bool GetCopyOptionGroup() const { return m_copyOptionGroup; }
233 inline bool CopyOptionGroupHasBeenSet() const { return m_copyOptionGroupHasBeenSet; }
234 inline void SetCopyOptionGroup(bool value) { m_copyOptionGroupHasBeenSet = true; m_copyOptionGroup = value; }
235 inline CopyDBSnapshotRequest& WithCopyOptionGroup(bool value) { SetCopyOptionGroup(value); return *this;}
237
239
244 inline const Aws::String& GetSnapshotAvailabilityZone() const { return m_snapshotAvailabilityZone; }
245 inline bool SnapshotAvailabilityZoneHasBeenSet() const { return m_snapshotAvailabilityZoneHasBeenSet; }
246 template<typename SnapshotAvailabilityZoneT = Aws::String>
247 void SetSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) { m_snapshotAvailabilityZoneHasBeenSet = true; m_snapshotAvailabilityZone = std::forward<SnapshotAvailabilityZoneT>(value); }
248 template<typename SnapshotAvailabilityZoneT = Aws::String>
249 CopyDBSnapshotRequest& WithSnapshotAvailabilityZone(SnapshotAvailabilityZoneT&& value) { SetSnapshotAvailabilityZone(std::forward<SnapshotAvailabilityZoneT>(value)); return *this;}
251
253
259 inline const Aws::String& GetSnapshotTarget() const { return m_snapshotTarget; }
260 inline bool SnapshotTargetHasBeenSet() const { return m_snapshotTargetHasBeenSet; }
261 template<typename SnapshotTargetT = Aws::String>
262 void SetSnapshotTarget(SnapshotTargetT&& value) { m_snapshotTargetHasBeenSet = true; m_snapshotTarget = std::forward<SnapshotTargetT>(value); }
263 template<typename SnapshotTargetT = Aws::String>
264 CopyDBSnapshotRequest& WithSnapshotTarget(SnapshotTargetT&& value) { SetSnapshotTarget(std::forward<SnapshotTargetT>(value)); return *this;}
266
268
271 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
272 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
273 template<typename SourceRegionT = Aws::String>
274 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
275 template<typename SourceRegionT = Aws::String>
276 CopyDBSnapshotRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
278 private:
279
280 Aws::String m_sourceDBSnapshotIdentifier;
281 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
282
283 Aws::String m_targetDBSnapshotIdentifier;
284 bool m_targetDBSnapshotIdentifierHasBeenSet = false;
285
286 Aws::String m_kmsKeyId;
287 bool m_kmsKeyIdHasBeenSet = false;
288
289 Aws::Vector<Tag> m_tags;
290 bool m_tagsHasBeenSet = false;
291
292 bool m_copyTags{false};
293 bool m_copyTagsHasBeenSet = false;
294
295 Aws::String m_preSignedUrl;
296 bool m_preSignedUrlHasBeenSet = false;
297
298 Aws::String m_optionGroupName;
299 bool m_optionGroupNameHasBeenSet = false;
300
301 Aws::String m_targetCustomAvailabilityZone;
302 bool m_targetCustomAvailabilityZoneHasBeenSet = false;
303
304 bool m_copyOptionGroup{false};
305 bool m_copyOptionGroupHasBeenSet = false;
306
307 Aws::String m_snapshotAvailabilityZone;
308 bool m_snapshotAvailabilityZoneHasBeenSet = false;
309
310 Aws::String m_snapshotTarget;
311 bool m_snapshotTargetHasBeenSet = false;
312
313 Aws::String m_sourceRegion;
314 bool m_sourceRegionHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace RDS
319} // 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