AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
BatchModifyClusterSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
21 public:
22 AWS_REDSHIFT_API BatchModifyClusterSnapshotsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchModifyClusterSnapshots"; }
29
30 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::Vector<Aws::String>& GetSnapshotIdentifierList() const { return m_snapshotIdentifierList; }
41 inline bool SnapshotIdentifierListHasBeenSet() const { return m_snapshotIdentifierListHasBeenSet; }
42 template <typename SnapshotIdentifierListT = Aws::Vector<Aws::String>>
43 void SetSnapshotIdentifierList(SnapshotIdentifierListT&& value) {
44 m_snapshotIdentifierListHasBeenSet = true;
45 m_snapshotIdentifierList = std::forward<SnapshotIdentifierListT>(value);
46 }
47 template <typename SnapshotIdentifierListT = Aws::Vector<Aws::String>>
49 SetSnapshotIdentifierList(std::forward<SnapshotIdentifierListT>(value));
50 return *this;
51 }
52 template <typename SnapshotIdentifierListT = Aws::String>
54 m_snapshotIdentifierListHasBeenSet = true;
55 m_snapshotIdentifierList.emplace_back(std::forward<SnapshotIdentifierListT>(value));
56 return *this;
57 }
59
61
70 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
71 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
72 inline void SetManualSnapshotRetentionPeriod(int value) {
73 m_manualSnapshotRetentionPeriodHasBeenSet = true;
74 m_manualSnapshotRetentionPeriod = value;
75 }
78 return *this;
79 }
81
83
87 inline bool GetForce() const { return m_force; }
88 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
89 inline void SetForce(bool value) {
90 m_forceHasBeenSet = true;
91 m_force = value;
92 }
94 SetForce(value);
95 return *this;
96 }
98 private:
99 Aws::Vector<Aws::String> m_snapshotIdentifierList;
100
101 int m_manualSnapshotRetentionPeriod{0};
102
103 bool m_force{false};
104 bool m_snapshotIdentifierListHasBeenSet = false;
105 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
106 bool m_forceHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Redshift
111} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
BatchModifyClusterSnapshotsRequest & WithManualSnapshotRetentionPeriod(int value)
BatchModifyClusterSnapshotsRequest & WithSnapshotIdentifierList(SnapshotIdentifierListT &&value)
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(SnapshotIdentifierListT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector