AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyClusterSnapshotRequest.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
22 {
23 public:
24 AWS_REDSHIFT_API ModifyClusterSnapshotRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
44 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
45 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
46 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
47 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
49 inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
50 inline ModifyClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
52
54
61 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
62 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
63 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
66
68
72 inline bool GetForce() const{ return m_force; }
73 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
74 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
75 inline ModifyClusterSnapshotRequest& WithForce(bool value) { SetForce(value); return *this;}
77 private:
78
79 Aws::String m_snapshotIdentifier;
80 bool m_snapshotIdentifierHasBeenSet = false;
81
82 int m_manualSnapshotRetentionPeriod;
83 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
84
85 bool m_force;
86 bool m_forceHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Redshift
91} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() 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