* The difference between schemas as a string in JsonPatch format. *
*/ private String diff; /** ** The difference between schemas as a string in JsonPatch format. *
* * @param diff * The difference between schemas as a string in JsonPatch format. */ public void setDiff(String diff) { this.diff = diff; } /** ** The difference between schemas as a string in JsonPatch format. *
* * @return The difference between schemas as a string in JsonPatch format. */ public String getDiff() { return this.diff; } /** ** The difference between schemas as a string in JsonPatch format. *
* * @param diff * The difference between schemas as a string in JsonPatch format. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionsDiffResult withDiff(String diff) { setDiff(diff); return this; } /** * 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 (getDiff() != null) sb.append("Diff: ").append(getDiff()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSchemaVersionsDiffResult == false) return false; GetSchemaVersionsDiffResult other = (GetSchemaVersionsDiffResult) obj; if (other.getDiff() == null ^ this.getDiff() == null) return false; if (other.getDiff() != null && other.getDiff().equals(this.getDiff()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDiff() == null) ? 0 : getDiff().hashCode()); return hashCode; } @Override public GetSchemaVersionsDiffResult clone() { try { return (GetSchemaVersionsDiffResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }