AWS SDK for C++  1.9.108
AWS SDK for C++
DeleteDBInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace Model
17 {
18 
25  {
26  public:
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 "DeleteDBInstance"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
48 
54  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
55 
61  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
62 
68  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
69 
75  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
76 
82  inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
83 
89  inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
90 
96  inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
97 
98 
110  inline bool GetSkipFinalSnapshot() const{ return m_skipFinalSnapshot; }
111 
123  inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; }
124 
136  inline void SetSkipFinalSnapshot(bool value) { m_skipFinalSnapshotHasBeenSet = true; m_skipFinalSnapshot = value; }
137 
149  inline DeleteDBInstanceRequest& WithSkipFinalSnapshot(bool value) { SetSkipFinalSnapshot(value); return *this;}
150 
151 
162  inline const Aws::String& GetFinalDBSnapshotIdentifier() const{ return m_finalDBSnapshotIdentifier; }
163 
174  inline bool FinalDBSnapshotIdentifierHasBeenSet() const { return m_finalDBSnapshotIdentifierHasBeenSet; }
175 
186  inline void SetFinalDBSnapshotIdentifier(const Aws::String& value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier = value; }
187 
198  inline void SetFinalDBSnapshotIdentifier(Aws::String&& value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier = std::move(value); }
199 
210  inline void SetFinalDBSnapshotIdentifier(const char* value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier.assign(value); }
211 
222  inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(const Aws::String& value) { SetFinalDBSnapshotIdentifier(value); return *this;}
223 
234  inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(Aws::String&& value) { SetFinalDBSnapshotIdentifier(std::move(value)); return *this;}
235 
246  inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(const char* value) { SetFinalDBSnapshotIdentifier(value); return *this;}
247 
248 
254  inline bool GetDeleteAutomatedBackups() const{ return m_deleteAutomatedBackups; }
255 
261  inline bool DeleteAutomatedBackupsHasBeenSet() const { return m_deleteAutomatedBackupsHasBeenSet; }
262 
268  inline void SetDeleteAutomatedBackups(bool value) { m_deleteAutomatedBackupsHasBeenSet = true; m_deleteAutomatedBackups = value; }
269 
275  inline DeleteDBInstanceRequest& WithDeleteAutomatedBackups(bool value) { SetDeleteAutomatedBackups(value); return *this;}
276 
277  private:
278 
279  Aws::String m_dBInstanceIdentifier;
280  bool m_dBInstanceIdentifierHasBeenSet;
281 
282  bool m_skipFinalSnapshot;
283  bool m_skipFinalSnapshotHasBeenSet;
284 
285  Aws::String m_finalDBSnapshotIdentifier;
286  bool m_finalDBSnapshotIdentifierHasBeenSet;
287 
288  bool m_deleteAutomatedBackups;
289  bool m_deleteAutomatedBackupsHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace RDS
294 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::DeleteDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: DeleteDBInstanceRequest.h:68
Aws::RDS::Model::DeleteDBInstanceRequest::WithFinalDBSnapshotIdentifier
DeleteDBInstanceRequest & WithFinalDBSnapshotIdentifier(const char *value)
Definition: DeleteDBInstanceRequest.h:246
Aws::RDS::Model::DeleteDBInstanceRequest::WithDBInstanceIdentifier
DeleteDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: DeleteDBInstanceRequest.h:89
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DeleteDBInstanceRequest::WithFinalDBSnapshotIdentifier
DeleteDBInstanceRequest & WithFinalDBSnapshotIdentifier(const Aws::String &value)
Definition: DeleteDBInstanceRequest.h:222
Aws::RDS::Model::DeleteDBInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::DeleteDBInstanceRequest::WithDBInstanceIdentifier
DeleteDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: DeleteDBInstanceRequest.h:82
Aws::RDS::Model::DeleteDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: DeleteDBInstanceRequest.h:75
Aws::RDS::Model::DeleteDBInstanceRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: DeleteDBInstanceRequest.h:54
Aws::RDS::Model::DeleteDBInstanceRequest::SetFinalDBSnapshotIdentifier
void SetFinalDBSnapshotIdentifier(Aws::String &&value)
Definition: DeleteDBInstanceRequest.h:198
Aws::RDS::Model::DeleteDBInstanceRequest::FinalDBSnapshotIdentifierHasBeenSet
bool FinalDBSnapshotIdentifierHasBeenSet() const
Definition: DeleteDBInstanceRequest.h:174
Aws::RDS::Model::DeleteDBInstanceRequest::SetFinalDBSnapshotIdentifier
void SetFinalDBSnapshotIdentifier(const char *value)
Definition: DeleteDBInstanceRequest.h:210
RDS_EXPORTS.h
Aws::RDS::Model::DeleteDBInstanceRequest
Definition: DeleteDBInstanceRequest.h:25
Aws::RDS::Model::DeleteDBInstanceRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: DeleteDBInstanceRequest.h:47
Aws::RDS::Model::DeleteDBInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteDBInstanceRequest.h:33
AWSString.h
Aws::RDS::Model::DeleteDBInstanceRequest::WithSkipFinalSnapshot
DeleteDBInstanceRequest & WithSkipFinalSnapshot(bool value)
Definition: DeleteDBInstanceRequest.h:149
Aws::RDS::Model::DeleteDBInstanceRequest::DeleteDBInstanceRequest
DeleteDBInstanceRequest()
Aws::RDS::Model::DeleteDBInstanceRequest::WithDeleteAutomatedBackups
DeleteDBInstanceRequest & WithDeleteAutomatedBackups(bool value)
Definition: DeleteDBInstanceRequest.h:275
Aws::RDS::Model::DeleteDBInstanceRequest::SetDeleteAutomatedBackups
void SetDeleteAutomatedBackups(bool value)
Definition: DeleteDBInstanceRequest.h:268
Aws::RDS::Model::DeleteDBInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DeleteDBInstanceRequest::DeleteAutomatedBackupsHasBeenSet
bool DeleteAutomatedBackupsHasBeenSet() const
Definition: DeleteDBInstanceRequest.h:261
Aws::RDS::Model::DeleteDBInstanceRequest::SetSkipFinalSnapshot
void SetSkipFinalSnapshot(bool value)
Definition: DeleteDBInstanceRequest.h:136
Aws::RDS::Model::DeleteDBInstanceRequest::GetFinalDBSnapshotIdentifier
const Aws::String & GetFinalDBSnapshotIdentifier() const
Definition: DeleteDBInstanceRequest.h:162
Aws::RDS::Model::DeleteDBInstanceRequest::GetDeleteAutomatedBackups
bool GetDeleteAutomatedBackups() const
Definition: DeleteDBInstanceRequest.h:254
Aws::RDS::Model::DeleteDBInstanceRequest::SkipFinalSnapshotHasBeenSet
bool SkipFinalSnapshotHasBeenSet() const
Definition: DeleteDBInstanceRequest.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::DeleteDBInstanceRequest::SetFinalDBSnapshotIdentifier
void SetFinalDBSnapshotIdentifier(const Aws::String &value)
Definition: DeleteDBInstanceRequest.h:186
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::DeleteDBInstanceRequest::WithDBInstanceIdentifier
DeleteDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
Definition: DeleteDBInstanceRequest.h:96
Aws::RDS::Model::DeleteDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: DeleteDBInstanceRequest.h:61
Aws::RDS::Model::DeleteDBInstanceRequest::GetSkipFinalSnapshot
bool GetSkipFinalSnapshot() const
Definition: DeleteDBInstanceRequest.h:110
Aws::RDS::Model::DeleteDBInstanceRequest::WithFinalDBSnapshotIdentifier
DeleteDBInstanceRequest & WithFinalDBSnapshotIdentifier(Aws::String &&value)
Definition: DeleteDBInstanceRequest.h:234