AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceDBSnapshotIdentifier(const Aws::String& value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier = value; }
65 inline void SetSourceDBSnapshotIdentifier(Aws::String&& value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier = std::move(value); }
66 inline void SetSourceDBSnapshotIdentifier(const char* value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier.assign(value); }
71
73
80 inline const Aws::String& GetTargetDBSnapshotIdentifier() const{ return m_targetDBSnapshotIdentifier; }
81 inline bool TargetDBSnapshotIdentifierHasBeenSet() const { return m_targetDBSnapshotIdentifierHasBeenSet; }
82 inline void SetTargetDBSnapshotIdentifier(const Aws::String& value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier = value; }
83 inline void SetTargetDBSnapshotIdentifier(Aws::String&& value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier = std::move(value); }
84 inline void SetTargetDBSnapshotIdentifier(const char* value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier.assign(value); }
89
91
108 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
109 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
110 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
111 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
112 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
113 inline CopyDBSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
114 inline CopyDBSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
115 inline CopyDBSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
117
119
120 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CopyDBSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
125 inline CopyDBSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 inline CopyDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 inline CopyDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129
131
135 inline bool GetCopyTags() const{ return m_copyTags; }
136 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
137 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
138 inline CopyDBSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
140
142
191 inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; }
192 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
193 inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = value; }
194 inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::move(value); }
195 inline void SetPreSignedUrl(const char* value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl.assign(value); }
196 inline CopyDBSnapshotRequest& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;}
197 inline CopyDBSnapshotRequest& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;}
198 inline CopyDBSnapshotRequest& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;}
200
202
212 inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
213 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
214 inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
215 inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
216 inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
217 inline CopyDBSnapshotRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
218 inline CopyDBSnapshotRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
219 inline CopyDBSnapshotRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
221
223
227 inline const Aws::String& GetTargetCustomAvailabilityZone() const{ return m_targetCustomAvailabilityZone; }
228 inline bool TargetCustomAvailabilityZoneHasBeenSet() const { return m_targetCustomAvailabilityZoneHasBeenSet; }
229 inline void SetTargetCustomAvailabilityZone(const Aws::String& value) { m_targetCustomAvailabilityZoneHasBeenSet = true; m_targetCustomAvailabilityZone = value; }
230 inline void SetTargetCustomAvailabilityZone(Aws::String&& value) { m_targetCustomAvailabilityZoneHasBeenSet = true; m_targetCustomAvailabilityZone = std::move(value); }
231 inline void SetTargetCustomAvailabilityZone(const char* value) { m_targetCustomAvailabilityZoneHasBeenSet = true; m_targetCustomAvailabilityZone.assign(value); }
236
238
244 inline bool GetCopyOptionGroup() const{ return m_copyOptionGroup; }
245 inline bool CopyOptionGroupHasBeenSet() const { return m_copyOptionGroupHasBeenSet; }
246 inline void SetCopyOptionGroup(bool value) { m_copyOptionGroupHasBeenSet = true; m_copyOptionGroup = value; }
247 inline CopyDBSnapshotRequest& WithCopyOptionGroup(bool value) { SetCopyOptionGroup(value); return *this;}
249
251
254 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
255 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
256 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
257 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
258 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
259 inline CopyDBSnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
260 inline CopyDBSnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
261 inline CopyDBSnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
263 private:
264
265 Aws::String m_sourceDBSnapshotIdentifier;
266 bool m_sourceDBSnapshotIdentifierHasBeenSet = false;
267
268 Aws::String m_targetDBSnapshotIdentifier;
269 bool m_targetDBSnapshotIdentifierHasBeenSet = false;
270
271 Aws::String m_kmsKeyId;
272 bool m_kmsKeyIdHasBeenSet = false;
273
274 Aws::Vector<Tag> m_tags;
275 bool m_tagsHasBeenSet = false;
276
277 bool m_copyTags;
278 bool m_copyTagsHasBeenSet = false;
279
280 Aws::String m_preSignedUrl;
281 bool m_preSignedUrlHasBeenSet = false;
282
283 Aws::String m_optionGroupName;
284 bool m_optionGroupNameHasBeenSet = false;
285
286 Aws::String m_targetCustomAvailabilityZone;
287 bool m_targetCustomAvailabilityZoneHasBeenSet = false;
288
289 bool m_copyOptionGroup;
290 bool m_copyOptionGroupHasBeenSet = false;
291
292 Aws::String m_sourceRegion;
293 bool m_sourceRegionHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace RDS
298} // namespace Aws
CopyDBSnapshotRequest & AddTags(const Tag &value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(Aws::String &&value)
CopyDBSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CopyDBSnapshotRequest & WithOptionGroupName(Aws::String &&value)
CopyDBSnapshotRequest & WithKmsKeyId(const char *value)
CopyDBSnapshotRequest & WithOptionGroupName(const char *value)
void SetTargetCustomAvailabilityZone(const char *value)
CopyDBSnapshotRequest & WithKmsKeyId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_RDS_API Aws::String SerializePayload() const override
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & WithTargetCustomAvailabilityZone(Aws::String &&value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(const Aws::String &value)
CopyDBSnapshotRequest & WithTargetCustomAvailabilityZone(const Aws::String &value)
void SetSourceRegion(const Aws::String &value)
CopyDBSnapshotRequest & WithCopyTags(bool value)
void SetPreSignedUrl(const Aws::String &value)
CopyDBSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
void SetOptionGroupName(const Aws::String &value)
CopyDBSnapshotRequest & WithPreSignedUrl(const char *value)
CopyDBSnapshotRequest & WithSourceRegion(Aws::String &&value)
CopyDBSnapshotRequest & WithPreSignedUrl(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
void SetTargetDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & WithSourceRegion(const char *value)
const Aws::String & GetOptionGroupName() const
void SetTargetDBSnapshotIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetSourceDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(Aws::String &&value)
CopyDBSnapshotRequest & WithOptionGroupName(const Aws::String &value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(const Aws::String &value)
void SetTargetDBSnapshotIdentifier(const Aws::String &value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(const char *value)
void SetTargetCustomAvailabilityZone(const Aws::String &value)
CopyDBSnapshotRequest & WithKmsKeyId(Aws::String &&value)
void SetTargetCustomAvailabilityZone(Aws::String &&value)
const Aws::String & GetTargetCustomAvailabilityZone() const
const Aws::String & GetSourceDBSnapshotIdentifier() const
CopyDBSnapshotRequest & WithCopyOptionGroup(bool value)
CopyDBSnapshotRequest & AddTags(Tag &&value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceDBSnapshotIdentifier(Aws::String &&value)
void SetSourceDBSnapshotIdentifier(const Aws::String &value)
CopyDBSnapshotRequest & WithSourceRegion(const Aws::String &value)
const Aws::String & GetTargetDBSnapshotIdentifier() const
CopyDBSnapshotRequest & WithPreSignedUrl(Aws::String &&value)
CopyDBSnapshotRequest & WithTargetCustomAvailabilityZone(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector