AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TestFailoverRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElastiCache {
15namespace Model {
16
20 public:
21 AWS_ELASTICACHE_API TestFailoverRequest() = 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 "TestFailover"; }
28
29 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
40 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
41 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
42 template <typename ReplicationGroupIdT = Aws::String>
43 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
44 m_replicationGroupIdHasBeenSet = true;
45 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
46 }
47 template <typename ReplicationGroupIdT = Aws::String>
48 TestFailoverRequest& WithReplicationGroupId(ReplicationGroupIdT&& value) {
49 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetNodeGroupId() const { return m_nodeGroupId; }
61 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
62 template <typename NodeGroupIdT = Aws::String>
63 void SetNodeGroupId(NodeGroupIdT&& value) {
64 m_nodeGroupIdHasBeenSet = true;
65 m_nodeGroupId = std::forward<NodeGroupIdT>(value);
66 }
67 template <typename NodeGroupIdT = Aws::String>
68 TestFailoverRequest& WithNodeGroupId(NodeGroupIdT&& value) {
69 SetNodeGroupId(std::forward<NodeGroupIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_replicationGroupId;
75
76 Aws::String m_nodeGroupId;
77 bool m_replicationGroupIdHasBeenSet = false;
78 bool m_nodeGroupIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElastiCache
83} // namespace Aws
TestFailoverRequest & WithNodeGroupId(NodeGroupIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ELASTICACHE_API TestFailoverRequest()=default
TestFailoverRequest & WithReplicationGroupId(ReplicationGroupIdT &&value)
void SetReplicationGroupId(ReplicationGroupIdT &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String