AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SwitchoverGlobalClusterRequest.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 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_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
42 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
43 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
44 template <typename GlobalClusterIdentifierT = Aws::String>
45 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
46 m_globalClusterIdentifierHasBeenSet = true;
47 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
48 }
49 template <typename GlobalClusterIdentifierT = Aws::String>
51 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetTargetDbClusterIdentifier() const { return m_targetDbClusterIdentifier; }
64 inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
65 template <typename TargetDbClusterIdentifierT = Aws::String>
66 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) {
67 m_targetDbClusterIdentifierHasBeenSet = true;
68 m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value);
69 }
70 template <typename TargetDbClusterIdentifierT = Aws::String>
72 SetTargetDbClusterIdentifier(std::forward<TargetDbClusterIdentifierT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_globalClusterIdentifier;
78
79 Aws::String m_targetDbClusterIdentifier;
80 bool m_globalClusterIdentifierHasBeenSet = false;
81 bool m_targetDbClusterIdentifierHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace RDS
86} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SwitchoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
SwitchoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String