AWS SDK for C++  1.9.105
AWS SDK for C++
DeleteRelationalDatabaseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "DeleteRelationalDatabase"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
41 
45  inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
46 
50  inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
51 
55  inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
56 
60  inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
61 
65  inline DeleteRelationalDatabaseRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
66 
70  inline DeleteRelationalDatabaseRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
71 
75  inline DeleteRelationalDatabaseRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
76 
77 
86  inline bool GetSkipFinalSnapshot() const{ return m_skipFinalSnapshot; }
87 
96  inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; }
97 
106  inline void SetSkipFinalSnapshot(bool value) { m_skipFinalSnapshotHasBeenSet = true; m_skipFinalSnapshot = value; }
107 
116  inline DeleteRelationalDatabaseRequest& WithSkipFinalSnapshot(bool value) { SetSkipFinalSnapshot(value); return *this;}
117 
118 
128  inline const Aws::String& GetFinalRelationalDatabaseSnapshotName() const{ return m_finalRelationalDatabaseSnapshotName; }
129 
139  inline bool FinalRelationalDatabaseSnapshotNameHasBeenSet() const { return m_finalRelationalDatabaseSnapshotNameHasBeenSet; }
140 
150  inline void SetFinalRelationalDatabaseSnapshotName(const Aws::String& value) { m_finalRelationalDatabaseSnapshotNameHasBeenSet = true; m_finalRelationalDatabaseSnapshotName = value; }
151 
161  inline void SetFinalRelationalDatabaseSnapshotName(Aws::String&& value) { m_finalRelationalDatabaseSnapshotNameHasBeenSet = true; m_finalRelationalDatabaseSnapshotName = std::move(value); }
162 
172  inline void SetFinalRelationalDatabaseSnapshotName(const char* value) { m_finalRelationalDatabaseSnapshotNameHasBeenSet = true; m_finalRelationalDatabaseSnapshotName.assign(value); }
173 
183  inline DeleteRelationalDatabaseRequest& WithFinalRelationalDatabaseSnapshotName(const Aws::String& value) { SetFinalRelationalDatabaseSnapshotName(value); return *this;}
184 
194  inline DeleteRelationalDatabaseRequest& WithFinalRelationalDatabaseSnapshotName(Aws::String&& value) { SetFinalRelationalDatabaseSnapshotName(std::move(value)); return *this;}
195 
205  inline DeleteRelationalDatabaseRequest& WithFinalRelationalDatabaseSnapshotName(const char* value) { SetFinalRelationalDatabaseSnapshotName(value); return *this;}
206 
207  private:
208 
209  Aws::String m_relationalDatabaseName;
210  bool m_relationalDatabaseNameHasBeenSet;
211 
212  bool m_skipFinalSnapshot;
213  bool m_skipFinalSnapshotHasBeenSet;
214 
215  Aws::String m_finalRelationalDatabaseSnapshotName;
216  bool m_finalRelationalDatabaseSnapshotNameHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Lightsail
221 } // namespace Aws
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::DeleteRelationalDatabaseRequest
DeleteRelationalDatabaseRequest()
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithRelationalDatabaseName
DeleteRelationalDatabaseRequest & WithRelationalDatabaseName(const Aws::String &value)
Definition: DeleteRelationalDatabaseRequest.h:65
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithFinalRelationalDatabaseSnapshotName
DeleteRelationalDatabaseRequest & WithFinalRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: DeleteRelationalDatabaseRequest.h:194
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const Aws::String &value)
Definition: DeleteRelationalDatabaseRequest.h:50
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::GetRelationalDatabaseName
const Aws::String & GetRelationalDatabaseName() const
Definition: DeleteRelationalDatabaseRequest.h:40
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(Aws::String &&value)
Definition: DeleteRelationalDatabaseRequest.h:55
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::FinalRelationalDatabaseSnapshotNameHasBeenSet
bool FinalRelationalDatabaseSnapshotNameHasBeenSet() const
Definition: DeleteRelationalDatabaseRequest.h:139
LightsailRequest.h
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithRelationalDatabaseName
DeleteRelationalDatabaseRequest & WithRelationalDatabaseName(const char *value)
Definition: DeleteRelationalDatabaseRequest.h:75
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithFinalRelationalDatabaseSnapshotName
DeleteRelationalDatabaseRequest & WithFinalRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: DeleteRelationalDatabaseRequest.h:183
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SkipFinalSnapshotHasBeenSet
bool SkipFinalSnapshotHasBeenSet() const
Definition: DeleteRelationalDatabaseRequest.h:96
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetFinalRelationalDatabaseSnapshotName
void SetFinalRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: DeleteRelationalDatabaseRequest.h:161
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const char *value)
Definition: DeleteRelationalDatabaseRequest.h:60
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::GetFinalRelationalDatabaseSnapshotName
const Aws::String & GetFinalRelationalDatabaseSnapshotName() const
Definition: DeleteRelationalDatabaseRequest.h:128
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetSkipFinalSnapshot
void SetSkipFinalSnapshot(bool value)
Definition: DeleteRelationalDatabaseRequest.h:106
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::GetSkipFinalSnapshot
bool GetSkipFinalSnapshot() const
Definition: DeleteRelationalDatabaseRequest.h:86
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetFinalRelationalDatabaseSnapshotName
void SetFinalRelationalDatabaseSnapshotName(const char *value)
Definition: DeleteRelationalDatabaseRequest.h:172
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithSkipFinalSnapshot
DeleteRelationalDatabaseRequest & WithSkipFinalSnapshot(bool value)
Definition: DeleteRelationalDatabaseRequest.h:116
AWSString.h
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SetFinalRelationalDatabaseSnapshotName
void SetFinalRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: DeleteRelationalDatabaseRequest.h:150
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithFinalRelationalDatabaseSnapshotName
DeleteRelationalDatabaseRequest & WithFinalRelationalDatabaseSnapshotName(const char *value)
Definition: DeleteRelationalDatabaseRequest.h:205
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteRelationalDatabaseRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::WithRelationalDatabaseName
DeleteRelationalDatabaseRequest & WithRelationalDatabaseName(Aws::String &&value)
Definition: DeleteRelationalDatabaseRequest.h:70
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest
Definition: DeleteRelationalDatabaseRequest.h:22
Aws::Lightsail::Model::DeleteRelationalDatabaseRequest::RelationalDatabaseNameHasBeenSet
bool RelationalDatabaseNameHasBeenSet() const
Definition: DeleteRelationalDatabaseRequest.h:45