AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RedisSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/RedisAuthTypeValue.h>
10#include <aws/dms/model/SslSecurityProtocolValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DatabaseMigrationService {
22namespace Model {
23
31 public:
32 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings() = default;
33 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetServerName() const { return m_serverName; }
42 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
43 template <typename ServerNameT = Aws::String>
44 void SetServerName(ServerNameT&& value) {
45 m_serverNameHasBeenSet = true;
46 m_serverName = std::forward<ServerNameT>(value);
47 }
48 template <typename ServerNameT = Aws::String>
49 RedisSettings& WithServerName(ServerNameT&& value) {
50 SetServerName(std::forward<ServerNameT>(value));
51 return *this;
52 }
54
56
59 inline int GetPort() const { return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) {
62 m_portHasBeenSet = true;
63 m_port = value;
64 }
65 inline RedisSettings& WithPort(int value) {
66 SetPort(value);
67 return *this;
68 }
70
72
83 inline SslSecurityProtocolValue GetSslSecurityProtocol() const { return m_sslSecurityProtocol; }
84 inline bool SslSecurityProtocolHasBeenSet() const { return m_sslSecurityProtocolHasBeenSet; }
86 m_sslSecurityProtocolHasBeenSet = true;
87 m_sslSecurityProtocol = value;
88 }
91 return *this;
92 }
94
96
104 inline RedisAuthTypeValue GetAuthType() const { return m_authType; }
105 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
106 inline void SetAuthType(RedisAuthTypeValue value) {
107 m_authTypeHasBeenSet = true;
108 m_authType = value;
109 }
111 SetAuthType(value);
112 return *this;
113 }
115
117
121 inline const Aws::String& GetAuthUserName() const { return m_authUserName; }
122 inline bool AuthUserNameHasBeenSet() const { return m_authUserNameHasBeenSet; }
123 template <typename AuthUserNameT = Aws::String>
124 void SetAuthUserName(AuthUserNameT&& value) {
125 m_authUserNameHasBeenSet = true;
126 m_authUserName = std::forward<AuthUserNameT>(value);
127 }
128 template <typename AuthUserNameT = Aws::String>
129 RedisSettings& WithAuthUserName(AuthUserNameT&& value) {
130 SetAuthUserName(std::forward<AuthUserNameT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetAuthPassword() const { return m_authPassword; }
142 inline bool AuthPasswordHasBeenSet() const { return m_authPasswordHasBeenSet; }
143 template <typename AuthPasswordT = Aws::String>
144 void SetAuthPassword(AuthPasswordT&& value) {
145 m_authPasswordHasBeenSet = true;
146 m_authPassword = std::forward<AuthPasswordT>(value);
147 }
148 template <typename AuthPasswordT = Aws::String>
149 RedisSettings& WithAuthPassword(AuthPasswordT&& value) {
150 SetAuthPassword(std::forward<AuthPasswordT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSslCaCertificateArn() const { return m_sslCaCertificateArn; }
161 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
162 template <typename SslCaCertificateArnT = Aws::String>
163 void SetSslCaCertificateArn(SslCaCertificateArnT&& value) {
164 m_sslCaCertificateArnHasBeenSet = true;
165 m_sslCaCertificateArn = std::forward<SslCaCertificateArnT>(value);
166 }
167 template <typename SslCaCertificateArnT = Aws::String>
168 RedisSettings& WithSslCaCertificateArn(SslCaCertificateArnT&& value) {
169 SetSslCaCertificateArn(std::forward<SslCaCertificateArnT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_serverName;
175
176 int m_port{0};
177
179
181
182 Aws::String m_authUserName;
183
184 Aws::String m_authPassword;
185
186 Aws::String m_sslCaCertificateArn;
187 bool m_serverNameHasBeenSet = false;
188 bool m_portHasBeenSet = false;
189 bool m_sslSecurityProtocolHasBeenSet = false;
190 bool m_authTypeHasBeenSet = false;
191 bool m_authUserNameHasBeenSet = false;
192 bool m_authPasswordHasBeenSet = false;
193 bool m_sslCaCertificateArnHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace DatabaseMigrationService
198} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RedisSettings & WithSslCaCertificateArn(SslCaCertificateArnT &&value)
void SetSslSecurityProtocol(SslSecurityProtocolValue value)
RedisSettings & WithAuthPassword(AuthPasswordT &&value)
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings(Aws::Utils::Json::JsonView jsonValue)
void SetSslCaCertificateArn(SslCaCertificateArnT &&value)
RedisSettings & WithServerName(ServerNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
RedisSettings & WithAuthType(RedisAuthTypeValue value)
RedisSettings & WithAuthUserName(AuthUserNameT &&value)
RedisSettings & WithSslSecurityProtocol(SslSecurityProtocolValue value)
SslSecurityProtocolValue GetSslSecurityProtocol() const
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue