AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
SwitchoverGlobalClusterRequest.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 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_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
45 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
46 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
47 template <typename GlobalClusterIdentifierT = Aws::String>
48 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
49 m_globalClusterIdentifierHasBeenSet = true;
50 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
51 }
52 template <typename GlobalClusterIdentifierT = Aws::String>
54 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
70 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
71 template <typename TargetDbClusterIdentifierT = Aws::String>
72 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
73 m_targetDbClusterIdentifierHasBeenSet = true;
74 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
75 }
76 template <typename TargetDbClusterIdentifierT = Aws::String>
78 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_globalClusterIdentifier;
84
85 Aws::String m_targetDbClusterIdentifier;
86 bool m_globalClusterIdentifierHasBeenSet = false;
87 bool m_targetDbClusterIdentifierHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace DocDB
92} // namespace Aws
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SwitchoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
SwitchoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_DOCDB_API SwitchoverGlobalClusterRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String