AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteDBInstanceRequest.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 DeleteDBInstanceRequest() = 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 "DeleteDBInstance"; }
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& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
45 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
46 template <typename DBInstanceIdentifierT = Aws::String>
47 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
48 m_dBInstanceIdentifierHasBeenSet = true;
49 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
50 }
51 template <typename DBInstanceIdentifierT = Aws::String>
52 DeleteDBInstanceRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
53 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
54 return *this;
55 }
57
59
72 inline bool GetSkipFinalSnapshot() const { return m_skipFinalSnapshot; }
73 inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; }
74 inline void SetSkipFinalSnapshot(bool value) {
75 m_skipFinalSnapshotHasBeenSet = true;
76 m_skipFinalSnapshot = value;
77 }
80 return *this;
81 }
83
85
95 inline const Aws::String& GetFinalDBSnapshotIdentifier() const { return m_finalDBSnapshotIdentifier; }
96 inline bool FinalDBSnapshotIdentifierHasBeenSet() const { return m_finalDBSnapshotIdentifierHasBeenSet; }
97 template <typename FinalDBSnapshotIdentifierT = Aws::String>
98 void SetFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT&& value) {
99 m_finalDBSnapshotIdentifierHasBeenSet = true;
100 m_finalDBSnapshotIdentifier = std::forward<FinalDBSnapshotIdentifierT>(value);
101 }
102 template <typename FinalDBSnapshotIdentifierT = Aws::String>
103 DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT&& value) {
104 SetFinalDBSnapshotIdentifier(std::forward<FinalDBSnapshotIdentifierT>(value));
105 return *this;
106 }
108
110
115 inline bool GetDeleteAutomatedBackups() const { return m_deleteAutomatedBackups; }
116 inline bool DeleteAutomatedBackupsHasBeenSet() const { return m_deleteAutomatedBackupsHasBeenSet; }
117 inline void SetDeleteAutomatedBackups(bool value) {
118 m_deleteAutomatedBackupsHasBeenSet = true;
119 m_deleteAutomatedBackups = value;
120 }
123 return *this;
124 }
126 private:
127 Aws::String m_dBInstanceIdentifier;
128
129 bool m_skipFinalSnapshot{false};
130
131 Aws::String m_finalDBSnapshotIdentifier;
132
133 bool m_deleteAutomatedBackups{false};
134 bool m_dBInstanceIdentifierHasBeenSet = false;
135 bool m_skipFinalSnapshotHasBeenSet = false;
136 bool m_finalDBSnapshotIdentifierHasBeenSet = false;
137 bool m_deleteAutomatedBackupsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace RDS
142} // namespace Aws
DeleteDBInstanceRequest & WithSkipFinalSnapshot(bool value)
const Aws::String & GetDBInstanceIdentifier() const
DeleteDBInstanceRequest & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
const Aws::String & GetFinalDBSnapshotIdentifier() const
AWS_RDS_API DeleteDBInstanceRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteDBInstanceRequest & WithFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT &&value)
DeleteDBInstanceRequest & WithDeleteAutomatedBackups(bool value)
void SetFinalDBSnapshotIdentifier(FinalDBSnapshotIdentifierT &&value)
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String