AWS SDK for C++  1.9.158
AWS SDK for C++
DeleteClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeleteCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
49  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
50 
58  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
59 
67  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
68 
76  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
77 
85  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
86 
94  inline DeleteClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
95 
103  inline DeleteClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
104 
112  inline DeleteClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
113 
114 
123  inline bool GetSkipFinalClusterSnapshot() const{ return m_skipFinalClusterSnapshot; }
124 
133  inline bool SkipFinalClusterSnapshotHasBeenSet() const { return m_skipFinalClusterSnapshotHasBeenSet; }
134 
143  inline void SetSkipFinalClusterSnapshot(bool value) { m_skipFinalClusterSnapshotHasBeenSet = true; m_skipFinalClusterSnapshot = value; }
144 
153  inline DeleteClusterRequest& WithSkipFinalClusterSnapshot(bool value) { SetSkipFinalClusterSnapshot(value); return *this;}
154 
155 
164  inline const Aws::String& GetFinalClusterSnapshotIdentifier() const{ return m_finalClusterSnapshotIdentifier; }
165 
174  inline bool FinalClusterSnapshotIdentifierHasBeenSet() const { return m_finalClusterSnapshotIdentifierHasBeenSet; }
175 
184  inline void SetFinalClusterSnapshotIdentifier(const Aws::String& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = value; }
185 
194  inline void SetFinalClusterSnapshotIdentifier(Aws::String&& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = std::move(value); }
195 
204  inline void SetFinalClusterSnapshotIdentifier(const char* value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier.assign(value); }
205 
214  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(const Aws::String& value) { SetFinalClusterSnapshotIdentifier(value); return *this;}
215 
224  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(Aws::String&& value) { SetFinalClusterSnapshotIdentifier(std::move(value)); return *this;}
225 
234  inline DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(const char* value) { SetFinalClusterSnapshotIdentifier(value); return *this;}
235 
236 
242  inline int GetFinalClusterSnapshotRetentionPeriod() const{ return m_finalClusterSnapshotRetentionPeriod; }
243 
249  inline bool FinalClusterSnapshotRetentionPeriodHasBeenSet() const { return m_finalClusterSnapshotRetentionPeriodHasBeenSet; }
250 
256  inline void SetFinalClusterSnapshotRetentionPeriod(int value) { m_finalClusterSnapshotRetentionPeriodHasBeenSet = true; m_finalClusterSnapshotRetentionPeriod = value; }
257 
263  inline DeleteClusterRequest& WithFinalClusterSnapshotRetentionPeriod(int value) { SetFinalClusterSnapshotRetentionPeriod(value); return *this;}
264 
265  private:
266 
267  Aws::String m_clusterIdentifier;
268  bool m_clusterIdentifierHasBeenSet;
269 
270  bool m_skipFinalClusterSnapshot;
271  bool m_skipFinalClusterSnapshotHasBeenSet;
272 
273  Aws::String m_finalClusterSnapshotIdentifier;
274  bool m_finalClusterSnapshotIdentifierHasBeenSet;
275 
276  int m_finalClusterSnapshotRetentionPeriod;
277  bool m_finalClusterSnapshotRetentionPeriodHasBeenSet;
278  };
279 
280 } // namespace Model
281 } // namespace Redshift
282 } // namespace Aws
Aws::Redshift::Model::DeleteClusterRequest::SetFinalClusterSnapshotIdentifier
void SetFinalClusterSnapshotIdentifier(const Aws::String &value)
Definition: DeleteClusterRequest.h:184
Aws::Redshift::Model::DeleteClusterRequest::WithClusterIdentifier
DeleteClusterRequest & WithClusterIdentifier(const Aws::String &value)
Definition: DeleteClusterRequest.h:94
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DeleteClusterRequest::WithFinalClusterSnapshotIdentifier
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const char *value)
Definition: DeleteClusterRequest.h:234
Aws::Redshift::Model::DeleteClusterRequest::GetFinalClusterSnapshotIdentifier
const Aws::String & GetFinalClusterSnapshotIdentifier() const
Definition: DeleteClusterRequest.h:164
Aws::Redshift::Model::DeleteClusterRequest::WithFinalClusterSnapshotIdentifier
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const Aws::String &value)
Definition: DeleteClusterRequest.h:214
Aws::Redshift::Model::DeleteClusterRequest::FinalClusterSnapshotRetentionPeriodHasBeenSet
bool FinalClusterSnapshotRetentionPeriodHasBeenSet() const
Definition: DeleteClusterRequest.h:249
Aws::Redshift::Model::DeleteClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
RedshiftRequest.h
Aws::Redshift::Model::DeleteClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DeleteClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteClusterRequest.h:33
Aws::Redshift::Model::DeleteClusterRequest::SetFinalClusterSnapshotRetentionPeriod
void SetFinalClusterSnapshotRetentionPeriod(int value)
Definition: DeleteClusterRequest.h:256
Aws::Redshift::Model::DeleteClusterRequest::SetSkipFinalClusterSnapshot
void SetSkipFinalClusterSnapshot(bool value)
Definition: DeleteClusterRequest.h:143
Aws::Redshift::Model::DeleteClusterRequest::FinalClusterSnapshotIdentifierHasBeenSet
bool FinalClusterSnapshotIdentifierHasBeenSet() const
Definition: DeleteClusterRequest.h:174
Aws::Redshift::Model::DeleteClusterRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: DeleteClusterRequest.h:58
Aws::Redshift::Model::DeleteClusterRequest::SetFinalClusterSnapshotIdentifier
void SetFinalClusterSnapshotIdentifier(Aws::String &&value)
Definition: DeleteClusterRequest.h:194
Aws::Redshift::Model::DeleteClusterRequest::DeleteClusterRequest
DeleteClusterRequest()
Aws::Redshift::Model::DeleteClusterRequest::GetSkipFinalClusterSnapshot
bool GetSkipFinalClusterSnapshot() const
Definition: DeleteClusterRequest.h:123
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::DeleteClusterRequest::GetFinalClusterSnapshotRetentionPeriod
int GetFinalClusterSnapshotRetentionPeriod() const
Definition: DeleteClusterRequest.h:242
Aws::Redshift::Model::DeleteClusterRequest::SetFinalClusterSnapshotIdentifier
void SetFinalClusterSnapshotIdentifier(const char *value)
Definition: DeleteClusterRequest.h:204
Aws::Redshift::Model::DeleteClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: DeleteClusterRequest.h:76
Aws::Redshift::Model::DeleteClusterRequest::SkipFinalClusterSnapshotHasBeenSet
bool SkipFinalClusterSnapshotHasBeenSet() const
Definition: DeleteClusterRequest.h:133
Aws::Redshift::Model::DeleteClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: DeleteClusterRequest.h:85
Aws::Redshift::Model::DeleteClusterRequest::WithSkipFinalClusterSnapshot
DeleteClusterRequest & WithSkipFinalClusterSnapshot(bool value)
Definition: DeleteClusterRequest.h:153
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::DeleteClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: DeleteClusterRequest.h:67
Aws::Redshift::Model::DeleteClusterRequest::WithClusterIdentifier
DeleteClusterRequest & WithClusterIdentifier(Aws::String &&value)
Definition: DeleteClusterRequest.h:103
Aws::Redshift::Model::DeleteClusterRequest
Definition: DeleteClusterRequest.h:25
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DeleteClusterRequest::WithFinalClusterSnapshotIdentifier
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(Aws::String &&value)
Definition: DeleteClusterRequest.h:224
Aws::Redshift::Model::DeleteClusterRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: DeleteClusterRequest.h:49
Aws::Redshift::Model::DeleteClusterRequest::WithFinalClusterSnapshotRetentionPeriod
DeleteClusterRequest & WithFinalClusterSnapshotRetentionPeriod(int value)
Definition: DeleteClusterRequest.h:263
Aws::Redshift::Model::DeleteClusterRequest::WithClusterIdentifier
DeleteClusterRequest & WithClusterIdentifier(const char *value)
Definition: DeleteClusterRequest.h:112