AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailoverGlobalReplicationGroupRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ElastiCache
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "FailoverGlobalReplicationGroup"; }
31
32 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
44 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
45 inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
46 inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
47 inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
52
54
57 inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; }
58 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
59 inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = value; }
60 inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::move(value); }
61 inline void SetPrimaryRegion(const char* value) { m_primaryRegionHasBeenSet = true; m_primaryRegion.assign(value); }
63 inline FailoverGlobalReplicationGroupRequest& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;}
64 inline FailoverGlobalReplicationGroupRequest& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;}
66
68
71 inline const Aws::String& GetPrimaryReplicationGroupId() const{ return m_primaryReplicationGroupId; }
72 inline bool PrimaryReplicationGroupIdHasBeenSet() const { return m_primaryReplicationGroupIdHasBeenSet; }
73 inline void SetPrimaryReplicationGroupId(const Aws::String& value) { m_primaryReplicationGroupIdHasBeenSet = true; m_primaryReplicationGroupId = value; }
74 inline void SetPrimaryReplicationGroupId(Aws::String&& value) { m_primaryReplicationGroupIdHasBeenSet = true; m_primaryReplicationGroupId = std::move(value); }
75 inline void SetPrimaryReplicationGroupId(const char* value) { m_primaryReplicationGroupIdHasBeenSet = true; m_primaryReplicationGroupId.assign(value); }
80 private:
81
82 Aws::String m_globalReplicationGroupId;
83 bool m_globalReplicationGroupIdHasBeenSet = false;
84
85 Aws::String m_primaryRegion;
86 bool m_primaryRegionHasBeenSet = false;
87
88 Aws::String m_primaryReplicationGroupId;
89 bool m_primaryReplicationGroupIdHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ElastiCache
94} // namespace Aws
FailoverGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(const Aws::String &value)
FailoverGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(Aws::String &&value)
FailoverGlobalReplicationGroupRequest & WithPrimaryRegion(const char *value)
FailoverGlobalReplicationGroupRequest & WithPrimaryRegion(Aws::String &&value)
FailoverGlobalReplicationGroupRequest & WithPrimaryReplicationGroupId(const char *value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
FailoverGlobalReplicationGroupRequest & WithPrimaryRegion(const Aws::String &value)
FailoverGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(const char *value)
FailoverGlobalReplicationGroupRequest & WithPrimaryReplicationGroupId(const Aws::String &value)
FailoverGlobalReplicationGroupRequest & WithPrimaryReplicationGroupId(Aws::String &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String