@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAfterConnectScript() != null)
            sb.append("AfterConnectScript: ").append(getAfterConnectScript()).append(",");
        if (getCaptureDdls() != null)
            sb.append("CaptureDdls: ").append(getCaptureDdls()).append(",");
        if (getMaxFileSize() != null)
            sb.append("MaxFileSize: ").append(getMaxFileSize()).append(",");
        if (getDatabaseName() != null)
            sb.append("DatabaseName: ").append(getDatabaseName()).append(",");
        if (getDdlArtifactsSchema() != null)
            sb.append("DdlArtifactsSchema: ").append(getDdlArtifactsSchema()).append(",");
        if (getExecuteTimeout() != null)
            sb.append("ExecuteTimeout: ").append(getExecuteTimeout()).append(",");
        if (getFailTasksOnLobTruncation() != null)
            sb.append("FailTasksOnLobTruncation: ").append(getFailTasksOnLobTruncation()).append(",");
        if (getHeartbeatEnable() != null)
            sb.append("HeartbeatEnable: ").append(getHeartbeatEnable()).append(",");
        if (getHeartbeatSchema() != null)
            sb.append("HeartbeatSchema: ").append(getHeartbeatSchema()).append(",");
        if (getHeartbeatFrequency() != null)
            sb.append("HeartbeatFrequency: ").append(getHeartbeatFrequency()).append(",");
        if (getPassword() != null)
            sb.append("Password: ").append("***Sensitive Data Redacted***").append(",");
        if (getPort() != null)
            sb.append("Port: ").append(getPort()).append(",");
        if (getServerName() != null)
            sb.append("ServerName: ").append(getServerName()).append(",");
        if (getUsername() != null)
            sb.append("Username: ").append(getUsername()).append(",");
        if (getSlotName() != null)
            sb.append("SlotName: ").append(getSlotName()).append(",");
        if (getPluginName() != null)
            sb.append("PluginName: ").append(getPluginName()).append(",");
        if (getSecretsManagerAccessRoleArn() != null)
            sb.append("SecretsManagerAccessRoleArn: ").append(getSecretsManagerAccessRoleArn()).append(",");
        if (getSecretsManagerSecretId() != null)
            sb.append("SecretsManagerSecretId: ").append(getSecretsManagerSecretId()).append(",");
        if (getTrimSpaceInChar() != null)
            sb.append("TrimSpaceInChar: ").append(getTrimSpaceInChar()).append(",");
        if (getMapBooleanAsBoolean() != null)
            sb.append("MapBooleanAsBoolean: ").append(getMapBooleanAsBoolean()).append(",");
        if (getMapJsonbAsClob() != null)
            sb.append("MapJsonbAsClob: ").append(getMapJsonbAsClob()).append(",");
        if (getMapLongVarcharAs() != null)
            sb.append("MapLongVarcharAs: ").append(getMapLongVarcharAs()).append(",");
        if (getDatabaseMode() != null)
            sb.append("DatabaseMode: ").append(getDatabaseMode()).append(",");
        if (getBabelfishDatabaseName() != null)
            sb.append("BabelfishDatabaseName: ").append(getBabelfishDatabaseName());
        sb.append("}");
        return sb.toString();
    }
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.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/PostgreSQLSettings.java