AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSnapshotIdentifierList(const Aws::Vector<Aws::String>& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = value; }
47 inline void SetSnapshotIdentifierList(Aws::Vector<Aws::String>&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList = std::move(value); }
50 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const Aws::String& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; }
51 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(Aws::String&& value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(std::move(value)); return *this; }
52 inline BatchModifyClusterSnapshotsRequest& AddSnapshotIdentifierList(const char* value) { m_snapshotIdentifierListHasBeenSet = true; m_snapshotIdentifierList.push_back(value); return *this; }
54
56
65 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
66 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
67 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
70
72
76 inline bool GetForce() const{ return m_force; }
77 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
78 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
79 inline BatchModifyClusterSnapshotsRequest& WithForce(bool value) { SetForce(value); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_snapshotIdentifierList;
84 bool m_snapshotIdentifierListHasBeenSet = false;
85
86 int m_manualSnapshotRetentionPeriod;
87 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
88
89 bool m_force;
90 bool m_forceHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Redshift
95} // namespace Aws
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