AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
ModifyClusterSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Redshift {
15namespace Model {
16
20 public:
21 AWS_REDSHIFT_API ModifyClusterSnapshotRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterSnapshot"; }
28
29 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
40 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
41 template <typename SnapshotIdentifierT = Aws::String>
42 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
43 m_snapshotIdentifierHasBeenSet = true;
44 m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
45 }
46 template <typename SnapshotIdentifierT = Aws::String>
48 SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
49 return *this;
50 }
52
54
61 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
62 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
63 inline void SetManualSnapshotRetentionPeriod(int value) {
64 m_manualSnapshotRetentionPeriodHasBeenSet = true;
65 m_manualSnapshotRetentionPeriod = value;
66 }
69 return *this;
70 }
72
74
78 inline bool GetForce() const { return m_force; }
79 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
80 inline void SetForce(bool value) {
81 m_forceHasBeenSet = true;
82 m_force = value;
83 }
85 SetForce(value);
86 return *this;
87 }
89 private:
90 Aws::String m_snapshotIdentifier;
91
92 int m_manualSnapshotRetentionPeriod{0};
93
94 bool m_force{false};
95 bool m_snapshotIdentifierHasBeenSet = false;
96 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
97 bool m_forceHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Redshift
102} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API ModifyClusterSnapshotRequest()=default
ModifyClusterSnapshotRequest & WithManualSnapshotRetentionPeriod(int value)
ModifyClusterSnapshotRequest & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyClusterSnapshotRequest & WithForce(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String