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/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:
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 inline void SetSourceDBClusterSnapshotIdentifier(const Aws::String& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
51 inline void SetSourceDBClusterSnapshotIdentifier(Aws::String&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = std::move(value); }
52 inline void SetSourceDBClusterSnapshotIdentifier(const char* value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier.assign(value); }
57
59
67 inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const{ return m_targetDBClusterSnapshotIdentifier; }
68 inline bool TargetDBClusterSnapshotIdentifierHasBeenSet() const { return m_targetDBClusterSnapshotIdentifierHasBeenSet; }
69 inline void SetTargetDBClusterSnapshotIdentifier(const Aws::String& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
70 inline void SetTargetDBClusterSnapshotIdentifier(Aws::String&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = std::move(value); }
71 inline void SetTargetDBClusterSnapshotIdentifier(const char* value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier.assign(value); }
76
78
95 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
96 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
97 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
98 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
99 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
100 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
101 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
102 inline CopyDBClusterSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
104
106
109 inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; }
110 inline bool PreSignedUrlHasBeenSet() const { return m_preSignedUrlHasBeenSet; }
111 inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = value; }
112 inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl = std::move(value); }
113 inline void SetPreSignedUrl(const char* value) { m_preSignedUrlHasBeenSet = true; m_preSignedUrl.assign(value); }
114 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;}
115 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;}
116 inline CopyDBClusterSnapshotRequest& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;}
118
120
124 inline bool GetCopyTags() const{ return m_copyTags; }
125 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
126 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
127 inline CopyDBClusterSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
129
131
134 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline CopyDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
139 inline CopyDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
140 inline CopyDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
141 inline CopyDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
149 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
150 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
151 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
152 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
153 inline CopyDBClusterSnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
154 inline CopyDBClusterSnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
155 inline CopyDBClusterSnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
157 private:
158
159 Aws::String m_sourceDBClusterSnapshotIdentifier;
160 bool m_sourceDBClusterSnapshotIdentifierHasBeenSet = false;
161
162 Aws::String m_targetDBClusterSnapshotIdentifier;
163 bool m_targetDBClusterSnapshotIdentifierHasBeenSet = false;
164
165 Aws::String m_kmsKeyId;
166 bool m_kmsKeyIdHasBeenSet = false;
167
168 Aws::String m_preSignedUrl;
169 bool m_preSignedUrlHasBeenSet = false;
170
171 bool m_copyTags;
172 bool m_copyTagsHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176
177 Aws::String m_sourceRegion;
178 bool m_sourceRegionHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Neptune
183} // namespace Aws
CopyDBClusterSnapshotRequest & AddTags(const Tag &value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
CopyDBClusterSnapshotRequest & WithCopyTags(bool value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
CopyDBClusterSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CopyDBClusterSnapshotRequest & AddTags(Tag &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(const Aws::String &value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyDBClusterSnapshotRequest & WithPreSignedUrl(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithKmsKeyId(const char *value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & WithSourceRegion(const char *value)
CopyDBClusterSnapshotRequest & WithSourceRegion(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(Aws::String &&value)
CopyDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CopyDBClusterSnapshotRequest & WithPreSignedUrl(const char *value)
CopyDBClusterSnapshotRequest & WithSourceRegion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector