AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_REDSHIFT_API CopyClusterSnapshotRequest() = default;
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
35 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
48 inline const Aws::String& GetSourceSnapshotIdentifier() const { return m_sourceSnapshotIdentifier; }
49 inline bool SourceSnapshotIdentifierHasBeenSet() const { return m_sourceSnapshotIdentifierHasBeenSet; }
50 template<typename SourceSnapshotIdentifierT = Aws::String>
51 void SetSourceSnapshotIdentifier(SourceSnapshotIdentifierT&& value) { m_sourceSnapshotIdentifierHasBeenSet = true; m_sourceSnapshotIdentifier = std::forward<SourceSnapshotIdentifierT>(value); }
52 template<typename SourceSnapshotIdentifierT = Aws::String>
53 CopyClusterSnapshotRequest& WithSourceSnapshotIdentifier(SourceSnapshotIdentifierT&& value) { SetSourceSnapshotIdentifier(std::forward<SourceSnapshotIdentifierT>(value)); return *this;}
55
57
64 inline const Aws::String& GetSourceSnapshotClusterIdentifier() const { return m_sourceSnapshotClusterIdentifier; }
65 inline bool SourceSnapshotClusterIdentifierHasBeenSet() const { return m_sourceSnapshotClusterIdentifierHasBeenSet; }
66 template<typename SourceSnapshotClusterIdentifierT = Aws::String>
67 void SetSourceSnapshotClusterIdentifier(SourceSnapshotClusterIdentifierT&& value) { m_sourceSnapshotClusterIdentifierHasBeenSet = true; m_sourceSnapshotClusterIdentifier = std::forward<SourceSnapshotClusterIdentifierT>(value); }
68 template<typename SourceSnapshotClusterIdentifierT = Aws::String>
69 CopyClusterSnapshotRequest& WithSourceSnapshotClusterIdentifier(SourceSnapshotClusterIdentifierT&& value) { SetSourceSnapshotClusterIdentifier(std::forward<SourceSnapshotClusterIdentifierT>(value)); return *this;}
71
73
81 inline const Aws::String& GetTargetSnapshotIdentifier() const { return m_targetSnapshotIdentifier; }
82 inline bool TargetSnapshotIdentifierHasBeenSet() const { return m_targetSnapshotIdentifierHasBeenSet; }
83 template<typename TargetSnapshotIdentifierT = Aws::String>
84 void SetTargetSnapshotIdentifier(TargetSnapshotIdentifierT&& value) { m_targetSnapshotIdentifierHasBeenSet = true; m_targetSnapshotIdentifier = std::forward<TargetSnapshotIdentifierT>(value); }
85 template<typename TargetSnapshotIdentifierT = Aws::String>
86 CopyClusterSnapshotRequest& WithTargetSnapshotIdentifier(TargetSnapshotIdentifierT&& value) { SetTargetSnapshotIdentifier(std::forward<TargetSnapshotIdentifierT>(value)); return *this;}
88
90
95 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
96 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
97 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
100 private:
101
102 Aws::String m_sourceSnapshotIdentifier;
103 bool m_sourceSnapshotIdentifierHasBeenSet = false;
104
105 Aws::String m_sourceSnapshotClusterIdentifier;
106 bool m_sourceSnapshotClusterIdentifierHasBeenSet = false;
107
108 Aws::String m_targetSnapshotIdentifier;
109 bool m_targetSnapshotIdentifierHasBeenSet = false;
110
111 int m_manualSnapshotRetentionPeriod{0};
112 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Redshift
117} // namespace Aws
void SetSourceSnapshotClusterIdentifier(SourceSnapshotClusterIdentifierT &&value)
void SetTargetSnapshotIdentifier(TargetSnapshotIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(SourceSnapshotIdentifierT &&value)
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(TargetSnapshotIdentifierT &&value)
void SetSourceSnapshotIdentifier(SourceSnapshotIdentifierT &&value)
AWS_REDSHIFT_API CopyClusterSnapshotRequest()=default
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(SourceSnapshotClusterIdentifierT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CopyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String