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/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Neptune
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NEPTUNE_API CopyDBClusterSnapshotRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CopyDBClusterSnapshot"; }
33
34 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const Aws::String& GetSourceDBClusterSnapshotIdentifier() const { return m_sourceDBClusterSnapshotIdentifier; }
49 inline bool SourceDBClusterSnapshotIdentifierHasBeenSet() const { return m_sourceDBClusterSnapshotIdentifierHasBeenSet; }
50 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
51 void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::forward<SourceDBClusterSnapshotIdentifierT>(value); }
52 template<typename SourceDBClusterSnapshotIdentifierT = Aws::String>
53 CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT&& value) { SetSourceDBClusterSnapshotIdentifier(std::forward<SourceDBClusterSnapshotIdentifierT>(value)); return *this;}
55
57
65 inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const { return m_targetDBClusterSnapshotIdentifier; }
66 inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
67 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
68 void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::forward<TargetDBClusterSnapshotIdentifierT>(value); }
69 template<typename TargetDBClusterSnapshotIdentifierT = Aws::String>
70 CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT&& value) { SetTargetDBClusterSnapshotIdentifier(std::forward<TargetDBClusterSnapshotIdentifierT>(value)); return *this;}
72
74
91 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
92 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
93 template<typename KmsKeyIdT = Aws::String>
94 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
95 template<typename KmsKeyIdT = Aws::String>
96 CopyDBClusterSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
98
100
103 inline const Aws::String& GetPreSignedUrl() const { return m_preSignedUrl; }
104 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
105 template<typename PreSignedUrlT = Aws::String>
106 void SetPreSignedUrl(PreSignedUrlT&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::forward<PreSignedUrlT>(value); }
107 template<typename PreSignedUrlT = Aws::String>
108 CopyDBClusterSnapshotRequest& WithPreSignedUrl(PreSignedUrlT&& value) { SetPreSignedUrl(std::forward<PreSignedUrlT>(value)); return *this;}
110
112
116 inline bool GetCopyTags() const { return m_copyTags; }
117 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
118 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
119 inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
121
123
126 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Vector<Tag>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Vector<Tag>>
131 CopyDBClusterSnapshotRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsT = Tag>
133 CopyDBClusterSnapshotRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
135
137
140 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
141 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
142 template<typename SourceRegionT = Aws::String>
143 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
144 template<typename SourceRegionT = Aws::String>
145 CopyDBClusterSnapshotRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
147 private:
148
149 Aws::String m_sourceDBClusterSnapshotIdentifier;
150 bool m_sourceDBClusterSnapshotIdentifierHasBeenSet = false;
151
152 Aws::String m_targetDBClusterSnapshotIdentifier;
153 bool m_targetDBClusterSnapshotIdentifierHasBeenSet = false;
154
155 Aws::String m_kmsKeyId;
156 bool m_kmsKeyIdHasBeenSet = false;
157
158 Aws::String m_preSignedUrl;
159 bool m_preSignedUrlHasBeenSet = false;
160
161 bool m_copyTags{false};
162 bool m_copyTagsHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166
167 Aws::String m_sourceRegion;
168 bool m_sourceRegionHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Neptune
173} // namespace Aws
virtual const char * GetServiceRequestName() const override
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
void SetSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
AWS_NEPTUNE_API CopyDBClusterSnapshotRequest()=default
CopyDBClusterSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(PreSignedUrlT &&value)
CopyDBClusterSnapshotRequest & WithSourceRegion(SourceRegionT &&value)
CopyDBClusterSnapshotRequest & WithTags(TagsT &&value)
void SetTargetDBClusterSnapshotIdentifier(TargetDBClusterSnapshotIdentifierT &&value)
CopyDBClusterSnapshotRequest & AddTags(TagsT &&value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(SourceDBClusterSnapshotIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector