AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
PrepareMigrationRequest.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#include <aws/elasticache/model/SourceAuthenticationConfiguration.h>
13#include <aws/elasticache/model/SourceTlsConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ElastiCache {
19namespace Model {
20
24 public:
25 AWS_ELASTICACHE_API PrepareMigrationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PrepareMigration"; }
32
33 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
44 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
45 template <typename ServerlessCacheNameT = Aws::String>
46 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
47 m_serverlessCacheNameHasBeenSet = true;
48 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
49 }
50 template <typename ServerlessCacheNameT = Aws::String>
51 PrepareMigrationRequest& WithServerlessCacheName(ServerlessCacheNameT&& value) {
52 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<CustomerNodeEndpoint>& GetCustomerNodeEndpointList() const { return m_customerNodeEndpointList; }
63 inline bool CustomerNodeEndpointListHasBeenSet() const { return m_customerNodeEndpointListHasBeenSet; }
64 template <typename CustomerNodeEndpointListT = Aws::Vector<CustomerNodeEndpoint>>
65 void SetCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
66 m_customerNodeEndpointListHasBeenSet = true;
67 m_customerNodeEndpointList = std::forward<CustomerNodeEndpointListT>(value);
68 }
69 template <typename CustomerNodeEndpointListT = Aws::Vector<CustomerNodeEndpoint>>
70 PrepareMigrationRequest& WithCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
71 SetCustomerNodeEndpointList(std::forward<CustomerNodeEndpointListT>(value));
72 return *this;
73 }
74 template <typename CustomerNodeEndpointListT = CustomerNodeEndpoint>
75 PrepareMigrationRequest& AddCustomerNodeEndpointList(CustomerNodeEndpointListT&& value) {
76 m_customerNodeEndpointListHasBeenSet = true;
77 m_customerNodeEndpointList.emplace_back(std::forward<CustomerNodeEndpointListT>(value));
78 return *this;
79 }
81
83
88 return m_sourceAuthenticationConfiguration;
89 }
90 inline bool SourceAuthenticationConfigurationHasBeenSet() const { return m_sourceAuthenticationConfigurationHasBeenSet; }
91 template <typename SourceAuthenticationConfigurationT = SourceAuthenticationConfiguration>
92 void SetSourceAuthenticationConfiguration(SourceAuthenticationConfigurationT&& value) {
93 m_sourceAuthenticationConfigurationHasBeenSet = true;
94 m_sourceAuthenticationConfiguration = std::forward<SourceAuthenticationConfigurationT>(value);
95 }
96 template <typename SourceAuthenticationConfigurationT = SourceAuthenticationConfiguration>
97 PrepareMigrationRequest& WithSourceAuthenticationConfiguration(SourceAuthenticationConfigurationT&& value) {
98 SetSourceAuthenticationConfiguration(std::forward<SourceAuthenticationConfigurationT>(value));
99 return *this;
100 }
102
104
107 inline const SourceTlsConfiguration& GetSourceTlsConfiguration() const { return m_sourceTlsConfiguration; }
108 inline bool SourceTlsConfigurationHasBeenSet() const { return m_sourceTlsConfigurationHasBeenSet; }
109 template <typename SourceTlsConfigurationT = SourceTlsConfiguration>
110 void SetSourceTlsConfiguration(SourceTlsConfigurationT&& value) {
111 m_sourceTlsConfigurationHasBeenSet = true;
112 m_sourceTlsConfiguration = std::forward<SourceTlsConfigurationT>(value);
113 }
114 template <typename SourceTlsConfigurationT = SourceTlsConfiguration>
115 PrepareMigrationRequest& WithSourceTlsConfiguration(SourceTlsConfigurationT&& value) {
116 SetSourceTlsConfiguration(std::forward<SourceTlsConfigurationT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_serverlessCacheName;
122
123 Aws::Vector<CustomerNodeEndpoint> m_customerNodeEndpointList;
124
125 SourceAuthenticationConfiguration m_sourceAuthenticationConfiguration;
126
127 SourceTlsConfiguration m_sourceTlsConfiguration;
128 bool m_serverlessCacheNameHasBeenSet = false;
129 bool m_customerNodeEndpointListHasBeenSet = false;
130 bool m_sourceAuthenticationConfigurationHasBeenSet = false;
131 bool m_sourceTlsConfigurationHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ElastiCache
136} // namespace Aws
const SourceTlsConfiguration & GetSourceTlsConfiguration() const
PrepareMigrationRequest & AddCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
PrepareMigrationRequest & WithSourceTlsConfiguration(SourceTlsConfigurationT &&value)
PrepareMigrationRequest & WithSourceAuthenticationConfiguration(SourceAuthenticationConfigurationT &&value)
AWS_ELASTICACHE_API PrepareMigrationRequest()=default
void SetServerlessCacheName(ServerlessCacheNameT &&value)
void SetSourceAuthenticationConfiguration(SourceAuthenticationConfigurationT &&value)
const SourceAuthenticationConfiguration & GetSourceAuthenticationConfiguration() const
PrepareMigrationRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
const Aws::Vector< CustomerNodeEndpoint > & GetCustomerNodeEndpointList() const
PrepareMigrationRequest & WithCustomerNodeEndpointList(CustomerNodeEndpointListT &&value)
void SetSourceTlsConfiguration(SourceTlsConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector