AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteDBClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RDS {
15namespace Model {
16
23 public:
24 AWS_RDS_API DeleteDBClusterRequest() = 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 "DeleteDBCluster"; }
31
32 AWS_RDS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
44 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
45 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
46 template <typename DBClusterIdentifierT = Aws::String>
47 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
48 m_dBClusterIdentifierHasBeenSet = true;
49 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
50 }
51 template <typename DBClusterIdentifierT = Aws::String>
52 DeleteDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
53 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
54 return *this;
55 }
57
59
69 inline bool GetSkipFinalSnapshot() const { return m_skipFinalSnapshot; }
70 inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; }
71 inline void SetSkipFinalSnapshot(bool value) {
72 m_skipFinalSnapshotHasBeenSet = true;
73 m_skipFinalSnapshot = value;
74 }
77 return *this;
78 }
80
82
92 inline const Aws::String& GetFinalDBSnapshotIdentifier() const { return m_finalDBSnapshotIdentifier; }
93 inline bool FinalDBSnapshotIdentifierHasBeenSet() const { return m_finalDBSnapshotIdentifierHasBeenSet; }
94 template <typename FinalDBSnapshotIdentifierT = Aws::String>
95 void SetFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT&& value) {
96 m_finalDBSnapshotIdentifierHasBeenSet = true;
97 m_finalDBSnapshotIdentifier = std::forward<FinalDBSnapshotIdentifierT>(value);
98 }
99 template <typename FinalDBSnapshotIdentifierT = Aws::String>
100 DeleteDBClusterRequest& WithFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT&& value) {
101 SetFinalDBSnapshotIdentifier(std::forward<FinalDBSnapshotIdentifierT>(value));
102 return *this;
103 }
105
107
113 inline bool GetDeleteAutomatedBackups() const { return m_deleteAutomatedBackups; }
114 inline bool DeleteAutomatedBackupsHasBeenSet() const { return m_deleteAutomatedBackupsHasBeenSet; }
115 inline void SetDeleteAutomatedBackups(bool value) {
116 m_deleteAutomatedBackupsHasBeenSet = true;
117 m_deleteAutomatedBackups = value;
118 }
121 return *this;
122 }
124 private:
125 Aws::String m_dBClusterIdentifier;
126
127 bool m_skipFinalSnapshot{false};
128
129 Aws::String m_finalDBSnapshotIdentifier;
130
131 bool m_deleteAutomatedBackups{false};
132 bool m_dBClusterIdentifierHasBeenSet = false;
133 bool m_skipFinalSnapshotHasBeenSet = false;
134 bool m_finalDBSnapshotIdentifierHasBeenSet = false;
135 bool m_deleteAutomatedBackupsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace RDS
140} // namespace Aws
void SetFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDBClusterIdentifier() const
const Aws::String & GetFinalDBSnapshotIdentifier() const
AWS_RDS_API DeleteDBClusterRequest()=default
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
DeleteDBClusterRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
DeleteDBClusterRequest & WithDeleteAutomatedBackups(bool value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteDBClusterRequest & WithSkipFinalSnapshot(bool value)
AWS_RDS_API Aws::String SerializePayload() const override
DeleteDBClusterRequest & WithFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String