AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FailoverDBClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RDS {
15namespace Model {
16
23 public:
24 AWS_RDS_API FailoverDBClusterRequest() = default;
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 "FailoverDBCluster"; }
31
32 AWS_RDS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
44 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
45 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
46 template <typename DBClusterIdentifierT = Aws::String>
47 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
48 m_dBClusterIdentifierHasBeenSet = true;
49 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
50 }
51 template <typename DBClusterIdentifierT = Aws::String>
52 FailoverDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
53 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetTargetDBInstanceIdentifier() const { return m_targetDBInstanceIdentifier; }
67 inline bool TargetDBInstanceIdentifierHasBeenSet() const { return m_targetDBInstanceIdentifierHasBeenSet; }
68 template <typename TargetDBInstanceIdentifierT = Aws::String>
69 void SetTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT&& value) {
70 m_targetDBInstanceIdentifierHasBeenSet = true;
71 m_targetDBInstanceIdentifier = std::forward<TargetDBInstanceIdentifierT>(value);
72 }
73 template <typename TargetDBInstanceIdentifierT = Aws::String>
74 FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT&& value) {
75 SetTargetDBInstanceIdentifier(std::forward<TargetDBInstanceIdentifierT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_dBClusterIdentifier;
81
82 Aws::String m_targetDBInstanceIdentifier;
83 bool m_dBClusterIdentifierHasBeenSet = false;
84 bool m_targetDBInstanceIdentifierHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace RDS
89} // namespace Aws
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
const Aws::String & GetTargetDBInstanceIdentifier() const
AWS_RDS_API FailoverDBClusterRequest()=default
void SetTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
FailoverDBClusterRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String