AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StartMigrationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/CustomerNodeEndpoint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
22 public:
23 AWS_ELASTICACHE_API StartMigrationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartMigration"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
42 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
43 template <typename ReplicationGroupIdT = Aws::String>
44 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
45 m_replicationGroupIdHasBeenSet = true;
46 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
47 }
48 template <typename ReplicationGroupIdT = Aws::String>
49 StartMigrationRequest& WithReplicationGroupId(ReplicationGroupIdT&& value) {
50 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<CustomerNodeEndpoint>& GetCustomerNodeEndpointList() const { return m_customerNodeEndpointList; }
61 inline bool CustomerNodeEndpointListHasBeenSet() const { return m_customerNodeEndpointListHasBeenSet; }
62 template <typename CustomerNodeEndpointListT = Aws::Vector<CustomerNodeEndpoint>>
63 void SetCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
64 m_customerNodeEndpointListHasBeenSet = true;
65 m_customerNodeEndpointList = std::forward<CustomerNodeEndpointListT>(value);
66 }
67 template <typename CustomerNodeEndpointListT = Aws::Vector<CustomerNodeEndpoint>>
68 StartMigrationRequest& WithCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
69 SetCustomerNodeEndpointList(std::forward<CustomerNodeEndpointListT>(value));
70 return *this;
71 }
72 template <typename CustomerNodeEndpointListT = CustomerNodeEndpoint>
73 StartMigrationRequest& AddCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
74 m_customerNodeEndpointListHasBeenSet = true;
75 m_customerNodeEndpointList.emplace_back(std::forward<CustomerNodeEndpointListT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_replicationGroupId;
81
82 Aws::Vector<CustomerNodeEndpoint> m_customerNodeEndpointList;
83 bool m_replicationGroupIdHasBeenSet = false;
84 bool m_customerNodeEndpointListHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ElastiCache
89} // namespace Aws
const Aws::Vector< CustomerNodeEndpoint > & GetCustomerNodeEndpointList() const
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
StartMigrationRequest & WithCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
AWS_ELASTICACHE_API StartMigrationRequest()=default
void SetCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
void SetReplicationGroupId(ReplicationGroupIdT &&value)
StartMigrationRequest & WithReplicationGroupId(ReplicationGroupIdT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
StartMigrationRequest & AddCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector