com.amazonaws.services.databasemigrationservice.model.Endpoint Maven / Gradle / Ivy
/*
* 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 com.amazonaws.services.databasemigrationservice.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Endpoint implements Serializable, Cloneable, StructuredPojo {
/**
*
* 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.
*
*/
private String endpointIdentifier;
/**
*
* The type of endpoint.
*
*/
private String endpointType;
/**
*
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES, MARIADB,
* AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*
*/
private String engineName;
/**
*
* The user name used to connect to the endpoint.
*
*/
private String username;
/**
*
* The name of the server at the endpoint.
*
*/
private String serverName;
/**
*
* The port value used to access the endpoint.
*
*/
private Integer port;
/**
*
* The name of the database at the endpoint.
*
*/
private String databaseName;
/**
*
* Additional connection attributes used to connect to the endpoint.
*
*/
private String extraConnectionAttributes;
/**
*
* The status of the endpoint.
*
*/
private String status;
/**
*
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for
* the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption
* key for your AWS account. Your AWS account has a different default encryption key for each AWS region.
*
*/
private String kmsKeyId;
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*/
private String endpointArn;
/**
*
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*
*/
private String certificateArn;
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*/
private String sslMode;
/**
*
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent
* call to CreateEndpoint to create the endpoint with a cross-account.
*
*/
private String externalId;
/**
*
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
*
*/
private DynamoDbSettings dynamoDbSettings;
/**
*
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*
*/
private S3Settings s3Settings;
/**
*
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*
*/
private MongoDbSettings mongoDbSettings;
/**
*
* 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.
*/
public void setEndpointIdentifier(String endpointIdentifier) {
this.endpointIdentifier = 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 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 getEndpointIdentifier() {
return this.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.
*
*
* @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.
*/
public Endpoint withEndpointIdentifier(String endpointIdentifier) {
setEndpointIdentifier(endpointIdentifier);
return this;
}
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @see ReplicationEndpointTypeValue
*/
public void setEndpointType(String endpointType) {
this.endpointType = endpointType;
}
/**
*
* The type of endpoint.
*
*
* @return The type of endpoint.
* @see ReplicationEndpointTypeValue
*/
public String getEndpointType() {
return this.endpointType;
}
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReplicationEndpointTypeValue
*/
public Endpoint withEndpointType(String endpointType) {
setEndpointType(endpointType);
return this;
}
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @see ReplicationEndpointTypeValue
*/
public void setEndpointType(ReplicationEndpointTypeValue endpointType) {
this.endpointType = endpointType.toString();
}
/**
*
* The type of endpoint.
*
*
* @param endpointType
* The type of endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReplicationEndpointTypeValue
*/
public Endpoint withEndpointType(ReplicationEndpointTypeValue endpointType) {
setEndpointType(endpointType);
return this;
}
/**
*
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES, MARIADB,
* AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*
*
* @param engineName
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES,
* MARIADB, AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*/
public void setEngineName(String engineName) {
this.engineName = engineName;
}
/**
*
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES, MARIADB,
* AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*
*
* @return The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES,
* MARIADB, AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*/
public String getEngineName() {
return this.engineName;
}
/**
*
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES, MARIADB,
* AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
*
*
* @param engineName
* The database engine name. Valid values, depending on the EndPointType, include MYSQL, ORACLE, POSTGRES,
* MARIADB, AURORA, REDSHIFT, S3, SYBASE, DYNAMODB, MONGODB, and SQLSERVER.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withEngineName(String engineName) {
setEngineName(engineName);
return this;
}
/**
*
* The user name used to connect to the endpoint.
*
*
* @param username
* The user name used to connect to the endpoint.
*/
public void setUsername(String username) {
this.username = username;
}
/**
*
* The user name used to connect to the endpoint.
*
*
* @return The user name used to connect to the endpoint.
*/
public String getUsername() {
return this.username;
}
/**
*
* The user name used to connect to the endpoint.
*
*
* @param username
* The user name used to connect to the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withUsername(String username) {
setUsername(username);
return this;
}
/**
*
* The name of the server at the endpoint.
*
*
* @param serverName
* The name of the server at the endpoint.
*/
public void setServerName(String serverName) {
this.serverName = serverName;
}
/**
*
* The name of the server at the endpoint.
*
*
* @return The name of the server at the endpoint.
*/
public String getServerName() {
return this.serverName;
}
/**
*
* The name of the server at the endpoint.
*
*
* @param serverName
* The name of the server at the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withServerName(String serverName) {
setServerName(serverName);
return this;
}
/**
*
* The port value used to access the endpoint.
*
*
* @param port
* The port value used to access the endpoint.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port value used to access the endpoint.
*
*
* @return The port value used to access the endpoint.
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port value used to access the endpoint.
*
*
* @param port
* The port value used to access the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The name of the database at the endpoint.
*
*
* @param databaseName
* The name of the database at the endpoint.
*/
public void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
/**
*
* The name of the database at the endpoint.
*
*
* @return The name of the database at the endpoint.
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
*
* The name of the database at the endpoint.
*
*
* @param databaseName
* The name of the database at the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withDatabaseName(String databaseName) {
setDatabaseName(databaseName);
return this;
}
/**
*
* Additional connection attributes used to connect to the endpoint.
*
*
* @param extraConnectionAttributes
* Additional connection attributes used to connect to the endpoint.
*/
public void setExtraConnectionAttributes(String extraConnectionAttributes) {
this.extraConnectionAttributes = extraConnectionAttributes;
}
/**
*
* Additional connection attributes used to connect to the endpoint.
*
*
* @return Additional connection attributes used to connect to the endpoint.
*/
public String getExtraConnectionAttributes() {
return this.extraConnectionAttributes;
}
/**
*
* Additional connection attributes used to connect to the endpoint.
*
*
* @param extraConnectionAttributes
* Additional connection attributes used to connect to the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withExtraConnectionAttributes(String extraConnectionAttributes) {
setExtraConnectionAttributes(extraConnectionAttributes);
return this;
}
/**
*
* The status of the endpoint.
*
*
* @param status
* The status of the endpoint.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the endpoint.
*
*
* @return The status of the endpoint.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the endpoint.
*
*
* @param status
* The status of the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for
* the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption
* key for your AWS account. Your AWS account has a different default encryption key for each AWS region.
*
*
* @param kmsKeyId
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a
* value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the
* default encryption key for your AWS account. Your AWS account has a different default encryption key for
* each AWS region.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for
* the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption
* key for your AWS account. Your AWS account has a different default encryption key for each AWS region.
*
*
* @return The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a
* value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the
* default encryption key for your AWS account. Your AWS account has a different default encryption key for
* each AWS region.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for
* the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption
* key for your AWS account. Your AWS account has a different default encryption key for each AWS region.
*
*
* @param kmsKeyId
* The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a
* value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the
* default encryption key for your AWS account. Your AWS account has a different default encryption key for
* each AWS region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param endpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public void setEndpointArn(String endpointArn) {
this.endpointArn = endpointArn;
}
/**
*
* 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 getEndpointArn() {
return this.endpointArn;
}
/**
*
* 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.
*/
public Endpoint withEndpointArn(String endpointArn) {
setEndpointArn(endpointArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*
*
* @param certificateArn
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*/
public void setCertificateArn(String certificateArn) {
this.certificateArn = certificateArn;
}
/**
*
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*
*
* @return The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*/
public String getCertificateArn() {
return this.certificateArn;
}
/**
*
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
*
*
* @param certificateArn
* The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withCertificateArn(String certificateArn) {
setCertificateArn(certificateArn);
return this;
}
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode used to connect to the endpoint.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
*/
public void setSslMode(String sslMode) {
this.sslMode = sslMode;
}
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @return The SSL mode used to connect to the endpoint.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
*/
public String getSslMode() {
return this.sslMode;
}
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode used to connect to the endpoint.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DmsSslModeValue
*/
public Endpoint withSslMode(String sslMode) {
setSslMode(sslMode);
return this;
}
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode used to connect to the endpoint.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @see DmsSslModeValue
*/
public void setSslMode(DmsSslModeValue sslMode) {
this.sslMode = sslMode.toString();
}
/**
*
* The SSL mode used to connect to the endpoint.
*
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
*
*
* @param sslMode
* The SSL mode used to connect to the endpoint.
*
* SSL mode can be one of four values: none, require, verify-ca, verify-full.
*
*
* The default value is none.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DmsSslModeValue
*/
public Endpoint withSslMode(DmsSslModeValue sslMode) {
setSslMode(sslMode);
return this;
}
/**
*
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent
* call to CreateEndpoint to create the endpoint with a cross-account.
*
*
* @param externalId
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a
* subsequent call to CreateEndpoint to create the endpoint with a cross-account.
*/
public void setExternalId(String externalId) {
this.externalId = externalId;
}
/**
*
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent
* call to CreateEndpoint to create the endpoint with a cross-account.
*
*
* @return Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a
* subsequent call to CreateEndpoint to create the endpoint with a cross-account.
*/
public String getExternalId() {
return this.externalId;
}
/**
*
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent
* call to CreateEndpoint to create the endpoint with a cross-account.
*
*
* @param externalId
* Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a
* subsequent call to CreateEndpoint to create the endpoint with a cross-account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withExternalId(String externalId) {
setExternalId(externalId);
return this;
}
/**
*
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
*
*
* @param dynamoDbSettings
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
*/
public void setDynamoDbSettings(DynamoDbSettings dynamoDbSettings) {
this.dynamoDbSettings = dynamoDbSettings;
}
/**
*
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
*
*
* @return The settings for the target DynamoDB database. For more information, see the
* DynamoDBSettings
structure.
*/
public DynamoDbSettings getDynamoDbSettings() {
return this.dynamoDbSettings;
}
/**
*
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
*
*
* @param dynamoDbSettings
* The settings for the target DynamoDB database. For more information, see the DynamoDBSettings
* structure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withDynamoDbSettings(DynamoDbSettings dynamoDbSettings) {
setDynamoDbSettings(dynamoDbSettings);
return this;
}
/**
*
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*
*
* @param s3Settings
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*/
public void setS3Settings(S3Settings s3Settings) {
this.s3Settings = s3Settings;
}
/**
*
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*
*
* @return The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*/
public S3Settings getS3Settings() {
return this.s3Settings;
}
/**
*
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
*
*
* @param s3Settings
* The settings for the S3 target endpoint. For more information, see the S3Settings
structure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withS3Settings(S3Settings s3Settings) {
setS3Settings(s3Settings);
return this;
}
/**
*
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*
*
* @param mongoDbSettings
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*/
public void setMongoDbSettings(MongoDbSettings mongoDbSettings) {
this.mongoDbSettings = mongoDbSettings;
}
/**
*
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*
*
* @return The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*/
public MongoDbSettings getMongoDbSettings() {
return this.mongoDbSettings;
}
/**
*
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
*
*
* @param mongoDbSettings
* The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings
* structure.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withMongoDbSettings(MongoDbSettings mongoDbSettings) {
setMongoDbSettings(mongoDbSettings);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getEndpointIdentifier() != null)
sb.append("EndpointIdentifier: ").append(getEndpointIdentifier()).append(",");
if (getEndpointType() != null)
sb.append("EndpointType: ").append(getEndpointType()).append(",");
if (getEngineName() != null)
sb.append("EngineName: ").append(getEngineName()).append(",");
if (getUsername() != null)
sb.append("Username: ").append(getUsername()).append(",");
if (getServerName() != null)
sb.append("ServerName: ").append(getServerName()).append(",");
if (getPort() != null)
sb.append("Port: ").append(getPort()).append(",");
if (getDatabaseName() != null)
sb.append("DatabaseName: ").append(getDatabaseName()).append(",");
if (getExtraConnectionAttributes() != null)
sb.append("ExtraConnectionAttributes: ").append(getExtraConnectionAttributes()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getEndpointArn() != null)
sb.append("EndpointArn: ").append(getEndpointArn()).append(",");
if (getCertificateArn() != null)
sb.append("CertificateArn: ").append(getCertificateArn()).append(",");
if (getSslMode() != null)
sb.append("SslMode: ").append(getSslMode()).append(",");
if (getExternalId() != null)
sb.append("ExternalId: ").append(getExternalId()).append(",");
if (getDynamoDbSettings() != null)
sb.append("DynamoDbSettings: ").append(getDynamoDbSettings()).append(",");
if (getS3Settings() != null)
sb.append("S3Settings: ").append(getS3Settings()).append(",");
if (getMongoDbSettings() != null)
sb.append("MongoDbSettings: ").append(getMongoDbSettings());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Endpoint == false)
return false;
Endpoint other = (Endpoint) obj;
if (other.getEndpointIdentifier() == null ^ this.getEndpointIdentifier() == null)
return false;
if (other.getEndpointIdentifier() != null && other.getEndpointIdentifier().equals(this.getEndpointIdentifier()) == false)
return false;
if (other.getEndpointType() == null ^ this.getEndpointType() == null)
return false;
if (other.getEndpointType() != null && other.getEndpointType().equals(this.getEndpointType()) == false)
return false;
if (other.getEngineName() == null ^ this.getEngineName() == null)
return false;
if (other.getEngineName() != null && other.getEngineName().equals(this.getEngineName()) == false)
return false;
if (other.getUsername() == null ^ this.getUsername() == null)
return false;
if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false)
return false;
if (other.getServerName() == null ^ this.getServerName() == null)
return false;
if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false)
return false;
if (other.getPort() == null ^ this.getPort() == null)
return false;
if (other.getPort() != null && other.getPort().equals(this.getPort()) == false)
return false;
if (other.getDatabaseName() == null ^ this.getDatabaseName() == null)
return false;
if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false)
return false;
if (other.getExtraConnectionAttributes() == null ^ this.getExtraConnectionAttributes() == null)
return false;
if (other.getExtraConnectionAttributes() != null && other.getExtraConnectionAttributes().equals(this.getExtraConnectionAttributes()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getEndpointArn() == null ^ this.getEndpointArn() == null)
return false;
if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false)
return false;
if (other.getCertificateArn() == null ^ this.getCertificateArn() == null)
return false;
if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false)
return false;
if (other.getSslMode() == null ^ this.getSslMode() == null)
return false;
if (other.getSslMode() != null && other.getSslMode().equals(this.getSslMode()) == false)
return false;
if (other.getExternalId() == null ^ this.getExternalId() == null)
return false;
if (other.getExternalId() != null && other.getExternalId().equals(this.getExternalId()) == false)
return false;
if (other.getDynamoDbSettings() == null ^ this.getDynamoDbSettings() == null)
return false;
if (other.getDynamoDbSettings() != null && other.getDynamoDbSettings().equals(this.getDynamoDbSettings()) == false)
return false;
if (other.getS3Settings() == null ^ this.getS3Settings() == null)
return false;
if (other.getS3Settings() != null && other.getS3Settings().equals(this.getS3Settings()) == false)
return false;
if (other.getMongoDbSettings() == null ^ this.getMongoDbSettings() == null)
return false;
if (other.getMongoDbSettings() != null && other.getMongoDbSettings().equals(this.getMongoDbSettings()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEndpointIdentifier() == null) ? 0 : getEndpointIdentifier().hashCode());
hashCode = prime * hashCode + ((getEndpointType() == null) ? 0 : getEndpointType().hashCode());
hashCode = prime * hashCode + ((getEngineName() == null) ? 0 : getEngineName().hashCode());
hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode());
hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode());
hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode());
hashCode = prime * hashCode + ((getExtraConnectionAttributes() == null) ? 0 : getExtraConnectionAttributes().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode());
hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode());
hashCode = prime * hashCode + ((getSslMode() == null) ? 0 : getSslMode().hashCode());
hashCode = prime * hashCode + ((getExternalId() == null) ? 0 : getExternalId().hashCode());
hashCode = prime * hashCode + ((getDynamoDbSettings() == null) ? 0 : getDynamoDbSettings().hashCode());
hashCode = prime * hashCode + ((getS3Settings() == null) ? 0 : getS3Settings().hashCode());
hashCode = prime * hashCode + ((getMongoDbSettings() == null) ? 0 : getMongoDbSettings().hashCode());
return hashCode;
}
@Override
public Endpoint clone() {
try {
return (Endpoint) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.databasemigrationservice.model.transform.EndpointMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}