@Override protected ToStringBuilder appendAttributes(ToStringBuilder tsb) { return super.appendAttributes(tsb) .append("domain", getDomain()) .appendFiltered("password", getPassword()) .append("userName", getUserName()); } }
@Override public String toString() { return ToStringBuilder.forInstance(this) .append("id", getId()) .append("hostId", getHostId()) .append("order", getOrder()) .append("type", getType()) .append("ip", getIp()) .append("port", getPort()) .append("user", getUser()) .appendFiltered("password", getPassword()) .append("encryptOptions", getEncryptOptions()) // options are separated by NEWLINE when sent to VDSM, but NEWLINE shouldn't be used in logs .append("options", getOptions() == null ? "" : getOptions().replace("\n", ", ")) .build(); }
.append(nullName, nullValue) .append(nullArrayName, nullArrayValue) .appendFiltered(passwordName, passwordValue) .appendFiltered(nullPasswordName, nullPasswordValue) .append(nullCollectionName, nullCollectionValue) .append(emptyCollectionName, emptyCollectionValue)
@Override public String toString() { return ToStringBuilder.forInstance(this) .append("id", getId()) .append("name", getName()) .append("description", getDescription()) .append("url", getUrl()) .append("type", getType()) .append("requiringAuthentication", isRequiringAuthentication()) .append("username", getUsername()) .appendFiltered("password", getPassword()) .append("customProperties", getCustomProperties()) .append("additionalProperties", getAdditionalProperties()) .append("authUrl", getAuthUrl()) .append("isUnmanaged", getIsUnmanaged()) .build(); }