AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
29 AWS_RDS_API CopyDBClusterSnapshotRequest() = 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 "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 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
62 void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::forward<SourceDBClusterSnapshotIdentifierT>(value); }
63 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
64 CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { SetSourceDBClusterSnapshotIdentifier(std::forward<SourceDBClusterSnapshotIdentifierT>(value)); return *this;}
66
68
76 inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const { return m_targetDBClusterSnapshotIdentifier; }
77 inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
78 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
79 void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::forward<TargetDBClusterSnapshotIdentifierT>(value); }
80 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
81 CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { SetTargetDBClusterSnapshotIdentifier(std::forward<TargetDBClusterSnapshotIdentifierT>(value)); return *this;}
83
85
105 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
106 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
107 template<typename KmsKeyIdT = Aws::String>
108 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
109 template<typename KmsKeyIdT = Aws::String>
110 CopyDBClusterSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
112
114
156 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
157 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
158 template<typename PreSignedUrlT = Aws::String>
159 void SetPreSignedUrl(PreSignedUrlT&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::forward<PreSignedUrlT>(value); }
160 template<typename PreSignedUrlT = Aws::String>
161 CopyDBClusterSnapshotRequest& WithPreSignedUrl(PreSignedUrlT&& value) { SetPreSignedUrl(std::forward<PreSignedUrlT>(value)); return *this;}
163
165
169 inline bool GetCopyTags() const { return m_copyTags; }
170 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
171 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
172 inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
174
176
177 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template<typename TagsT = Aws::Vector<Tag>>
180 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
181 template<typename TagsT = Aws::Vector<Tag>>
182 CopyDBClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
183 template<typename TagsT = Tag>
184 CopyDBClusterSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
186
188
191 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
192 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
193 template<typename SourceRegionT = Aws::String>
194 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
195 template<typename SourceRegionT = Aws::String>
196 CopyDBClusterSnapshotRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
198 private:
199
200 Aws::String m_sourceDBClusterSnapshotIdentifier;
201 bool m_sourceDBClusterSnapshotIdentifierHasBeenSet = false;
202
203 Aws::String m_targetDBClusterSnapshotIdentifier;
204 bool m_targetDBClusterSnapshotIdentifierHasBeenSet = false;
205
206 Aws::String m_kmsKeyId;
207 bool m_kmsKeyIdHasBeenSet = false;
208
209 Aws::String m_preSignedUrl;
210 bool m_preSignedUrlHasBeenSet = false;
211
212 bool m_copyTags{false};
213 bool m_copyTagsHasBeenSet = false;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_tagsHasBeenSet = false;
217
218 Aws::String m_sourceRegion;
219 bool m_sourceRegionHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace RDS
224} // namespace Aws
AWS_RDS_API Aws::String SerializePayload() const override
CopyDBClusterSnapshotRequest & WithTags(TagsT &&value)
AWS_RDS_API CopyDBClusterSnapshotRequest()=default
virtual const char * GetServiceRequestName() const override
CopyDBClusterSnapshotRequest & WithPreSignedUrl(PreSignedUrlT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & AddTags(TagsT &&value)
void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
CopyDBClusterSnapshotRequest & WithSourceRegion(SourceRegionT &&value)
void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector