* The date and time when the entity was last updated. *
*/ private java.util.Date updateDateTime; /** ** The current state of the entity update. *
*/ private String state; /** ** The date and time when the entity was last updated. *
* * @param updateDateTime * The date and time when the entity was last updated. */ public void setUpdateDateTime(java.util.Date updateDateTime) { this.updateDateTime = updateDateTime; } /** ** The date and time when the entity was last updated. *
* * @return The date and time when the entity was last updated. */ public java.util.Date getUpdateDateTime() { return this.updateDateTime; } /** ** The date and time when the entity was last updated. *
* * @param updateDateTime * The date and time when the entity was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEntityResult withUpdateDateTime(java.util.Date updateDateTime) { setUpdateDateTime(updateDateTime); return this; } /** ** The current state of the entity update. *
* * @param state * The current state of the entity update. * @see State */ public void setState(String state) { this.state = state; } /** ** The current state of the entity update. *
* * @return The current state of the entity update. * @see State */ public String getState() { return this.state; } /** ** The current state of the entity update. *
* * @param state * The current state of the entity update. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public UpdateEntityResult withState(String state) { setState(state); return this; } /** ** The current state of the entity update. *
* * @param state * The current state of the entity update. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public UpdateEntityResult withState(State state) { this.state = state.toString(); 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 (getUpdateDateTime() != null) sb.append("UpdateDateTime: ").append(getUpdateDateTime()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEntityResult == false) return false; UpdateEntityResult other = (UpdateEntityResult) obj; if (other.getUpdateDateTime() == null ^ this.getUpdateDateTime() == null) return false; if (other.getUpdateDateTime() != null && other.getUpdateDateTime().equals(this.getUpdateDateTime()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public UpdateEntityResult clone() { try { return (UpdateEntityResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }