AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CopyClusterSnapshotRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CopyClusterSnapshot"; }
34
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
47 inline const Aws::String& GetSourceSnapshotIdentifier() const{ return m_sourceSnapshotIdentifier; }
48
54 inline bool SourceSnapshotIdentifierHasBeenSet() const { return m_sourceSnapshotIdentifierHasBeenSet; }
55
61 inline void SetSourceSnapshotIdentifier(const Aws::String& value) { m_sourceSnapshotIdentifierHasBeenSet = true; m_sourceSnapshotIdentifier = value; }
62
68 inline void SetSourceSnapshotIdentifier(Aws::String&& value) { m_sourceSnapshotIdentifierHasBeenSet = true; m_sourceSnapshotIdentifier = std::move(value); }
69
75 inline void SetSourceSnapshotIdentifier(const char* value) { m_sourceSnapshotIdentifierHasBeenSet = true; m_sourceSnapshotIdentifier.assign(value); }
76
83
90
97
98
106 inline const Aws::String& GetSourceSnapshotClusterIdentifier() const{ return m_sourceSnapshotClusterIdentifier; }
107
115 inline bool SourceSnapshotClusterIdentifierHasBeenSet() const { return m_sourceSnapshotClusterIdentifierHasBeenSet; }
116
124 inline void SetSourceSnapshotClusterIdentifier(const Aws::String& value) { m_sourceSnapshotClusterIdentifierHasBeenSet = true; m_sourceSnapshotClusterIdentifier = value; }
125
133 inline void SetSourceSnapshotClusterIdentifier(Aws::String&& value) { m_sourceSnapshotClusterIdentifierHasBeenSet = true; m_sourceSnapshotClusterIdentifier = std::move(value); }
134
142 inline void SetSourceSnapshotClusterIdentifier(const char* value) { m_sourceSnapshotClusterIdentifierHasBeenSet = true; m_sourceSnapshotClusterIdentifier.assign(value); }
143
152
161
170
171
180 inline const Aws::String& GetTargetSnapshotIdentifier() const{ return m_targetSnapshotIdentifier; }
181
190 inline bool TargetSnapshotIdentifierHasBeenSet() const { return m_targetSnapshotIdentifierHasBeenSet; }
191
200 inline void SetTargetSnapshotIdentifier(const Aws::String& value) { m_targetSnapshotIdentifierHasBeenSet = true; m_targetSnapshotIdentifier = value; }
201
210 inline void SetTargetSnapshotIdentifier(Aws::String&& value) { m_targetSnapshotIdentifierHasBeenSet = true; m_targetSnapshotIdentifier = std::move(value); }
211
220 inline void SetTargetSnapshotIdentifier(const char* value) { m_targetSnapshotIdentifierHasBeenSet = true; m_targetSnapshotIdentifier.assign(value); }
221
231
241
251
252
258 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
259
265 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
266
272 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
273
280
281 private:
282
283 Aws::String m_sourceSnapshotIdentifier;
284 bool m_sourceSnapshotIdentifierHasBeenSet = false;
285
286 Aws::String m_sourceSnapshotClusterIdentifier;
287 bool m_sourceSnapshotClusterIdentifierHasBeenSet = false;
288
289 Aws::String m_targetSnapshotIdentifier;
290 bool m_targetSnapshotIdentifierHasBeenSet = false;
291
292 int m_manualSnapshotRetentionPeriod;
293 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace Redshift
298} // namespace Aws
#define AWS_REDSHIFT_API
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(const char *value)
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(const char *value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(const Aws::String &value)
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(Aws::String &&value)
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(const Aws::String &value)
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(Aws::String &&value)
CopyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String