AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchModifyClusterSnapshotsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFT_API BatchModifyClusterSnapshotsRequest() = default;
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
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetSnapshotIdentifierList() const { return m_snapshotIdentifierList; }
45 inline bool SnapshotIdentifierListHasBeenSet() const { return m_snapshotIdentifierListHasBeenSet; }
46 template<typename SnapshotIdentifierListT = Aws::Vector<Aws::String>>
47 void SetSnapshotIdentifierList(SnapshotIdentifierListT&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = std::forward<SnapshotIdentifierListT>(value); }
48 template<typename SnapshotIdentifierListT = Aws::Vector<Aws::String>>
49 BatchModifyClusterSnapshotsRequest& WithSnapshotIdentifierList(SnapshotIdentifierListT&& value) { SetSnapshotIdentifierList(std::forward<SnapshotIdentifierListT>(value)); return *this;}
50 template<typename SnapshotIdentifierListT = Aws::String>
51 BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(SnapshotIdentifierListT&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.emplace_back(std::forward<SnapshotIdentifierListT>(value)); return *this; }
53
55
64 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
65 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
66 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
69
71
75 inline bool GetForce() const { return m_force; }
76 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
77 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
78 inline BatchModifyClusterSnapshotsRequest& WithForce(bool value) { SetForce(value); return *this;}
80 private:
81
82 Aws::Vector<Aws::String> m_snapshotIdentifierList;
83 bool m_snapshotIdentifierListHasBeenSet = false;
84
85 int m_manualSnapshotRetentionPeriod{0};
86 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
87
88 bool m_force{false};
89 bool m_forceHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Redshift
94} // 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