AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
FailoverGlobalClusterRequest.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 FailoverGlobalClusterRequest() = 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 "FailoverGlobalCluster"; }
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
43 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
44 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
45 template <typename GlobalClusterIdentifierT = Aws::String>
46 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
47 m_globalClusterIdentifierHasBeenSet = true;
48 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
49 }
50 template <typename GlobalClusterIdentifierT = Aws::String>
51 FailoverGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
52 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
63 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
64 template <typename TargetDbClusterIdentifierT = Aws::String>
65 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
66 m_targetDbClusterIdentifierHasBeenSet = true;
67 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
68 }
69 template <typename TargetDbClusterIdentifierT = Aws::String>
70 FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
71 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
72 return *this;
73 }
75
77
84 inline bool GetAllowDataLoss() const { return m_allowDataLoss; }
85 inline bool AllowDataLossHasBeenSet() const { return m_allowDataLossHasBeenSet; }
86 inline void SetAllowDataLoss(bool value) {
87 m_allowDataLossHasBeenSet = true;
88 m_allowDataLoss = value;
89 }
91 SetAllowDataLoss(value);
92 return *this;
93 }
95
97
102 inline bool GetSwitchover() const { return m_switchover; }
103 inline bool SwitchoverHasBeenSet() const { return m_switchoverHasBeenSet; }
104 inline void SetSwitchover(bool value) {
105 m_switchoverHasBeenSet = true;
106 m_switchover = value;
107 }
109 SetSwitchover(value);
110 return *this;
111 }
113 private:
114 Aws::String m_globalClusterIdentifier;
115
116 Aws::String m_targetDbClusterIdentifier;
117
118 bool m_allowDataLoss{false};
119
120 bool m_switchover{false};
121 bool m_globalClusterIdentifierHasBeenSet = false;
122 bool m_targetDbClusterIdentifierHasBeenSet = false;
123 bool m_allowDataLossHasBeenSet = false;
124 bool m_switchoverHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Neptune
129} // namespace Aws
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
AWS_NEPTUNE_API FailoverGlobalClusterRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_NEPTUNE_API Aws::String SerializePayload() const override
FailoverGlobalClusterRequest & WithAllowDataLoss(bool value)
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
FailoverGlobalClusterRequest & WithSwitchover(bool value)
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String