AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ModifyClusterSnapshotRequest.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
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterSnapshot"; }
31
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
42 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
43
47 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
48
52 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
53
57 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
58
62 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
63
68
72 inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
73
77 inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
78
79
87 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
88
96 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
97
105 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
106
115
116
121 inline bool GetForce() const{ return m_force; }
122
127 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
128
133 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
134
139 inline ModifyClusterSnapshotRequest& WithForce(bool value) { SetForce(value); return *this;}
140
141 private:
142
143 Aws::String m_snapshotIdentifier;
144 bool m_snapshotIdentifierHasBeenSet = false;
145
146 int m_manualSnapshotRetentionPeriod;
147 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
148
149 bool m_force;
150 bool m_forceHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Redshift
155} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ModifyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
ModifyClusterSnapshotRequest & WithForce(bool value)
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String