* The content. *
*/ private ContentData content; /** ** The content. *
* * @param content * The content. */ public void setContent(ContentData content) { this.content = content; } /** ** The content. *
* * @return The content. */ public ContentData getContent() { return this.content; } /** ** The content. *
* * @param content * The content. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContentResult withContent(ContentData content) { setContent(content); 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 (getContent() != null) sb.append("Content: ").append(getContent()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateContentResult == false) return false; CreateContentResult other = (CreateContentResult) obj; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); return hashCode; } @Override public CreateContentResult clone() { try { return (CreateContentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }