AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterIdentifierT = Aws::String>
53 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
54 template<typename ClusterIdentifierT = Aws::String>
55 DeleteClusterRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
57
59
67 inline bool GetSkipFinalClusterSnapshot() const { return m_skipFinalClusterSnapshot; }
68 inline bool SkipFinalClusterSnapshotHasBeenSet() const { return m_skipFinalClusterSnapshotHasBeenSet; }
69 inline void SetSkipFinalClusterSnapshot(bool value) { m_skipFinalClusterSnapshotHasBeenSet = true; m_skipFinalClusterSnapshot = value; }
72
74
82 inline const Aws::String& GetFinalClusterSnapshotIdentifier() const { return m_finalClusterSnapshotIdentifier; }
83 inline bool FinalClusterSnapshotIdentifierHasBeenSet() const { return m_finalClusterSnapshotIdentifierHasBeenSet; }
84 template<typename FinalClusterSnapshotIdentifierT = Aws::String>
85 void SetFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT&& value) { m_finalClusterSnapshotIdentifierHasBeenSet = true; m_finalClusterSnapshotIdentifier = std::forward<FinalClusterSnapshotIdentifierT>(value); }
86 template<typename FinalClusterSnapshotIdentifierT = Aws::String>
87 DeleteClusterRequest& WithFinalClusterSnapshotIdentifier(FinalClusterSnapshotIdentifierT&& value) { SetFinalClusterSnapshotIdentifier(std::forward<FinalClusterSnapshotIdentifierT>(value)); return *this;}
89
91
96 inline int GetFinalClusterSnapshotRetentionPeriod() const { return m_finalClusterSnapshotRetentionPeriod; }
97 inline bool FinalClusterSnapshotRetentionPeriodHasBeenSet() const { return m_finalClusterSnapshotRetentionPeriodHasBeenSet; }
98 inline void SetFinalClusterSnapshotRetentionPeriod(int value) { m_finalClusterSnapshotRetentionPeriodHasBeenSet = true; m_finalClusterSnapshotRetentionPeriod = value; }
101 private:
102
103 Aws::String m_clusterIdentifier;
104 bool m_clusterIdentifierHasBeenSet = false;
105
106 bool m_skipFinalClusterSnapshot{false};
107 bool m_skipFinalClusterSnapshotHasBeenSet = false;
108
109 Aws::String m_finalClusterSnapshotIdentifier;
110 bool m_finalClusterSnapshotIdentifierHasBeenSet = false;
111
112 int m_finalClusterSnapshotRetentionPeriod{0};
113 bool m_finalClusterSnapshotRetentionPeriodHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Redshift
118} // 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