AWS SDK for C++  1.9.15
AWS SDK for C++
StopRelationalDatabaseRequest.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 "StopRelationalDatabase"; }
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 StopRelationalDatabaseRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
66 
70  inline StopRelationalDatabaseRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
71 
75  inline StopRelationalDatabaseRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
76 
77 
82  inline const Aws::String& GetRelationalDatabaseSnapshotName() const{ return m_relationalDatabaseSnapshotName; }
83 
88  inline bool RelationalDatabaseSnapshotNameHasBeenSet() const { return m_relationalDatabaseSnapshotNameHasBeenSet; }
89 
94  inline void SetRelationalDatabaseSnapshotName(const Aws::String& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = value; }
95 
100  inline void SetRelationalDatabaseSnapshotName(Aws::String&& value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName = std::move(value); }
101 
106  inline void SetRelationalDatabaseSnapshotName(const char* value) { m_relationalDatabaseSnapshotNameHasBeenSet = true; m_relationalDatabaseSnapshotName.assign(value); }
107 
112  inline StopRelationalDatabaseRequest& WithRelationalDatabaseSnapshotName(const Aws::String& value) { SetRelationalDatabaseSnapshotName(value); return *this;}
113 
118  inline StopRelationalDatabaseRequest& WithRelationalDatabaseSnapshotName(Aws::String&& value) { SetRelationalDatabaseSnapshotName(std::move(value)); return *this;}
119 
124  inline StopRelationalDatabaseRequest& WithRelationalDatabaseSnapshotName(const char* value) { SetRelationalDatabaseSnapshotName(value); return *this;}
125 
126  private:
127 
128  Aws::String m_relationalDatabaseName;
129  bool m_relationalDatabaseNameHasBeenSet;
130 
131  Aws::String m_relationalDatabaseSnapshotName;
132  bool m_relationalDatabaseSnapshotNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Lightsail
137 } // namespace Aws
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseSnapshotName
StopRelationalDatabaseRequest & WithRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: StopRelationalDatabaseRequest.h:118
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseSnapshotName
StopRelationalDatabaseRequest & WithRelationalDatabaseSnapshotName(const char *value)
Definition: StopRelationalDatabaseRequest.h:124
Aws::Lightsail::Model::StopRelationalDatabaseRequest::RelationalDatabaseSnapshotNameHasBeenSet
bool RelationalDatabaseSnapshotNameHasBeenSet() const
Definition: StopRelationalDatabaseRequest.h:88
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(Aws::String &&value)
Definition: StopRelationalDatabaseRequest.h:55
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: StopRelationalDatabaseRequest.h:94
Aws::Lightsail::Model::StopRelationalDatabaseRequest::StopRelationalDatabaseRequest
StopRelationalDatabaseRequest()
LightsailRequest.h
Aws::Lightsail::Model::StopRelationalDatabaseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseName
StopRelationalDatabaseRequest & WithRelationalDatabaseName(const Aws::String &value)
Definition: StopRelationalDatabaseRequest.h:65
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::StopRelationalDatabaseRequest::GetRelationalDatabaseSnapshotName
const Aws::String & GetRelationalDatabaseSnapshotName() const
Definition: StopRelationalDatabaseRequest.h:82
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const char *value)
Definition: StopRelationalDatabaseRequest.h:60
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::StopRelationalDatabaseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopRelationalDatabaseRequest.h:30
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseName
StopRelationalDatabaseRequest & WithRelationalDatabaseName(Aws::String &&value)
Definition: StopRelationalDatabaseRequest.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseSnapshotName
StopRelationalDatabaseRequest & WithRelationalDatabaseSnapshotName(const Aws::String &value)
Definition: StopRelationalDatabaseRequest.h:112
Aws::Lightsail::Model::StopRelationalDatabaseRequest::WithRelationalDatabaseName
StopRelationalDatabaseRequest & WithRelationalDatabaseName(const char *value)
Definition: StopRelationalDatabaseRequest.h:75
Aws::Lightsail::Model::StopRelationalDatabaseRequest::GetRelationalDatabaseName
const Aws::String & GetRelationalDatabaseName() const
Definition: StopRelationalDatabaseRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(Aws::String &&value)
Definition: StopRelationalDatabaseRequest.h:100
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const Aws::String &value)
Definition: StopRelationalDatabaseRequest.h:50
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SetRelationalDatabaseSnapshotName
void SetRelationalDatabaseSnapshotName(const char *value)
Definition: StopRelationalDatabaseRequest.h:106
Aws::Lightsail::Model::StopRelationalDatabaseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::StopRelationalDatabaseRequest::RelationalDatabaseNameHasBeenSet
bool RelationalDatabaseNameHasBeenSet() const
Definition: StopRelationalDatabaseRequest.h:45
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::StopRelationalDatabaseRequest
Definition: StopRelationalDatabaseRequest.h:22