/** * 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() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()).append(","); if (getServiceName() != null) sb.append("ServiceName: ").append(getServiceName()).append(","); if (getServiceUserName() != null) sb.append("ServiceUserName: ").append(getServiceUserName()).append(","); if (getServicePassword() != null) sb.append("ServicePassword: ").append("***Sensitive Data Redacted***").append(","); if (getServiceSpecificCredentialId() != null) sb.append("ServiceSpecificCredentialId: ").append(getServiceSpecificCredentialId()).append(","); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode()); hashCode = prime * hashCode + ((getServiceUserName() == null) ? 0 : getServiceUserName().hashCode()); hashCode = prime * hashCode + ((getServicePassword() == null) ? 0 : getServicePassword().hashCode()); hashCode = prime * hashCode + ((getServiceSpecificCredentialId() == null) ? 0 : getServiceSpecificCredentialId().hashCode()); hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; if (other.getServiceName() == null ^ this.getServiceName() == null) return false; if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false) return false; if (other.getServiceUserName() == null ^ this.getServiceUserName() == null)
/** * 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() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()).append(","); if (getServiceName() != null) sb.append("ServiceName: ").append(getServiceName()).append(","); if (getServiceUserName() != null) sb.append("ServiceUserName: ").append(getServiceUserName()).append(","); if (getServicePassword() != null) sb.append("ServicePassword: ").append("***Sensitive Data Redacted***").append(","); if (getServiceSpecificCredentialId() != null) sb.append("ServiceSpecificCredentialId: ").append(getServiceSpecificCredentialId()).append(","); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode()); hashCode = prime * hashCode + ((getServiceUserName() == null) ? 0 : getServiceUserName().hashCode()); hashCode = prime * hashCode + ((getServicePassword() == null) ? 0 : getServicePassword().hashCode()); hashCode = prime * hashCode + ((getServiceSpecificCredentialId() == null) ? 0 : getServiceSpecificCredentialId().hashCode()); hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; if (other.getServiceName() == null ^ this.getServiceName() == null) return false; if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false) return false; if (other.getServiceUserName() == null ^ this.getServiceUserName() == null)