AWS SDK for C++  1.9.109
AWS SDK for C++
StopDBInstanceRequest.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 
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 "StopDBInstance"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
43 
47  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
48 
52  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
53 
57  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
58 
62  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
63 
67  inline StopDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
68 
72  inline StopDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
73 
77  inline StopDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
78 
79 
84  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
85 
90  inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
91 
96  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
97 
102  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); }
103 
108  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
109 
114  inline StopDBInstanceRequest& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
115 
120  inline StopDBInstanceRequest& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;}
121 
126  inline StopDBInstanceRequest& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
127 
128  private:
129 
130  Aws::String m_dBInstanceIdentifier;
131  bool m_dBInstanceIdentifierHasBeenSet;
132 
133  Aws::String m_dBSnapshotIdentifier;
134  bool m_dBSnapshotIdentifierHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace RDS
139 } // namespace Aws
Aws::RDS::Model::StopDBInstanceRequest::WithDBSnapshotIdentifier
StopDBInstanceRequest & WithDBSnapshotIdentifier(Aws::String &&value)
Definition: StopDBInstanceRequest.h:120
Aws::RDS::Model::StopDBInstanceRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: StopDBInstanceRequest.h:42
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::StopDBInstanceRequest::WithDBSnapshotIdentifier
StopDBInstanceRequest & WithDBSnapshotIdentifier(const char *value)
Definition: StopDBInstanceRequest.h:126
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::StopDBInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::StopDBInstanceRequest::DBSnapshotIdentifierHasBeenSet
bool DBSnapshotIdentifierHasBeenSet() const
Definition: StopDBInstanceRequest.h:90
Aws::RDS::Model::StopDBInstanceRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const char *value)
Definition: StopDBInstanceRequest.h:108
Aws::RDS::Model::StopDBInstanceRequest::WithDBInstanceIdentifier
StopDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
Definition: StopDBInstanceRequest.h:77
Aws::RDS::Model::StopDBInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::StopDBInstanceRequest::WithDBInstanceIdentifier
StopDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: StopDBInstanceRequest.h:72
RDS_EXPORTS.h
Aws::RDS::Model::StopDBInstanceRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(const Aws::String &value)
Definition: StopDBInstanceRequest.h:96
Aws::RDS::Model::StopDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: StopDBInstanceRequest.h:62
Aws::RDS::Model::StopDBInstanceRequest::SetDBSnapshotIdentifier
void SetDBSnapshotIdentifier(Aws::String &&value)
Definition: StopDBInstanceRequest.h:102
Aws::RDS::Model::StopDBInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopDBInstanceRequest.h:30
AWSString.h
Aws::RDS::Model::StopDBInstanceRequest::StopDBInstanceRequest
StopDBInstanceRequest()
Aws::RDS::Model::StopDBInstanceRequest
Definition: StopDBInstanceRequest.h:22
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::StopDBInstanceRequest::WithDBSnapshotIdentifier
StopDBInstanceRequest & WithDBSnapshotIdentifier(const Aws::String &value)
Definition: StopDBInstanceRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::StopDBInstanceRequest::WithDBInstanceIdentifier
StopDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: StopDBInstanceRequest.h:67
Aws::RDS::Model::StopDBInstanceRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: StopDBInstanceRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::StopDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: StopDBInstanceRequest.h:57
RDSRequest.h
Aws::RDS::Model::StopDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: StopDBInstanceRequest.h:52
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::StopDBInstanceRequest::GetDBSnapshotIdentifier
const Aws::String & GetDBSnapshotIdentifier() const
Definition: StopDBInstanceRequest.h:84