AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyDBClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DOCDB_API CopyDBClusterSnapshotRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CopyDBClusterSnapshot"; }
37
38 AWS_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
55 inline const Aws::String& GetSourceDBClusterSnapshotIdentifier() const { return m_sourceDBClusterSnapshotIdentifier; }
56 inline bool SourceDBClusterSnapshotIdentifierHasBeenSet() const { return m_sourceDBClusterSnapshotIdentifierHasBeenSet; }
57 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
58 void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::forward<SourceDBClusterSnapshotIdentifierT>(value); }
59 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
60 CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { SetSourceDBClusterSnapshotIdentifier(std::forward<SourceDBClusterSnapshotIdentifierT>(value)); return *this;}
62
64
72 inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const { return m_targetDBClusterSnapshotIdentifier; }
73 inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
74 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
75 void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::forward<TargetDBClusterSnapshotIdentifierT>(value); }
76 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
77 CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { SetTargetDBClusterSnapshotIdentifier(std::forward<TargetDBClusterSnapshotIdentifierT>(value)); return *this;}
79
81
100 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
101 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
102 template<typename KmsKeyIdT = Aws::String>
103 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
104 template<typename KmsKeyIdT = Aws::String>
105 CopyDBClusterSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
107
109
137 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
138 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
139 template<typename PreSignedUrlT = Aws::String>
140 void SetPreSignedUrl(PreSignedUrlT&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::forward<PreSignedUrlT>(value); }
141 template<typename PreSignedUrlT = Aws::String>
142 CopyDBClusterSnapshotRequest& WithPreSignedUrl(PreSignedUrlT&& value) { SetPreSignedUrl(std::forward<PreSignedUrlT>(value)); return *this;}
144
146
151 inline bool GetCopyTags() const { return m_copyTags; }
152 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
153 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
154 inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
156
158
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Vector<Tag>>
166 CopyDBClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsT = Tag>
168 CopyDBClusterSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
170
172
175 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
176 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
177 template<typename SourceRegionT = Aws::String>
178 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
179 template<typename SourceRegionT = Aws::String>
180 CopyDBClusterSnapshotRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
182 private:
183
184 Aws::String m_sourceDBClusterSnapshotIdentifier;
185 bool m_sourceDBClusterSnapshotIdentifierHasBeenSet = false;
186
187 Aws::String m_targetDBClusterSnapshotIdentifier;
188 bool m_targetDBClusterSnapshotIdentifierHasBeenSet = false;
189
190 Aws::String m_kmsKeyId;
191 bool m_kmsKeyIdHasBeenSet = false;
192
193 Aws::String m_preSignedUrl;
194 bool m_preSignedUrlHasBeenSet = false;
195
196 bool m_copyTags{false};
197 bool m_copyTagsHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tags;
200 bool m_tagsHasBeenSet = false;
201
202 Aws::String m_sourceRegion;
203 bool m_sourceRegionHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace DocDB
208} // namespace Aws
CopyDBClusterSnapshotRequest & AddTags(TagsT &&value)
CopyDBClusterSnapshotRequest & WithTags(TagsT &&value)
void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(PreSignedUrlT &&value)
virtual const char * GetServiceRequestName() const override
CopyDBClusterSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyDBClusterSnapshotRequest & WithSourceRegion(SourceRegionT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API CopyDBClusterSnapshotRequest()=default
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector