AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FailoverGlobalClusterRequest.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
20 public:
21 AWS_RDS_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_RDS_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_RDS_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
64 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
65 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
66 template <typename TargetDbClusterIdentifierT = Aws::String>
67 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
68 m_targetDbClusterIdentifierHasBeenSet = true;
69 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
70 }
71 template <typename TargetDbClusterIdentifierT = Aws::String>
72 FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
73 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
74 return *this;
75 }
77
79
87 inline bool GetAllowDataLoss() const { return m_allowDataLoss; }
88 inline bool AllowDataLossHasBeenSet() const { return m_allowDataLossHasBeenSet; }
89 inline void SetAllowDataLoss(bool value) {
90 m_allowDataLossHasBeenSet = true;
91 m_allowDataLoss = value;
92 }
94 SetAllowDataLoss(value);
95 return *this;
96 }
98
100
105 inline bool GetSwitchover() const { return m_switchover; }
106 inline bool SwitchoverHasBeenSet() const { return m_switchoverHasBeenSet; }
107 inline void SetSwitchover(bool value) {
108 m_switchoverHasBeenSet = true;
109 m_switchover = value;
110 }
112 SetSwitchover(value);
113 return *this;
114 }
116 private:
117 Aws::String m_globalClusterIdentifier;
118
119 Aws::String m_targetDbClusterIdentifier;
120
121 bool m_allowDataLoss{false};
122
123 bool m_switchover{false};
124 bool m_globalClusterIdentifierHasBeenSet = false;
125 bool m_targetDbClusterIdentifierHasBeenSet = false;
126 bool m_allowDataLossHasBeenSet = false;
127 bool m_switchoverHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace RDS
132} // namespace Aws
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_RDS_API FailoverGlobalClusterRequest()=default
FailoverGlobalClusterRequest & WithAllowDataLoss(bool value)
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
FailoverGlobalClusterRequest & WithSwitchover(bool value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String