AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteClusterRequest.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/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_REDSHIFT_API DeleteClusterRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
50 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
51 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
52 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
53 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
54 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
55 inline DeleteClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
56 inline DeleteClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
57 inline DeleteClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
59
61
69 inline bool GetSkipFinalClusterSnapshot() const{ return m_skipFinalClusterSnapshot; }
70 inline bool SkipFinalClusterSnapshotHasBeenSet() const { return m_skipFinalClusterSnapshotHasBeenSet; }
71 inline void SetSkipFinalClusterSnapshot(bool value) { m_skipFinalClusterSnapshotHasBeenSet = true; m_skipFinalClusterSnapshot = value; }
74
76
84 inline const Aws::String& GetFinalClusterSnapshotIdentifier() const{ return m_finalClusterSnapshotIdentifier; }
85 inline bool FinalClusterSnapshotIdentifierHasBeenSet() const { return m_finalClusterSnapshotIdentifierHasBeenSet; }
86 inline void SetFinalClusterSnapshotIdentifier(const Aws::String& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = value; }
87 inline void SetFinalClusterSnapshotIdentifier(Aws::String&& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = std::move(value); }
88 inline void SetFinalClusterSnapshotIdentifier(const char* value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier.assign(value); }
93
95
100 inline int GetFinalClusterSnapshotRetentionPeriod() const{ return m_finalClusterSnapshotRetentionPeriod; }
101 inline bool FinalClusterSnapshotRetentionPeriodHasBeenSet() const { return m_finalClusterSnapshotRetentionPeriodHasBeenSet; }
102 inline void SetFinalClusterSnapshotRetentionPeriod(int value) { m_finalClusterSnapshotRetentionPeriodHasBeenSet = true; m_finalClusterSnapshotRetentionPeriod = value; }
105 private:
106
107 Aws::String m_clusterIdentifier;
108 bool m_clusterIdentifierHasBeenSet = false;
109
110 bool m_skipFinalClusterSnapshot;
111 bool m_skipFinalClusterSnapshotHasBeenSet = false;
112
113 Aws::String m_finalClusterSnapshotIdentifier;
114 bool m_finalClusterSnapshotIdentifierHasBeenSet = false;
115
116 int m_finalClusterSnapshotRetentionPeriod;
117 bool m_finalClusterSnapshotRetentionPeriodHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Redshift
122} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
DeleteClusterRequest & WithSkipFinalClusterSnapshot(bool value)
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const char *value)
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(const Aws::String &value)
DeleteClusterRequest & WithFinalClusterSnapshotRetentionPeriod(int value)
DeleteClusterRequest & WithClusterIdentifier(const Aws::String &value)
const Aws::String & GetFinalClusterSnapshotIdentifier() const
DeleteClusterRequest & WithClusterIdentifier(Aws::String &&value)
DeleteClusterRequest & WithClusterIdentifier(const char *value)
void SetClusterIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetFinalClusterSnapshotIdentifier(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetFinalClusterSnapshotIdentifier(Aws::String &&value)
void SetFinalClusterSnapshotIdentifier(const char *value)
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String