AWS SDK for C++  1.9.109
AWS SDK for C++
CopyClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace 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 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  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 
82  inline CopyClusterSnapshotRequest& WithSourceSnapshotIdentifier(const Aws::String& value) { SetSourceSnapshotIdentifier(value); return *this;}
83 
89  inline CopyClusterSnapshotRequest& WithSourceSnapshotIdentifier(Aws::String&& value) { SetSourceSnapshotIdentifier(std::move(value)); return *this;}
90 
96  inline CopyClusterSnapshotRequest& WithSourceSnapshotIdentifier(const char* value) { SetSourceSnapshotIdentifier(value); return *this;}
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 
151  inline CopyClusterSnapshotRequest& WithSourceSnapshotClusterIdentifier(const Aws::String& value) { SetSourceSnapshotClusterIdentifier(value); return *this;}
152 
160  inline CopyClusterSnapshotRequest& WithSourceSnapshotClusterIdentifier(Aws::String&& value) { SetSourceSnapshotClusterIdentifier(std::move(value)); return *this;}
161 
169  inline CopyClusterSnapshotRequest& WithSourceSnapshotClusterIdentifier(const char* value) { SetSourceSnapshotClusterIdentifier(value); return *this;}
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 
230  inline CopyClusterSnapshotRequest& WithTargetSnapshotIdentifier(const Aws::String& value) { SetTargetSnapshotIdentifier(value); return *this;}
231 
240  inline CopyClusterSnapshotRequest& WithTargetSnapshotIdentifier(Aws::String&& value) { SetTargetSnapshotIdentifier(std::move(value)); return *this;}
241 
250  inline CopyClusterSnapshotRequest& WithTargetSnapshotIdentifier(const char* value) { SetTargetSnapshotIdentifier(value); return *this;}
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 
279  inline CopyClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
280 
281  private:
282 
283  Aws::String m_sourceSnapshotIdentifier;
284  bool m_sourceSnapshotIdentifierHasBeenSet;
285 
286  Aws::String m_sourceSnapshotClusterIdentifier;
287  bool m_sourceSnapshotClusterIdentifierHasBeenSet;
288 
289  Aws::String m_targetSnapshotIdentifier;
290  bool m_targetSnapshotIdentifierHasBeenSet;
291 
292  int m_manualSnapshotRetentionPeriod;
293  bool m_manualSnapshotRetentionPeriodHasBeenSet;
294  };
295 
296 } // namespace Model
297 } // namespace Redshift
298 } // namespace Aws
Aws::Redshift::Model::CopyClusterSnapshotRequest::SourceSnapshotIdentifierHasBeenSet
bool SourceSnapshotIdentifierHasBeenSet() const
Definition: CopyClusterSnapshotRequest.h:54
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotIdentifier
void SetSourceSnapshotIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:75
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CopyClusterSnapshotRequest::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: CopyClusterSnapshotRequest.h:265
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotClusterIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:160
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotClusterIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:169
Aws::Redshift::Model::CopyClusterSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CopyClusterSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithTargetSnapshotIdentifier
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:240
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:96
RedshiftRequest.h
Aws::Redshift::Model::CopyClusterSnapshotRequest::GetTargetSnapshotIdentifier
const Aws::String & GetTargetSnapshotIdentifier() const
Definition: CopyClusterSnapshotRequest.h:180
Aws::Redshift::Model::CopyClusterSnapshotRequest::GetSourceSnapshotClusterIdentifier
const Aws::String & GetSourceSnapshotClusterIdentifier() const
Definition: CopyClusterSnapshotRequest.h:106
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithTargetSnapshotIdentifier
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:250
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithManualSnapshotRetentionPeriod
CopyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
Definition: CopyClusterSnapshotRequest.h:279
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:89
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetTargetSnapshotIdentifier
void SetTargetSnapshotIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:220
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotClusterIdentifier
void SetSourceSnapshotClusterIdentifier(const char *value)
Definition: CopyClusterSnapshotRequest.h:142
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotIdentifier
void SetSourceSnapshotIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:68
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotClusterIdentifier
void SetSourceSnapshotClusterIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:133
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: CopyClusterSnapshotRequest.h:272
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetTargetSnapshotIdentifier
void SetTargetSnapshotIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:200
Aws::Redshift::Model::CopyClusterSnapshotRequest::SourceSnapshotClusterIdentifierHasBeenSet
bool SourceSnapshotClusterIdentifierHasBeenSet() const
Definition: CopyClusterSnapshotRequest.h:115
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotClusterIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotClusterIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:151
Aws::Redshift::Model::CopyClusterSnapshotRequest::TargetSnapshotIdentifierHasBeenSet
bool TargetSnapshotIdentifierHasBeenSet() const
Definition: CopyClusterSnapshotRequest.h:190
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithSourceSnapshotIdentifier
CopyClusterSnapshotRequest & WithSourceSnapshotIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::CopyClusterSnapshotRequest::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: CopyClusterSnapshotRequest.h:258
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetTargetSnapshotIdentifier
void SetTargetSnapshotIdentifier(Aws::String &&value)
Definition: CopyClusterSnapshotRequest.h:210
Aws::Redshift::Model::CopyClusterSnapshotRequest::CopyClusterSnapshotRequest
CopyClusterSnapshotRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotIdentifier
void SetSourceSnapshotIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:61
Aws::Redshift::Model::CopyClusterSnapshotRequest::WithTargetSnapshotIdentifier
CopyClusterSnapshotRequest & WithTargetSnapshotIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:230
Aws::Redshift::Model::CopyClusterSnapshotRequest::SetSourceSnapshotClusterIdentifier
void SetSourceSnapshotClusterIdentifier(const Aws::String &value)
Definition: CopyClusterSnapshotRequest.h:124
Aws::Redshift::Model::CopyClusterSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopyClusterSnapshotRequest.h:33
Aws::Redshift::Model::CopyClusterSnapshotRequest::GetSourceSnapshotIdentifier
const Aws::String & GetSourceSnapshotIdentifier() const
Definition: CopyClusterSnapshotRequest.h:47
Aws::Redshift::Model::CopyClusterSnapshotRequest
Definition: CopyClusterSnapshotRequest.h:25