AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyDBClusterSnapshotRequest.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:
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 "CopyDBClusterSnapshot"; }
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
59 inline const Aws::String& GetSourceDBClusterSnapshotIdentifier() const{ return m_sourceDBClusterSnapshotIdentifier; }
60 inline bool SourceDBClusterSnapshotIdentifierHasBeenSet() const { return m_sourceDBClusterSnapshotIdentifierHasBeenSet; }
61 inline void SetSourceDBClusterSnapshotIdentifier(const Aws::String& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
62 inline void SetSourceDBClusterSnapshotIdentifier(Aws::String&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::move(value); }
63 inline void SetSourceDBClusterSnapshotIdentifier(const char* value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier.assign(value); }
68
70
78 inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const{ return m_targetDBClusterSnapshotIdentifier; }
79 inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
80 inline void SetTargetDBClusterSnapshotIdentifier(const Aws::String& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
81 inline void SetTargetDBClusterSnapshotIdentifier(Aws::String&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::move(value); }
82 inline void SetTargetDBClusterSnapshotIdentifier(const char* value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier.assign(value); }
87
89
109 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
110 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
111 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
112 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
113 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
114 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
115 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
116 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
118
120
162 inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; }
163 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
164 inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = value; }
165 inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::move(value); }
166 inline void SetPreSignedUrl(const char* value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl.assign(value); }
167 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;}
168 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;}
169 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;}
171
173
177 inline bool GetCopyTags() const{ return m_copyTags; }
178 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
179 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
180 inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
182
184
185 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
188 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
189 inline CopyDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
190 inline CopyDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
191 inline CopyDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
192 inline CopyDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
194
196
199 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
200 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
201 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
202 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
203 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
204 inline CopyDBClusterSnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
205 inline CopyDBClusterSnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
206 inline CopyDBClusterSnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
208 private:
209
210 Aws::String m_sourceDBClusterSnapshotIdentifier;
211 bool m_sourceDBClusterSnapshotIdentifierHasBeenSet = false;
212
213 Aws::String m_targetDBClusterSnapshotIdentifier;
214 bool m_targetDBClusterSnapshotIdentifierHasBeenSet = false;
215
216 Aws::String m_kmsKeyId;
217 bool m_kmsKeyIdHasBeenSet = false;
218
219 Aws::String m_preSignedUrl;
220 bool m_preSignedUrlHasBeenSet = false;
221
222 bool m_copyTags;
223 bool m_copyTagsHasBeenSet = false;
224
225 Aws::Vector<Tag> m_tags;
226 bool m_tagsHasBeenSet = false;
227
228 Aws::String m_sourceRegion;
229 bool m_sourceRegionHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace RDS
234} // namespace Aws
CopyDBClusterSnapshotRequest & AddTags(const Tag &value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(Aws::String &&value)
AWS_RDS_API Aws::String SerializePayload() const override
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const char *value)
CopyDBClusterSnapshotRequest & AddTags(Tag &&value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyDBClusterSnapshotRequest & WithSourceRegion(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & WithSourceRegion(const char *value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(const char *value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(Aws::String &&value)
void SetTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
void SetSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithSourceRegion(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector