@Override public String toString() { return ToString.builder("CreateEndpointRequest").add("EndpointIdentifier", endpointIdentifier()) .add("EndpointType", endpointTypeAsString()).add("EngineName", engineName()).add("Username", username()) .add("Password", password()).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("DynamoDbSettings", dynamoDbSettings()).add("S3Settings", s3Settings()) .add("MongoDbSettings", mongoDbSettings()).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(); }
/** * 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(port())); case "DatabaseName": return Optional.ofNullable(clazz.cast(databaseName())); case "ExtraConnectionAttributes": return Optional.ofNullable(clazz.cast(extraConnectionAttributes()));
@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(dynamoDbSettings()); hashCode = 31 * hashCode + Objects.hashCode(s3Settings()); hashCode = 31 * hashCode + Objects.hashCode(mongoDbSettings()); return hashCode; }
return Optional.ofNullable(clazz.cast(port())); case "DatabaseName": return Optional.ofNullable(clazz.cast(databaseName())); case "ExtraConnectionAttributes": return Optional.ofNullable(clazz.cast(extraConnectionAttributes()));
return Optional.ofNullable(clazz.cast(port())); case "DatabaseName": return Optional.ofNullable(clazz.cast(databaseName())); case "ExtraConnectionAttributes": return Optional.ofNullable(clazz.cast(extraConnectionAttributes()));
@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(dynamoDbSettings(), other.dynamoDbSettings()) && Objects.equals(s3Settings(), other.s3Settings()) && Objects.equals(mongoDbSettings(), other.mongoDbSettings()); }
@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()); }
/** * Marshall the given parameter object */ public void marshall(CreateEndpointRequest createEndpointRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(createEndpointRequest, "createEndpointRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(createEndpointRequest.endpointIdentifier(), ENDPOINTIDENTIFIER_BINDING); protocolMarshaller.marshall(createEndpointRequest.endpointTypeAsString(), ENDPOINTTYPE_BINDING); protocolMarshaller.marshall(createEndpointRequest.engineName(), ENGINENAME_BINDING); protocolMarshaller.marshall(createEndpointRequest.username(), USERNAME_BINDING); protocolMarshaller.marshall(createEndpointRequest.password(), PASSWORD_BINDING); protocolMarshaller.marshall(createEndpointRequest.serverName(), SERVERNAME_BINDING); protocolMarshaller.marshall(createEndpointRequest.port(), PORT_BINDING); protocolMarshaller.marshall(createEndpointRequest.databaseName(), DATABASENAME_BINDING); protocolMarshaller.marshall(createEndpointRequest.extraConnectionAttributes(), EXTRACONNECTIONATTRIBUTES_BINDING); protocolMarshaller.marshall(createEndpointRequest.kmsKeyId(), KMSKEYID_BINDING); protocolMarshaller.marshall(createEndpointRequest.tags(), TAGS_BINDING); protocolMarshaller.marshall(createEndpointRequest.certificateArn(), CERTIFICATEARN_BINDING); protocolMarshaller.marshall(createEndpointRequest.sslModeAsString(), SSLMODE_BINDING); protocolMarshaller.marshall(createEndpointRequest.dynamoDbSettings(), DYNAMODBSETTINGS_BINDING); protocolMarshaller.marshall(createEndpointRequest.s3Settings(), S3SETTINGS_BINDING); protocolMarshaller.marshall(createEndpointRequest.mongoDbSettings(), MONGODBSETTINGS_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }