AWS SDK for C++  1.9.107
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
Aws::ElastiCache::Model::TestFailoverRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::ElastiCache::Model::TestFailoverRequest::ReplicationGroupIdHasBeenSet
bool ReplicationGroupIdHasBeenSet() const
Definition: TestFailoverRequest.h:49
Aws::ElastiCache::Model::TestFailoverRequest::WithNodeGroupId
TestFailoverRequest & WithNodeGroupId(const Aws::String &value)
Definition: TestFailoverRequest.h:128
Aws::ElastiCache::Model::TestFailoverRequest::GetReplicationGroupId
const Aws::String & GetReplicationGroupId() const
Definition: TestFailoverRequest.h:43
Aws::ElastiCache::Model::TestFailoverRequest::TestFailoverRequest
TestFailoverRequest()
ElastiCacheRequest.h
Aws::ElastiCache::Model::TestFailoverRequest::WithReplicationGroupId
TestFailoverRequest & WithReplicationGroupId(const char *value)
Definition: TestFailoverRequest.h:85
Aws::ElastiCache::Model::TestFailoverRequest::SetNodeGroupId
void SetNodeGroupId(const Aws::String &value)
Definition: TestFailoverRequest.h:107
ElastiCache_EXPORTS.h
Aws::ElastiCache::Model::TestFailoverRequest::WithReplicationGroupId
TestFailoverRequest & WithReplicationGroupId(Aws::String &&value)
Definition: TestFailoverRequest.h:79
Aws::ElastiCache::Model::TestFailoverRequest::SetNodeGroupId
void SetNodeGroupId(Aws::String &&value)
Definition: TestFailoverRequest.h:114
Aws::ElastiCache::Model::TestFailoverRequest::GetNodeGroupId
const Aws::String & GetNodeGroupId() const
Definition: TestFailoverRequest.h:93
Aws::ElastiCache::Model::TestFailoverRequest::NodeGroupIdHasBeenSet
bool NodeGroupIdHasBeenSet() const
Definition: TestFailoverRequest.h:100
Aws::ElastiCache::Model::TestFailoverRequest::WithNodeGroupId
TestFailoverRequest & WithNodeGroupId(Aws::String &&value)
Definition: TestFailoverRequest.h:135
Aws::ElastiCache::Model::TestFailoverRequest::SetNodeGroupId
void SetNodeGroupId(const char *value)
Definition: TestFailoverRequest.h:121
AWSString.h
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws::ElastiCache::Model::TestFailoverRequest
Definition: TestFailoverRequest.h:22
Aws::ElastiCache::Model::TestFailoverRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TestFailoverRequest.h:30
Aws::ElastiCache::Model::TestFailoverRequest::WithNodeGroupId
TestFailoverRequest & WithNodeGroupId(const char *value)
Definition: TestFailoverRequest.h:142
Aws::ElastiCache::Model::TestFailoverRequest::SetReplicationGroupId
void SetReplicationGroupId(const Aws::String &value)
Definition: TestFailoverRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::TestFailoverRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElastiCache::ElastiCacheRequest
Definition: ElastiCacheRequest.h:17
Aws::ElastiCache::Model::TestFailoverRequest::SetReplicationGroupId
void SetReplicationGroupId(Aws::String &&value)
Definition: TestFailoverRequest.h:61
Aws::ElastiCache::Model::TestFailoverRequest::SetReplicationGroupId
void SetReplicationGroupId(const char *value)
Definition: TestFailoverRequest.h:67
Aws::ElastiCache::Model::TestFailoverRequest::WithReplicationGroupId
TestFailoverRequest & WithReplicationGroupId(const Aws::String &value)
Definition: TestFailoverRequest.h:73