AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
DeleteClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Redshift {
15namespace Model {
16
23 public:
24 AWS_REDSHIFT_API DeleteClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteCluster"; }
31
32 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
46 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
47 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
48 template <typename ClusterIdentifierT = Aws::String>
49 void SetClusterIdentifier(ClusterIdentifierT&& value) {
50 m_clusterIdentifierHasBeenSet = true;
51 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
52 }
53 template <typename ClusterIdentifierT = Aws::String>
54 DeleteClusterRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
55 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
56 return *this;
57 }
59
61
69 inline bool GetSkipFinalClusterSnapshot() const { return m_skipFinalClusterSnapshot; }
70 inline bool SkipFinalClusterSnapshotHasBeenSet() const { return m_skipFinalClusterSnapshotHasBeenSet; }
71 inline void SetSkipFinalClusterSnapshot(bool value) {
72 m_skipFinalClusterSnapshotHasBeenSet = true;
73 m_skipFinalClusterSnapshot = value;
74 }
77 return *this;
78 }
80
82
90 inline const Aws::String& GetFinalClusterSnapshotIdentifier() const { return m_finalClusterSnapshotIdentifier; }
91 inline bool FinalClusterSnapshotIdentifierHasBeenSet() const { return m_finalClusterSnapshotIdentifierHasBeenSet; }
92 template <typename FinalClusterSnapshotIdentifierT = Aws::String>
93 void SetFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT&& value) {
94 m_finalClusterSnapshotIdentifierHasBeenSet = true;
95 m_finalClusterSnapshotIdentifier = std::forward<FinalClusterSnapshotIdentifierT>(value);
96 }
97 template <typename FinalClusterSnapshotIdentifierT = Aws::String>
98 DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT&& value) {
99 SetFinalClusterSnapshotIdentifier(std::forward<FinalClusterSnapshotIdentifierT>(value));
100 return *this;
101 }
103
105
110 inline int GetFinalClusterSnapshotRetentionPeriod() const { return m_finalClusterSnapshotRetentionPeriod; }
111 inline bool FinalClusterSnapshotRetentionPeriodHasBeenSet() const { return m_finalClusterSnapshotRetentionPeriodHasBeenSet; }
113 m_finalClusterSnapshotRetentionPeriodHasBeenSet = true;
114 m_finalClusterSnapshotRetentionPeriod = value;
115 }
118 return *this;
119 }
121 private:
122 Aws::String m_clusterIdentifier;
123
124 bool m_skipFinalClusterSnapshot{false};
125
126 Aws::String m_finalClusterSnapshotIdentifier;
127
128 int m_finalClusterSnapshotRetentionPeriod{0};
129 bool m_clusterIdentifierHasBeenSet = false;
130 bool m_skipFinalClusterSnapshotHasBeenSet = false;
131 bool m_finalClusterSnapshotIdentifierHasBeenSet = false;
132 bool m_finalClusterSnapshotRetentionPeriodHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Redshift
137} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetClusterIdentifier(ClusterIdentifierT &&value)
DeleteClusterRequest & WithSkipFinalClusterSnapshot(bool value)
void SetFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT &&value)
DeleteClusterRequest & WithFinalClusterSnapshotRetentionPeriod(int value)
const Aws::String & GetFinalClusterSnapshotIdentifier() const
AWS_REDSHIFT_API DeleteClusterRequest()=default
virtual const char * GetServiceRequestName() const override
DeleteClusterRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteClusterRequest & WithFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String