AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
50 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
51 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
52 inline RedisSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
53 inline RedisSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
54 inline RedisSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
56
58
61 inline int GetPort() const{ return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
64 inline RedisSettings& WithPort(int value) { SetPort(value); return *this;}
66
68
79 inline const SslSecurityProtocolValue& GetSslSecurityProtocol() const{ return m_sslSecurityProtocol; }
80 inline bool SslSecurityProtocolHasBeenSet() const { return m_sslSecurityProtocolHasBeenSet; }
81 inline void SetSslSecurityProtocol(const SslSecurityProtocolValue& value) { m_sslSecurityProtocolHasBeenSet = true; m_sslSecurityProtocol = value; }
82 inline void SetSslSecurityProtocol(SslSecurityProtocolValue&& value) { m_sslSecurityProtocolHasBeenSet = true; m_sslSecurityProtocol = std::move(value); }
84 inline RedisSettings& WithSslSecurityProtocol(SslSecurityProtocolValue&& value) { SetSslSecurityProtocol(std::move(value)); return *this;}
86
88
96 inline const RedisAuthTypeValue& GetAuthType() const{ return m_authType; }
97 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
98 inline void SetAuthType(const RedisAuthTypeValue& value) { m_authTypeHasBeenSet = true; m_authType = value; }
99 inline void SetAuthType(RedisAuthTypeValue&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
100 inline RedisSettings& WithAuthType(const RedisAuthTypeValue& value) { SetAuthType(value); return *this;}
101 inline RedisSettings& WithAuthType(RedisAuthTypeValue&& value) { SetAuthType(std::move(value)); return *this;}
103
105
109 inline const Aws::String& GetAuthUserName() const{ return m_authUserName; }
110 inline bool AuthUserNameHasBeenSet() const { return m_authUserNameHasBeenSet; }
111 inline void SetAuthUserName(const Aws::String& value) { m_authUserNameHasBeenSet = true; m_authUserName = value; }
112 inline void SetAuthUserName(Aws::String&& value) { m_authUserNameHasBeenSet = true; m_authUserName = std::move(value); }
113 inline void SetAuthUserName(const char* value) { m_authUserNameHasBeenSet = true; m_authUserName.assign(value); }
114 inline RedisSettings& WithAuthUserName(const Aws::String& value) { SetAuthUserName(value); return *this;}
115 inline RedisSettings& WithAuthUserName(Aws::String&& value) { SetAuthUserName(std::move(value)); return *this;}
116 inline RedisSettings& WithAuthUserName(const char* value) { SetAuthUserName(value); return *this;}
118
120
125 inline const Aws::String& GetAuthPassword() const{ return m_authPassword; }
126 inline bool AuthPasswordHasBeenSet() const { return m_authPasswordHasBeenSet; }
127 inline void SetAuthPassword(const Aws::String& value) { m_authPasswordHasBeenSet = true; m_authPassword = value; }
128 inline void SetAuthPassword(Aws::String&& value) { m_authPasswordHasBeenSet = true; m_authPassword = std::move(value); }
129 inline void SetAuthPassword(const char* value) { m_authPasswordHasBeenSet = true; m_authPassword.assign(value); }
130 inline RedisSettings& WithAuthPassword(const Aws::String& value) { SetAuthPassword(value); return *this;}
131 inline RedisSettings& WithAuthPassword(Aws::String&& value) { SetAuthPassword(std::move(value)); return *this;}
132 inline RedisSettings& WithAuthPassword(const char* value) { SetAuthPassword(value); return *this;}
134
136
140 inline const Aws::String& GetSslCaCertificateArn() const{ return m_sslCaCertificateArn; }
141 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
142 inline void SetSslCaCertificateArn(const Aws::String& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = value; }
143 inline void SetSslCaCertificateArn(Aws::String&& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = std::move(value); }
144 inline void SetSslCaCertificateArn(const char* value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn.assign(value); }
145 inline RedisSettings& WithSslCaCertificateArn(const Aws::String& value) { SetSslCaCertificateArn(value); return *this;}
146 inline RedisSettings& WithSslCaCertificateArn(Aws::String&& value) { SetSslCaCertificateArn(std::move(value)); return *this;}
147 inline RedisSettings& WithSslCaCertificateArn(const char* value) { SetSslCaCertificateArn(value); return *this;}
149 private:
150
151 Aws::String m_serverName;
152 bool m_serverNameHasBeenSet = false;
153
154 int m_port;
155 bool m_portHasBeenSet = false;
156
157 SslSecurityProtocolValue m_sslSecurityProtocol;
158 bool m_sslSecurityProtocolHasBeenSet = false;
159
160 RedisAuthTypeValue m_authType;
161 bool m_authTypeHasBeenSet = false;
162
163 Aws::String m_authUserName;
164 bool m_authUserNameHasBeenSet = false;
165
166 Aws::String m_authPassword;
167 bool m_authPasswordHasBeenSet = false;
168
169 Aws::String m_sslCaCertificateArn;
170 bool m_sslCaCertificateArnHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace DatabaseMigrationService
175} // namespace Aws
RedisSettings & WithSslSecurityProtocol(const SslSecurityProtocolValue &value)
RedisSettings & WithSslSecurityProtocol(SslSecurityProtocolValue &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const RedisAuthTypeValue & GetAuthType() const
void SetSslCaCertificateArn(const Aws::String &value)
RedisSettings & WithAuthPassword(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings(Aws::Utils::Json::JsonView jsonValue)
RedisSettings & WithAuthUserName(const Aws::String &value)
RedisSettings & WithAuthType(RedisAuthTypeValue &&value)
RedisSettings & WithServerName(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings()
RedisSettings & WithSslCaCertificateArn(Aws::String &&value)
RedisSettings & WithAuthPassword(const Aws::String &value)
void SetAuthType(const RedisAuthTypeValue &value)
AWS_DATABASEMIGRATIONSERVICE_API RedisSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthType(RedisAuthTypeValue &&value)
RedisSettings & WithAuthPassword(const char *value)
RedisSettings & WithSslCaCertificateArn(const char *value)
void SetSslSecurityProtocol(const SslSecurityProtocolValue &value)
RedisSettings & WithAuthUserName(Aws::String &&value)
RedisSettings & WithServerName(const Aws::String &value)
void SetSslSecurityProtocol(SslSecurityProtocolValue &&value)
RedisSettings & WithServerName(const char *value)
RedisSettings & WithAuthUserName(const char *value)
RedisSettings & WithSslCaCertificateArn(const Aws::String &value)
RedisSettings & WithAuthType(const RedisAuthTypeValue &value)
const SslSecurityProtocolValue & GetSslSecurityProtocol() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue