AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
FailoverDBClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/neptune/Neptune_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Neptune {
15namespace Model {
16
20 public:
21 AWS_NEPTUNE_API FailoverDBClusterRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "FailoverDBCluster"; }
28
29 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
41 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
42 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
43 template <typename DBClusterIdentifierT = Aws::String>
44 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
45 m_dBClusterIdentifierHasBeenSet = true;
46 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
47 }
48 template <typename DBClusterIdentifierT = Aws::String>
49 FailoverDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
50 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetTargetDBInstanceIdentifier() const { return m_targetDBInstanceIdentifier; }
62 inline bool TargetDBInstanceIdentifierHasBeenSet() const { return m_targetDBInstanceIdentifierHasBeenSet; }
63 template <typename TargetDBInstanceIdentifierT = Aws::String>
64 void SetTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT&& value) {
65 m_targetDBInstanceIdentifierHasBeenSet = true;
66 m_targetDBInstanceIdentifier = std::forward<TargetDBInstanceIdentifierT>(value);
67 }
68 template <typename TargetDBInstanceIdentifierT = Aws::String>
69 FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT&& value) {
70 SetTargetDBInstanceIdentifier(std::forward<TargetDBInstanceIdentifierT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_dBClusterIdentifier;
76 bool m_dBClusterIdentifierHasBeenSet = false;
77
78 Aws::String m_targetDBInstanceIdentifier;
79 bool m_targetDBInstanceIdentifierHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Neptune
84} // namespace Aws
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT &&value)
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(TargetDBInstanceIdentifierT &&value)
FailoverDBClusterRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API FailoverDBClusterRequest()=default
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String