AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyClusterSnapshotRequest.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 
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 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  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 
67  inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
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 
114  inline ModifyClusterSnapshotRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
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;
145 
146  int m_manualSnapshotRetentionPeriod;
147  bool m_manualSnapshotRetentionPeriodHasBeenSet;
148 
149  bool m_force;
150  bool m_forceHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace Redshift
155 } // namespace Aws
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
ModifyClusterSnapshotRequest & WithForce(bool value)
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
#define AWS_REDSHIFT_API
virtual const char * GetServiceRequestName() const override
ModifyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97