AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RedisSettings.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/model/SslSecurityProtocolValue.h>
10#include <aws/dms/model/RedisAuthTypeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings() = default;
38 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API RedisSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetServerName() const { return m_serverName; }
48 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
49 template<typename ServerNameT = Aws::String>
50 void SetServerName(ServerNameT&& value) { m_serverNameHasBeenSet = true; m_serverName = std::forward<ServerNameT>(value); }
51 template<typename ServerNameT = Aws::String>
52 RedisSettings& WithServerName(ServerNameT&& value) { SetServerName(std::forward<ServerNameT>(value)); return *this;}
54
56
59 inline int GetPort() const { return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
62 inline RedisSettings& WithPort(int value) { SetPort(value); return *this;}
64
66
77 inline SslSecurityProtocolValue GetSslSecurityProtocol() const { return m_sslSecurityProtocol; }
78 inline bool SslSecurityProtocolHasBeenSet() const { return m_sslSecurityProtocolHasBeenSet; }
79 inline void SetSslSecurityProtocol(SslSecurityProtocolValue value) { m_sslSecurityProtocolHasBeenSet = true; m_sslSecurityProtocol = value; }
82
84
92 inline RedisAuthTypeValue GetAuthType() const { return m_authType; }
93 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
94 inline void SetAuthType(RedisAuthTypeValue value) { m_authTypeHasBeenSet = true; m_authType = value; }
95 inline RedisSettings& WithAuthType(RedisAuthTypeValue value) { SetAuthType(value); return *this;}
97
99
103 inline const Aws::String& GetAuthUserName() const { return m_authUserName; }
104 inline bool AuthUserNameHasBeenSet() const { return m_authUserNameHasBeenSet; }
105 template<typename AuthUserNameT = Aws::String>
106 void SetAuthUserName(AuthUserNameT&& value) { m_authUserNameHasBeenSet = true; m_authUserName = std::forward<AuthUserNameT>(value); }
107 template<typename AuthUserNameT = Aws::String>
108 RedisSettings& WithAuthUserName(AuthUserNameT&& value) { SetAuthUserName(std::forward<AuthUserNameT>(value)); return *this;}
110
112
117 inline const Aws::String& GetAuthPassword() const { return m_authPassword; }
118 inline bool AuthPasswordHasBeenSet() const { return m_authPasswordHasBeenSet; }
119 template<typename AuthPasswordT = Aws::String>
120 void SetAuthPassword(AuthPasswordT&& value) { m_authPasswordHasBeenSet = true; m_authPassword = std::forward<AuthPasswordT>(value); }
121 template<typename AuthPasswordT = Aws::String>
122 RedisSettings& WithAuthPassword(AuthPasswordT&& value) { SetAuthPassword(std::forward<AuthPasswordT>(value)); return *this;}
124
126
130 inline const Aws::String& GetSslCaCertificateArn() const { return m_sslCaCertificateArn; }
131 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
132 template<typename SslCaCertificateArnT = Aws::String>
133 void SetSslCaCertificateArn(SslCaCertificateArnT&& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = std::forward<SslCaCertificateArnT>(value); }
134 template<typename SslCaCertificateArnT = Aws::String>
135 RedisSettings& WithSslCaCertificateArn(SslCaCertificateArnT&& value) { SetSslCaCertificateArn(std::forward<SslCaCertificateArnT>(value)); return *this;}
137 private:
138
139 Aws::String m_serverName;
140 bool m_serverNameHasBeenSet = false;
141
142 int m_port{0};
143 bool m_portHasBeenSet = false;
144
146 bool m_sslSecurityProtocolHasBeenSet = false;
147
149 bool m_authTypeHasBeenSet = false;
150
151 Aws::String m_authUserName;
152 bool m_authUserNameHasBeenSet = false;
153
154 Aws::String m_authPassword;
155 bool m_authPasswordHasBeenSet = false;
156
157 Aws::String m_sslCaCertificateArn;
158 bool m_sslCaCertificateArnHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace DatabaseMigrationService
163} // 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