AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
FailoverGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/docdb/DocDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DocDB {
15namespace Model {
16
20 public:
21 AWS_DOCDB_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_DOCDB_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
44 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
45 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
46 template <typename GlobalClusterIdentifierT = Aws::String>
47 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
48 m_globalClusterIdentifierHasBeenSet = true;
49 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
50 }
51 template <typename GlobalClusterIdentifierT = Aws::String>
52 FailoverGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
53 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
69 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
70 template <typename TargetDbClusterIdentifierT = Aws::String>
71 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
72 m_targetDbClusterIdentifierHasBeenSet = true;
73 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
74 }
75 template <typename TargetDbClusterIdentifierT = Aws::String>
76 FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
77 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
78 return *this;
79 }
81
83
90 inline bool GetAllowDataLoss() const { return m_allowDataLoss; }
91 inline bool AllowDataLossHasBeenSet() const { return m_allowDataLossHasBeenSet; }
92 inline void SetAllowDataLoss(bool value) {
93 m_allowDataLossHasBeenSet = true;
94 m_allowDataLoss = value;
95 }
97 SetAllowDataLoss(value);
98 return *this;
99 }
101
103
108 inline bool GetSwitchover() const { return m_switchover; }
109 inline bool SwitchoverHasBeenSet() const { return m_switchoverHasBeenSet; }
110 inline void SetSwitchover(bool value) {
111 m_switchoverHasBeenSet = true;
112 m_switchover = value;
113 }
115 SetSwitchover(value);
116 return *this;
117 }
119 private:
120 Aws::String m_globalClusterIdentifier;
121
122 Aws::String m_targetDbClusterIdentifier;
123
124 bool m_allowDataLoss{false};
125
126 bool m_switchover{false};
127 bool m_globalClusterIdentifierHasBeenSet = false;
128 bool m_targetDbClusterIdentifierHasBeenSet = false;
129 bool m_allowDataLossHasBeenSet = false;
130 bool m_switchoverHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace DocDB
135} // namespace Aws
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_DOCDB_API FailoverGlobalClusterRequest()=default
FailoverGlobalClusterRequest & WithAllowDataLoss(bool value)
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
FailoverGlobalClusterRequest & WithSwitchover(bool value)
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String