AWS SDK for C++  1.9.40
AWS SDK for C++
BatchModifyClusterSnapshotsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace 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::String SerializePayload() const override;
34 
35  protected:
36  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 
63  inline BatchModifyClusterSnapshotsRequest& WithSnapshotIdentifierList(const Aws::Vector<Aws::String>& value) { SetSnapshotIdentifierList(value); return *this;}
64 
68  inline BatchModifyClusterSnapshotsRequest& WithSnapshotIdentifierList(Aws::Vector<Aws::String>&& value) { SetSnapshotIdentifierList(std::move(value)); return *this;}
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 
128  inline BatchModifyClusterSnapshotsRequest& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
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;
159 
160  int m_manualSnapshotRetentionPeriod;
161  bool m_manualSnapshotRetentionPeriodHasBeenSet;
162 
163  bool m_force;
164  bool m_forceHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Redshift
169 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::WithSnapshotIdentifierList
BatchModifyClusterSnapshotsRequest & WithSnapshotIdentifierList(Aws::Vector< Aws::String > &&value)
Definition: BatchModifyClusterSnapshotsRequest.h:68
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest
Definition: BatchModifyClusterSnapshotsRequest.h:23
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::WithSnapshotIdentifierList
BatchModifyClusterSnapshotsRequest & WithSnapshotIdentifierList(const Aws::Vector< Aws::String > &value)
Definition: BatchModifyClusterSnapshotsRequest.h:63
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SetForce
void SetForce(bool value)
Definition: BatchModifyClusterSnapshotsRequest.h:147
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::BatchModifyClusterSnapshotsRequest
BatchModifyClusterSnapshotsRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::AddSnapshotIdentifierList
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(const Aws::String &value)
Definition: BatchModifyClusterSnapshotsRequest.h:73
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::WithForce
BatchModifyClusterSnapshotsRequest & WithForce(bool value)
Definition: BatchModifyClusterSnapshotsRequest.h:153
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: BatchModifyClusterSnapshotsRequest.h:106
AWSVector.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SetSnapshotIdentifierList
void SetSnapshotIdentifierList(Aws::Vector< Aws::String > &&value)
Definition: BatchModifyClusterSnapshotsRequest.h:58
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::WithManualSnapshotRetentionPeriod
BatchModifyClusterSnapshotsRequest & WithManualSnapshotRetentionPeriod(int value)
Definition: BatchModifyClusterSnapshotsRequest.h:128
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SetSnapshotIdentifierList
void SetSnapshotIdentifierList(const Aws::Vector< Aws::String > &value)
Definition: BatchModifyClusterSnapshotsRequest.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::GetSnapshotIdentifierList
const Aws::Vector< Aws::String > & GetSnapshotIdentifierList() const
Definition: BatchModifyClusterSnapshotsRequest.h:43
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: BatchModifyClusterSnapshotsRequest.h:141
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::AddSnapshotIdentifierList
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(const char *value)
Definition: BatchModifyClusterSnapshotsRequest.h:83
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchModifyClusterSnapshotsRequest.h:31
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::AddSnapshotIdentifierList
BatchModifyClusterSnapshotsRequest & AddSnapshotIdentifierList(Aws::String &&value)
Definition: BatchModifyClusterSnapshotsRequest.h:78
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: BatchModifyClusterSnapshotsRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::GetForce
bool GetForce() const
Definition: BatchModifyClusterSnapshotsRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::SnapshotIdentifierListHasBeenSet
bool SnapshotIdentifierListHasBeenSet() const
Definition: BatchModifyClusterSnapshotsRequest.h:48
Aws::Redshift::Model::BatchModifyClusterSnapshotsRequest::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: BatchModifyClusterSnapshotsRequest.h:95