AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
BatchModifyClusterSnapshotsRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchModifyClusterSnapshots"; }
32
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
43 inline const Aws::Vector<Aws::String>& GetSnapshotIdentifierList() const{ return m_snapshotIdentifierList; }
44
48 inline bool SnapshotIdentifierListHasBeenSet() const { return m_snapshotIdentifierListHasBeenSet; }
49
53 inline void SetSnapshotIdentifierList(const Aws::Vector<Aws::String>& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = value; }
54
58 inline void SetSnapshotIdentifierList(Aws::Vector<Aws::String>&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = std::move(value); }
59
64
69
73 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const Aws::String& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; }
74
78 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(Aws::String&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(std::move(value)); return *this; }
79
83 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const char* value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; }
84
85
95 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
96
106 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
107
117 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
118
129
130
135 inline bool GetForce() const{ return m_force; }
136
141 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
142
147 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
148
153 inline BatchModifyClusterSnapshotsRequest& WithForce(bool value) { SetForce(value); return *this;}
154
155 private:
156
157 Aws::Vector<Aws::String> m_snapshotIdentifierList;
158 bool m_snapshotIdentifierListHasBeenSet = false;
159
160 int m_manualSnapshotRetentionPeriod;
161 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
162
163 bool m_force;
164 bool m_forceHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Redshift
169} // namespace Aws
#define AWS_REDSHIFT_API
void SetSnapshotIdentifierList(const Aws::Vector< Aws::String > &value)
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(Aws::String &&value)
BatchModifyClusterSnapshotsRequest & WithSnapshotIdentifierList(Aws::Vector< Aws::String > &&value)
BatchModifyClusterSnapshotsRequest & WithSnapshotIdentifierList(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
BatchModifyClusterSnapshotsRequest & WithManualSnapshotRetentionPeriod(int value)
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector