Class CfnEndpoint.RedisSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dms.CfnEndpoint.RedisSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.RedisSettingsProperty>
- Enclosing interface:
CfnEndpoint.RedisSettingsProperty
@Stability(Stable)
public static final class CfnEndpoint.RedisSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.RedisSettingsProperty>
A builder for
CfnEndpoint.RedisSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthPassword(String authPassword) Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthPassword()Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthType()authUserName(String authUserName) Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthUserName()build()Builds the configured instance.Sets the value ofCfnEndpoint.RedisSettingsProperty.getPort()serverName(String serverName) Sets the value ofCfnEndpoint.RedisSettingsProperty.getServerName()sslCaCertificateArn(String sslCaCertificateArn) Sets the value ofCfnEndpoint.RedisSettingsProperty.getSslCaCertificateArn()sslSecurityProtocol(String sslSecurityProtocol) Sets the value ofCfnEndpoint.RedisSettingsProperty.getSslSecurityProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authPassword
@Stability(Stable) public CfnEndpoint.RedisSettingsProperty.Builder authPassword(String authPassword) Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthPassword()- Parameters:
authPassword- The password provided with theauth-roleandauth-tokenoptions of theAuthTypesetting for a Redis target endpoint.- Returns:
this
-
authType
Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthType()- Parameters:
authType- The type of authentication to perform when connecting to a Redis target. Options includenone,auth-token, andauth-role. Theauth-tokenoption requires anAuthPasswordvalue to be provided. Theauth-roleoption requiresAuthUserNameandAuthPasswordvalues to be provided.- Returns:
this
-
authUserName
@Stability(Stable) public CfnEndpoint.RedisSettingsProperty.Builder authUserName(String authUserName) Sets the value ofCfnEndpoint.RedisSettingsProperty.getAuthUserName()- Parameters:
authUserName- The user name provided with theauth-roleoption of theAuthTypesetting for a Redis target endpoint.- Returns:
this
-
port
Sets the value ofCfnEndpoint.RedisSettingsProperty.getPort()- Parameters:
port- Transmission Control Protocol (TCP) port for the endpoint.- Returns:
this
-
serverName
Sets the value ofCfnEndpoint.RedisSettingsProperty.getServerName()- Parameters:
serverName- Fully qualified domain name of the endpoint.- Returns:
this
-
sslCaCertificateArn
@Stability(Stable) public CfnEndpoint.RedisSettingsProperty.Builder sslCaCertificateArn(String sslCaCertificateArn) Sets the value ofCfnEndpoint.RedisSettingsProperty.getSslCaCertificateArn()- Parameters:
sslCaCertificateArn- The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to connect to your Redis target endpoint.- Returns:
this
-
sslSecurityProtocol
@Stability(Stable) public CfnEndpoint.RedisSettingsProperty.Builder sslSecurityProtocol(String sslSecurityProtocol) Sets the value ofCfnEndpoint.RedisSettingsProperty.getSslSecurityProtocol()- Parameters:
sslSecurityProtocol- The connection to a Redis target endpoint using Transport Layer Security (TLS). Valid values includeplaintextandssl-encryption. The default isssl-encryption. Thessl-encryptionoption makes an encrypted connection. Optionally, you can identify an Amazon Resource Name (ARN) for an SSL certificate authority (CA) using theSslCaCertificateArnsetting. If an ARN isn't given for a CA, DMS uses the Amazon root CA.The
plaintextoption doesn't provide Transport Layer Security (TLS) encryption for traffic between endpoint and database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpoint.RedisSettingsProperty>- Returns:
- a new instance of
CfnEndpoint.RedisSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-