AWS SDK for C++  1.9.104
AWS SDK for C++
RebootDBInstanceRequest.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 "RebootDBInstance"; }
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 RebootDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
83 
89  inline RebootDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
90 
96  inline RebootDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
97 
98 
104  inline bool GetForceFailover() const{ return m_forceFailover; }
105 
111  inline bool ForceFailoverHasBeenSet() const { return m_forceFailoverHasBeenSet; }
112 
118  inline void SetForceFailover(bool value) { m_forceFailoverHasBeenSet = true; m_forceFailover = value; }
119 
125  inline RebootDBInstanceRequest& WithForceFailover(bool value) { SetForceFailover(value); return *this;}
126 
127  private:
128 
129  Aws::String m_dBInstanceIdentifier;
130  bool m_dBInstanceIdentifierHasBeenSet;
131 
132  bool m_forceFailover;
133  bool m_forceFailoverHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace RDS
138 } // namespace Aws
Aws::RDS::Model::RebootDBInstanceRequest::WithDBInstanceIdentifier
RebootDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
Definition: RebootDBInstanceRequest.h:96
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::RebootDBInstanceRequest::SetForceFailover
void SetForceFailover(bool value)
Definition: RebootDBInstanceRequest.h:118
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::RebootDBInstanceRequest::GetForceFailover
bool GetForceFailover() const
Definition: RebootDBInstanceRequest.h:104
Aws::RDS::Model::RebootDBInstanceRequest::WithDBInstanceIdentifier
RebootDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: RebootDBInstanceRequest.h:82
Aws::RDS::Model::RebootDBInstanceRequest::ForceFailoverHasBeenSet
bool ForceFailoverHasBeenSet() const
Definition: RebootDBInstanceRequest.h:111
RDS_EXPORTS.h
Aws::RDS::Model::RebootDBInstanceRequest
Definition: RebootDBInstanceRequest.h:25
Aws::RDS::Model::RebootDBInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::RebootDBInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::RDS::Model::RebootDBInstanceRequest::WithDBInstanceIdentifier
RebootDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: RebootDBInstanceRequest.h:89
Aws::RDS::Model::RebootDBInstanceRequest::WithForceFailover
RebootDBInstanceRequest & WithForceFailover(bool value)
Definition: RebootDBInstanceRequest.h:125
Aws::RDS::Model::RebootDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: RebootDBInstanceRequest.h:75
Aws::RDS::Model::RebootDBInstanceRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: RebootDBInstanceRequest.h:47
Aws::RDS::Model::RebootDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: RebootDBInstanceRequest.h:61
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::RebootDBInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RebootDBInstanceRequest.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::RebootDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: RebootDBInstanceRequest.h:68
RDSRequest.h
Aws::RDS::Model::RebootDBInstanceRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: RebootDBInstanceRequest.h:54
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::RebootDBInstanceRequest::RebootDBInstanceRequest
RebootDBInstanceRequest()