AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SwitchoverGlobalClusterRequest.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 SwitchoverGlobalClusterRequest() = 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 "SwitchoverGlobalCluster"; }
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& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
42 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
43 template <typename GlobalClusterIdentifierT = Aws::String>
44 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
45 m_globalClusterIdentifierHasBeenSet = true;
46 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
47 }
48 template <typename GlobalClusterIdentifierT = Aws::String>
50 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
61 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
62 template <typename TargetDbClusterIdentifierT = Aws::String>
63 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
64 m_targetDbClusterIdentifierHasBeenSet = true;
65 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
66 }
67 template <typename TargetDbClusterIdentifierT = Aws::String>
69 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_globalClusterIdentifier;
75 bool m_globalClusterIdentifierHasBeenSet = false;
76
77 Aws::String m_targetDbClusterIdentifier;
78 bool m_targetDbClusterIdentifierHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Neptune
83} // namespace Aws
SwitchoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_NEPTUNE_API SwitchoverGlobalClusterRequest()=default
AWS_NEPTUNE_API Aws::String SerializePayload() const override
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
SwitchoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String