/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateEndpointRequest").add("EndpointIdentifier", endpointIdentifier()) .add("EndpointType", endpointTypeAsString()).add("EngineName", engineName()).add("Username", username()) .add("Password", password() == null ? null : "*** Sensitive Data Redacted ***").add("ServerName", serverName()) .add("Port", port()).add("DatabaseName", databaseName()) .add("ExtraConnectionAttributes", extraConnectionAttributes()).add("KmsKeyId", kmsKeyId()).add("Tags", tags()) .add("CertificateArn", certificateArn()).add("SslMode", sslModeAsString()) .add("ServiceAccessRoleArn", serviceAccessRoleArn()).add("ExternalTableDefinition", externalTableDefinition()) .add("DynamoDbSettings", dynamoDbSettings()).add("S3Settings", s3Settings()) .add("DmsTransferSettings", dmsTransferSettings()).add("MongoDbSettings", mongoDbSettings()) .add("KinesisSettings", kinesisSettings()).add("ElasticsearchSettings", elasticsearchSettings()).build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateEndpointRequest").add("EndpointIdentifier", endpointIdentifier()) .add("EndpointType", endpointTypeAsString()).add("EngineName", engineName()).add("Username", username()) .add("Password", password() == null ? null : "*** Sensitive Data Redacted ***").add("ServerName", serverName()) .add("Port", port()).add("DatabaseName", databaseName()) .add("ExtraConnectionAttributes", extraConnectionAttributes()).add("KmsKeyId", kmsKeyId()).add("Tags", tags()) .add("CertificateArn", certificateArn()).add("SslMode", sslModeAsString()) .add("ServiceAccessRoleArn", serviceAccessRoleArn()).add("ExternalTableDefinition", externalTableDefinition()) .add("DynamoDbSettings", dynamoDbSettings()).add("S3Settings", s3Settings()) .add("DmsTransferSettings", dmsTransferSettings()).add("MongoDbSettings", mongoDbSettings()) .add("KinesisSettings", kinesisSettings()).add("ElasticsearchSettings", elasticsearchSettings()).build(); }
return Optional.ofNullable(clazz.cast(kinesisSettings())); case "ElasticsearchSettings": return Optional.ofNullable(clazz.cast(elasticsearchSettings())); default: return Optional.empty();
return Optional.ofNullable(clazz.cast(kinesisSettings())); case "ElasticsearchSettings": return Optional.ofNullable(clazz.cast(elasticsearchSettings())); default: return Optional.empty();
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(endpointTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(engineName()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(password()); hashCode = 31 * hashCode + Objects.hashCode(serverName()); hashCode = 31 * hashCode + Objects.hashCode(port()); hashCode = 31 * hashCode + Objects.hashCode(databaseName()); hashCode = 31 * hashCode + Objects.hashCode(extraConnectionAttributes()); hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId()); hashCode = 31 * hashCode + Objects.hashCode(tags()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(sslModeAsString()); hashCode = 31 * hashCode + Objects.hashCode(serviceAccessRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(externalTableDefinition()); hashCode = 31 * hashCode + Objects.hashCode(dynamoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(s3Settings()); hashCode = 31 * hashCode + Objects.hashCode(dmsTransferSettings()); hashCode = 31 * hashCode + Objects.hashCode(mongoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(kinesisSettings()); hashCode = 31 * hashCode + Objects.hashCode(elasticsearchSettings()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(endpointIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(endpointTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(engineName()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(password()); hashCode = 31 * hashCode + Objects.hashCode(serverName()); hashCode = 31 * hashCode + Objects.hashCode(port()); hashCode = 31 * hashCode + Objects.hashCode(databaseName()); hashCode = 31 * hashCode + Objects.hashCode(extraConnectionAttributes()); hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId()); hashCode = 31 * hashCode + Objects.hashCode(tags()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(sslModeAsString()); hashCode = 31 * hashCode + Objects.hashCode(serviceAccessRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(externalTableDefinition()); hashCode = 31 * hashCode + Objects.hashCode(dynamoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(s3Settings()); hashCode = 31 * hashCode + Objects.hashCode(dmsTransferSettings()); hashCode = 31 * hashCode + Objects.hashCode(mongoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(kinesisSettings()); hashCode = 31 * hashCode + Objects.hashCode(elasticsearchSettings()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEndpointRequest)) { return false; } CreateEndpointRequest other = (CreateEndpointRequest) obj; return Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(endpointTypeAsString(), other.endpointTypeAsString()) && Objects.equals(engineName(), other.engineName()) && Objects.equals(username(), other.username()) && Objects.equals(password(), other.password()) && Objects.equals(serverName(), other.serverName()) && Objects.equals(port(), other.port()) && Objects.equals(databaseName(), other.databaseName()) && Objects.equals(extraConnectionAttributes(), other.extraConnectionAttributes()) && Objects.equals(kmsKeyId(), other.kmsKeyId()) && Objects.equals(tags(), other.tags()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(sslModeAsString(), other.sslModeAsString()) && Objects.equals(serviceAccessRoleArn(), other.serviceAccessRoleArn()) && Objects.equals(externalTableDefinition(), other.externalTableDefinition()) && Objects.equals(dynamoDbSettings(), other.dynamoDbSettings()) && Objects.equals(s3Settings(), other.s3Settings()) && Objects.equals(dmsTransferSettings(), other.dmsTransferSettings()) && Objects.equals(mongoDbSettings(), other.mongoDbSettings()) && Objects.equals(kinesisSettings(), other.kinesisSettings()) && Objects.equals(elasticsearchSettings(), other.elasticsearchSettings()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEndpointRequest)) { return false; } CreateEndpointRequest other = (CreateEndpointRequest) obj; return Objects.equals(endpointIdentifier(), other.endpointIdentifier()) && Objects.equals(endpointTypeAsString(), other.endpointTypeAsString()) && Objects.equals(engineName(), other.engineName()) && Objects.equals(username(), other.username()) && Objects.equals(password(), other.password()) && Objects.equals(serverName(), other.serverName()) && Objects.equals(port(), other.port()) && Objects.equals(databaseName(), other.databaseName()) && Objects.equals(extraConnectionAttributes(), other.extraConnectionAttributes()) && Objects.equals(kmsKeyId(), other.kmsKeyId()) && Objects.equals(tags(), other.tags()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(sslModeAsString(), other.sslModeAsString()) && Objects.equals(serviceAccessRoleArn(), other.serviceAccessRoleArn()) && Objects.equals(externalTableDefinition(), other.externalTableDefinition()) && Objects.equals(dynamoDbSettings(), other.dynamoDbSettings()) && Objects.equals(s3Settings(), other.s3Settings()) && Objects.equals(dmsTransferSettings(), other.dmsTransferSettings()) && Objects.equals(mongoDbSettings(), other.mongoDbSettings()) && Objects.equals(kinesisSettings(), other.kinesisSettings()) && Objects.equals(elasticsearchSettings(), other.elasticsearchSettings()); }