AWS SDK for C++  1.8.71
AWS SDK for C++
TestFailoverRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElastiCache
15 {
16 namespace 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 "TestFailover"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
44 
49  inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
50 
55  inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
56 
61  inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
62 
67  inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
68 
73  inline TestFailoverRequest& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
74 
79  inline TestFailoverRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
80 
85  inline TestFailoverRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
86 
87 
93  inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
94 
100  inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
101 
107  inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
108 
114  inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
115 
121  inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
122 
128  inline TestFailoverRequest& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
129 
135  inline TestFailoverRequest& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
136 
142  inline TestFailoverRequest& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
143 
144  private:
145 
146  Aws::String m_replicationGroupId;
147  bool m_replicationGroupIdHasBeenSet;
148 
149  Aws::String m_nodeGroupId;
150  bool m_nodeGroupIdHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace ElastiCache
155 } // namespace Aws
TestFailoverRequest & WithReplicationGroupId(Aws::String &&value)
const Aws::String & GetReplicationGroupId() const
TestFailoverRequest & WithReplicationGroupId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestFailoverRequest & WithNodeGroupId(const Aws::String &value)
TestFailoverRequest & WithReplicationGroupId(const char *value)
void SetNodeGroupId(const Aws::String &value)
TestFailoverRequest & WithNodeGroupId(const char *value)
#define AWS_ELASTICACHE_API
void SetReplicationGroupId(const Aws::String &value)
TestFailoverRequest & WithNodeGroupId(Aws::String &&value)