software.amazon.awssdk.services.databasemigration.model.ModifyEndpointRequest Maven / Gradle / Ivy
Show all versions of dms Show documentation
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.databasemigration.model;
import java.util.Optional;
import javax.annotation.Generated;
import software.amazon.awssdk.core.AmazonWebServiceRequest;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
*/
@Generated("software.amazon.awssdk:codegen")
public class ModifyEndpointRequest extends AmazonWebServiceRequest implements
ToCopyableBuilder {
private final String endpointArn;
private final String endpointIdentifier;
private final String endpointType;
private final String engineName;
private final String username;
private final String password;
private final String serverName;
private final Integer port;
private final String databaseName;
private final String extraConnectionAttributes;
private final String certificateArn;
private final String sslMode;
private final DynamoDbSettings dynamoDbSettings;
private final S3Settings s3Settings;
private final MongoDbSettings mongoDbSettings;
private ModifyEndpointRequest(BuilderImpl builder) {
this.endpointArn = builder.endpointArn;
this.endpointIdentifier = builder.endpointIdentifier;
this.endpointType = builder.endpointType;
this.engineName = builder.engineName;
this.username = builder.username;
this.password = builder.password;
this.serverName = builder.serverName;
this.port = builder.port;
this.databaseName = builder.databaseName;
this.extraConnectionAttributes = builder.extraConnectionAttributes;
this.certificateArn = builder.certificateArn;
this.sslMode = builder.sslMode;
this.dynamoDbSettings = builder.dynamoDbSettings;
this.s3Settings = builder.s3Settings;
this.mongoDbSettings = builder.mongoDbSettings;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @return The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public String endpointArn() {
return endpointArn;
}
/**
*
* The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits,
* and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
*
*
* @return The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters,
* digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
*/
public String endpointIdentifier() {
return endpointIdentifier;
}
/**
*
* The type of endpoint.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #endpointType} will
* return {@link ReplicationEndpointTypeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #endpointTypeString}.
*
*
* @return The type of endpoint.
* @see ReplicationEndpointTypeValue
*/
public ReplicationEndpointTypeValue endpointType() {
return ReplicationEndpointTypeValue.fromValue(endpointType);
}
/**
*
* The type of endpoint.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #endpointType} will
* return {@link ReplicationEndpointTypeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #endpointTypeString}.
*
*
* @return The type of endpoint.
* @see ReplicationEndpointTypeValue
*/
public String endpointTypeString() {
return endpointType;
}
/**
*
* The type of engine for the endpoint. Valid values, depending on the EndPointType, include MYSQL, ORACLE,
* POSTGRES, MARIADB, AURORA, REDSHIFT, S3, DYNAMODB, MONGODB, SYBASE, and SQLSERVER.
*
*
* @return The type of engine for the endpoint. Valid values, depending on the EndPointType, include MYSQL, ORACLE,
* POSTGRES, MARIADB, AURORA, REDSHIFT, S3, DYNAMODB, MONGODB, SYBASE, and SQLSERVER.
*/
public String engineName() {
return engineName;
}
/**
*
* The user name to be used to login to the endpoint database.
*
*
* @return The user name to be used to login to the endpoint database.
*/
public String username() {
return username;
}
/**
*
* The password to be used to login to the endpoint database.
*
*
* @return The password to be used to login to the endpoint database.
*/
public String password() {
return password;
}
/**
*
* The name of the server where the endpoint database resides.
*
*
* @return The name of the server where the endpoint database resides.
*/
public String serverName() {
return serverName;
}
/**
*
* The port used by the endpoint database.
*
*
* @return The port used by the endpoint database.
*/
public Integer port() {
return port;
}
/**
*
* The name of the endpoint database.
*
*
* @return The name of the endpoint database.
*/
public String databaseName() {
return databaseName;
}
/**
*
* Additional attributes associated with the connection.
*
*
* @return Additional attributes associated with the connection.
*/
public String extraConnectionAttributes() {
return extraConnectionAttributes;
}
/**
*
* The Amazon Resource Name (ARN) of the certificate used for SSL connection.
*
*
* @return The Amazon Resource Name (ARN) of the certificate used for SSL connection.
*/
public String certificateArn() {
return certificateArn;
}
/**
*
* The SSL mode to be used.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #sslMode} will
* return {@link DmsSslModeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #sslModeString}.
*
*
* @return The SSL mode to be used.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
*/
public DmsSslModeValue sslMode() {
return DmsSslModeValue.fromValue(sslMode);
}
/**
*
* The SSL mode to be used.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #sslMode} will
* return {@link DmsSslModeValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #sslModeString}.
*
*
* @return The SSL mode to be used.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
*/
public String sslModeString() {
return sslMode;
}
/**
*
* Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available
* settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB
* Database as a Target for AWS Database Migration Service.
*
*
* @return Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available
* settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon
* DynamoDB Database as a Target for AWS Database Migration Service.
*/
public DynamoDbSettings dynamoDbSettings() {
return dynamoDbSettings;
}
/**
*
* Settings in JSON format for the target S3 endpoint. For more information about the available settings, see the
* Extra Connection Attributes section at Using Amazon S3 as a Target for AWS
* Database Migration Service.
*
*
* @return Settings in JSON format for the target S3 endpoint. For more information about the available settings,
* see the Extra Connection Attributes section at Using Amazon S3 as a Target
* for AWS Database Migration Service.
*/
public S3Settings s3Settings() {
return s3Settings;
}
/**
*
* Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see
* the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at
* Using Amazon S3 as a Target
* for AWS Database Migration Service.
*
*
* @return Settings in JSON format for the source MongoDB endpoint. For more information about the available
* settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration
* Service section at Using Amazon S3 as a
* Target for AWS Database Migration Service.
*/
public MongoDbSettings mongoDbSettings() {
return mongoDbSettings;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + ((endpointArn() == null) ? 0 : endpointArn().hashCode());
hashCode = 31 * hashCode + ((endpointIdentifier() == null) ? 0 : endpointIdentifier().hashCode());
hashCode = 31 * hashCode + ((endpointTypeString() == null) ? 0 : endpointTypeString().hashCode());
hashCode = 31 * hashCode + ((engineName() == null) ? 0 : engineName().hashCode());
hashCode = 31 * hashCode + ((username() == null) ? 0 : username().hashCode());
hashCode = 31 * hashCode + ((password() == null) ? 0 : password().hashCode());
hashCode = 31 * hashCode + ((serverName() == null) ? 0 : serverName().hashCode());
hashCode = 31 * hashCode + ((port() == null) ? 0 : port().hashCode());
hashCode = 31 * hashCode + ((databaseName() == null) ? 0 : databaseName().hashCode());
hashCode = 31 * hashCode + ((extraConnectionAttributes() == null) ? 0 : extraConnectionAttributes().hashCode());
hashCode = 31 * hashCode + ((certificateArn() == null) ? 0 : certificateArn().hashCode());
hashCode = 31 * hashCode + ((sslModeString() == null) ? 0 : sslModeString().hashCode());
hashCode = 31 * hashCode + ((dynamoDbSettings() == null) ? 0 : dynamoDbSettings().hashCode());
hashCode = 31 * hashCode + ((s3Settings() == null) ? 0 : s3Settings().hashCode());
hashCode = 31 * hashCode + ((mongoDbSettings() == null) ? 0 : mongoDbSettings().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof ModifyEndpointRequest)) {
return false;
}
ModifyEndpointRequest other = (ModifyEndpointRequest) obj;
if (other.endpointArn() == null ^ this.endpointArn() == null) {
return false;
}
if (other.endpointArn() != null && !other.endpointArn().equals(this.endpointArn())) {
return false;
}
if (other.endpointIdentifier() == null ^ this.endpointIdentifier() == null) {
return false;
}
if (other.endpointIdentifier() != null && !other.endpointIdentifier().equals(this.endpointIdentifier())) {
return false;
}
if (other.endpointTypeString() == null ^ this.endpointTypeString() == null) {
return false;
}
if (other.endpointTypeString() != null && !other.endpointTypeString().equals(this.endpointTypeString())) {
return false;
}
if (other.engineName() == null ^ this.engineName() == null) {
return false;
}
if (other.engineName() != null && !other.engineName().equals(this.engineName())) {
return false;
}
if (other.username() == null ^ this.username() == null) {
return false;
}
if (other.username() != null && !other.username().equals(this.username())) {
return false;
}
if (other.password() == null ^ this.password() == null) {
return false;
}
if (other.password() != null && !other.password().equals(this.password())) {
return false;
}
if (other.serverName() == null ^ this.serverName() == null) {
return false;
}
if (other.serverName() != null && !other.serverName().equals(this.serverName())) {
return false;
}
if (other.port() == null ^ this.port() == null) {
return false;
}
if (other.port() != null && !other.port().equals(this.port())) {
return false;
}
if (other.databaseName() == null ^ this.databaseName() == null) {
return false;
}
if (other.databaseName() != null && !other.databaseName().equals(this.databaseName())) {
return false;
}
if (other.extraConnectionAttributes() == null ^ this.extraConnectionAttributes() == null) {
return false;
}
if (other.extraConnectionAttributes() != null
&& !other.extraConnectionAttributes().equals(this.extraConnectionAttributes())) {
return false;
}
if (other.certificateArn() == null ^ this.certificateArn() == null) {
return false;
}
if (other.certificateArn() != null && !other.certificateArn().equals(this.certificateArn())) {
return false;
}
if (other.sslModeString() == null ^ this.sslModeString() == null) {
return false;
}
if (other.sslModeString() != null && !other.sslModeString().equals(this.sslModeString())) {
return false;
}
if (other.dynamoDbSettings() == null ^ this.dynamoDbSettings() == null) {
return false;
}
if (other.dynamoDbSettings() != null && !other.dynamoDbSettings().equals(this.dynamoDbSettings())) {
return false;
}
if (other.s3Settings() == null ^ this.s3Settings() == null) {
return false;
}
if (other.s3Settings() != null && !other.s3Settings().equals(this.s3Settings())) {
return false;
}
if (other.mongoDbSettings() == null ^ this.mongoDbSettings() == null) {
return false;
}
if (other.mongoDbSettings() != null && !other.mongoDbSettings().equals(this.mongoDbSettings())) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("{");
if (endpointArn() != null) {
sb.append("EndpointArn: ").append(endpointArn()).append(",");
}
if (endpointIdentifier() != null) {
sb.append("EndpointIdentifier: ").append(endpointIdentifier()).append(",");
}
if (endpointTypeString() != null) {
sb.append("EndpointType: ").append(endpointTypeString()).append(",");
}
if (engineName() != null) {
sb.append("EngineName: ").append(engineName()).append(",");
}
if (username() != null) {
sb.append("Username: ").append(username()).append(",");
}
if (password() != null) {
sb.append("Password: ").append(password()).append(",");
}
if (serverName() != null) {
sb.append("ServerName: ").append(serverName()).append(",");
}
if (port() != null) {
sb.append("Port: ").append(port()).append(",");
}
if (databaseName() != null) {
sb.append("DatabaseName: ").append(databaseName()).append(",");
}
if (extraConnectionAttributes() != null) {
sb.append("ExtraConnectionAttributes: ").append(extraConnectionAttributes()).append(",");
}
if (certificateArn() != null) {
sb.append("CertificateArn: ").append(certificateArn()).append(",");
}
if (sslModeString() != null) {
sb.append("SslMode: ").append(sslModeString()).append(",");
}
if (dynamoDbSettings() != null) {
sb.append("DynamoDbSettings: ").append(dynamoDbSettings()).append(",");
}
if (s3Settings() != null) {
sb.append("S3Settings: ").append(s3Settings()).append(",");
}
if (mongoDbSettings() != null) {
sb.append("MongoDbSettings: ").append(mongoDbSettings()).append(",");
}
if (sb.length() > 1) {
sb.setLength(sb.length() - 1);
}
sb.append("}");
return sb.toString();
}
public Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "EndpointArn":
return Optional.of(clazz.cast(endpointArn()));
case "EndpointIdentifier":
return Optional.of(clazz.cast(endpointIdentifier()));
case "EndpointType":
return Optional.of(clazz.cast(endpointTypeString()));
case "EngineName":
return Optional.of(clazz.cast(engineName()));
case "Username":
return Optional.of(clazz.cast(username()));
case "Password":
return Optional.of(clazz.cast(password()));
case "ServerName":
return Optional.of(clazz.cast(serverName()));
case "Port":
return Optional.of(clazz.cast(port()));
case "DatabaseName":
return Optional.of(clazz.cast(databaseName()));
case "ExtraConnectionAttributes":
return Optional.of(clazz.cast(extraConnectionAttributes()));
case "CertificateArn":
return Optional.of(clazz.cast(certificateArn()));
case "SslMode":
return Optional.of(clazz.cast(sslModeString()));
case "DynamoDbSettings":
return Optional.of(clazz.cast(dynamoDbSettings()));
case "S3Settings":
return Optional.of(clazz.cast(s3Settings()));
case "MongoDbSettings":
return Optional.of(clazz.cast(mongoDbSettings()));
default:
return Optional.empty();
}
}
public interface Builder extends CopyableBuilder {
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param endpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder endpointArn(String endpointArn);
/**
*
* The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters,
* digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
*
*
* @param endpointIdentifier
* The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII
* letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder endpointIdentifier(String endpointIdentifier);
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @see ReplicationEndpointTypeValue
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReplicationEndpointTypeValue
*/
Builder endpointType(String endpointType);
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @see ReplicationEndpointTypeValue
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReplicationEndpointTypeValue
*/
Builder endpointType(ReplicationEndpointTypeValue endpointType);
/**
*
* The type of engine for the endpoint. Valid values, depending on the EndPointType, include MYSQL, ORACLE,
* POSTGRES, MARIADB, AURORA, REDSHIFT, S3, DYNAMODB, MONGODB, SYBASE, and SQLSERVER.
*
*
* @param engineName
* The type of engine for the endpoint. Valid values, depending on the EndPointType, include MYSQL,
* ORACLE, POSTGRES, MARIADB, AURORA, REDSHIFT, S3, DYNAMODB, MONGODB, SYBASE, and SQLSERVER.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder engineName(String engineName);
/**
*
* The user name to be used to login to the endpoint database.
*
*
* @param username
* The user name to be used to login to the endpoint database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder username(String username);
/**
*
* The password to be used to login to the endpoint database.
*
*
* @param password
* The password to be used to login to the endpoint database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder password(String password);
/**
*
* The name of the server where the endpoint database resides.
*
*
* @param serverName
* The name of the server where the endpoint database resides.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder serverName(String serverName);
/**
*
* The port used by the endpoint database.
*
*
* @param port
* The port used by the endpoint database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder port(Integer port);
/**
*
* The name of the endpoint database.
*
*
* @param databaseName
* The name of the endpoint database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder databaseName(String databaseName);
/**
*
* Additional attributes associated with the connection.
*
*
* @param extraConnectionAttributes
* Additional attributes associated with the connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder extraConnectionAttributes(String extraConnectionAttributes);
/**
*
* The Amazon Resource Name (ARN) of the certificate used for SSL connection.
*
*
* @param certificateArn
* The Amazon Resource Name (ARN) of the certificate used for SSL connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder certificateArn(String certificateArn);
/**
*
* The SSL mode to be used.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode to be used.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
* @return Returns a reference to this object so that method calls can be chained together.
* @see DmsSslModeValue
*/
Builder sslMode(String sslMode);
/**
*
* The SSL mode to be used.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode to be used.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
* @return Returns a reference to this object so that method calls can be chained together.
* @see DmsSslModeValue
*/
Builder sslMode(DmsSslModeValue sslMode);
/**
*
* Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available
* settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB
* Database as a Target for AWS Database Migration Service.
*
*
* @param dynamoDbSettings
* Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the
* available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon
* DynamoDB Database as a Target for AWS Database Migration Service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings);
/**
*
* Settings in JSON format for the target S3 endpoint. For more information about the available settings, see
* the Extra Connection Attributes section at Using Amazon S3 as a Target for
* AWS Database Migration Service.
*
*
* @param s3Settings
* Settings in JSON format for the target S3 endpoint. For more information about the available settings,
* see the Extra Connection Attributes section at Using Amazon S3 as a
* Target for AWS Database Migration Service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder s3Settings(S3Settings s3Settings);
/**
*
* Settings in JSON format for the source MongoDB endpoint. For more information about the available settings,
* see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service
* section at Using Amazon
* S3 as a Target for AWS Database Migration Service.
*
*
* @param mongoDbSettings
* Settings in JSON format for the source MongoDB endpoint. For more information about the available
* settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database
* Migration Service section at Using Amazon S3 as a
* Target for AWS Database Migration Service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder mongoDbSettings(MongoDbSettings mongoDbSettings);
}
static final class BuilderImpl implements Builder {
private String endpointArn;
private String endpointIdentifier;
private String endpointType;
private String engineName;
private String username;
private String password;
private String serverName;
private Integer port;
private String databaseName;
private String extraConnectionAttributes;
private String certificateArn;
private String sslMode;
private DynamoDbSettings dynamoDbSettings;
private S3Settings s3Settings;
private MongoDbSettings mongoDbSettings;
private BuilderImpl() {
}
private BuilderImpl(ModifyEndpointRequest model) {
endpointArn(model.endpointArn);
endpointIdentifier(model.endpointIdentifier);
endpointType(model.endpointType);
engineName(model.engineName);
username(model.username);
password(model.password);
serverName(model.serverName);
port(model.port);
databaseName(model.databaseName);
extraConnectionAttributes(model.extraConnectionAttributes);
certificateArn(model.certificateArn);
sslMode(model.sslMode);
dynamoDbSettings(model.dynamoDbSettings);
s3Settings(model.s3Settings);
mongoDbSettings(model.mongoDbSettings);
}
public final String getEndpointArn() {
return endpointArn;
}
@Override
public final Builder endpointArn(String endpointArn) {
this.endpointArn = endpointArn;
return this;
}
public final void setEndpointArn(String endpointArn) {
this.endpointArn = endpointArn;
}
public final String getEndpointIdentifier() {
return endpointIdentifier;
}
@Override
public final Builder endpointIdentifier(String endpointIdentifier) {
this.endpointIdentifier = endpointIdentifier;
return this;
}
public final void setEndpointIdentifier(String endpointIdentifier) {
this.endpointIdentifier = endpointIdentifier;
}
public final String getEndpointType() {
return endpointType;
}
@Override
public final Builder endpointType(String endpointType) {
this.endpointType = endpointType;
return this;
}
@Override
public final Builder endpointType(ReplicationEndpointTypeValue endpointType) {
this.endpointType(endpointType.toString());
return this;
}
public final void setEndpointType(String endpointType) {
this.endpointType = endpointType;
}
public final String getEngineName() {
return engineName;
}
@Override
public final Builder engineName(String engineName) {
this.engineName = engineName;
return this;
}
public final void setEngineName(String engineName) {
this.engineName = engineName;
}
public final String getUsername() {
return username;
}
@Override
public final Builder username(String username) {
this.username = username;
return this;
}
public final void setUsername(String username) {
this.username = username;
}
public final String getPassword() {
return password;
}
@Override
public final Builder password(String password) {
this.password = password;
return this;
}
public final void setPassword(String password) {
this.password = password;
}
public final String getServerName() {
return serverName;
}
@Override
public final Builder serverName(String serverName) {
this.serverName = serverName;
return this;
}
public final void setServerName(String serverName) {
this.serverName = serverName;
}
public final Integer getPort() {
return port;
}
@Override
public final Builder port(Integer port) {
this.port = port;
return this;
}
public final void setPort(Integer port) {
this.port = port;
}
public final String getDatabaseName() {
return databaseName;
}
@Override
public final Builder databaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
public final void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
public final String getExtraConnectionAttributes() {
return extraConnectionAttributes;
}
@Override
public final Builder extraConnectionAttributes(String extraConnectionAttributes) {
this.extraConnectionAttributes = extraConnectionAttributes;
return this;
}
public final void setExtraConnectionAttributes(String extraConnectionAttributes) {
this.extraConnectionAttributes = extraConnectionAttributes;
}
public final String getCertificateArn() {
return certificateArn;
}
@Override
public final Builder certificateArn(String certificateArn) {
this.certificateArn = certificateArn;
return this;
}
public final void setCertificateArn(String certificateArn) {
this.certificateArn = certificateArn;
}
public final String getSslMode() {
return sslMode;
}
@Override
public final Builder sslMode(String sslMode) {
this.sslMode = sslMode;
return this;
}
@Override
public final Builder sslMode(DmsSslModeValue sslMode) {
this.sslMode(sslMode.toString());
return this;
}
public final void setSslMode(String sslMode) {
this.sslMode = sslMode;
}
public final DynamoDbSettings.Builder getDynamoDbSettings() {
return dynamoDbSettings != null ? dynamoDbSettings.toBuilder() : null;
}
@Override
public final Builder dynamoDbSettings(DynamoDbSettings dynamoDbSettings) {
this.dynamoDbSettings = dynamoDbSettings;
return this;
}
public final void setDynamoDbSettings(DynamoDbSettings.BuilderImpl dynamoDbSettings) {
this.dynamoDbSettings = dynamoDbSettings != null ? dynamoDbSettings.build() : null;
}
public final S3Settings.Builder getS3Settings() {
return s3Settings != null ? s3Settings.toBuilder() : null;
}
@Override
public final Builder s3Settings(S3Settings s3Settings) {
this.s3Settings = s3Settings;
return this;
}
public final void setS3Settings(S3Settings.BuilderImpl s3Settings) {
this.s3Settings = s3Settings != null ? s3Settings.build() : null;
}
public final MongoDbSettings.Builder getMongoDbSettings() {
return mongoDbSettings != null ? mongoDbSettings.toBuilder() : null;
}
@Override
public final Builder mongoDbSettings(MongoDbSettings mongoDbSettings) {
this.mongoDbSettings = mongoDbSettings;
return this;
}
public final void setMongoDbSettings(MongoDbSettings.BuilderImpl mongoDbSettings) {
this.mongoDbSettings = mongoDbSettings != null ? mongoDbSettings.build() : null;
}
@Override
public ModifyEndpointRequest build() {
return new ModifyEndpointRequest(this);
}
}
}