* The template sync desired state that's returned by Proton. *
*/ private Revision desiredState; /** ** The details of the last successful sync that's returned by Proton. *
*/ private ResourceSyncAttempt latestSuccessfulSync; /** ** The details of the last sync that's returned by Proton. *
*/ private ResourceSyncAttempt latestSync; /** ** The template sync desired state that's returned by Proton. *
* * @param desiredState * The template sync desired state that's returned by Proton. */ public void setDesiredState(Revision desiredState) { this.desiredState = desiredState; } /** ** The template sync desired state that's returned by Proton. *
* * @return The template sync desired state that's returned by Proton. */ public Revision getDesiredState() { return this.desiredState; } /** ** The template sync desired state that's returned by Proton. *
* * @param desiredState * The template sync desired state that's returned by Proton. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTemplateSyncStatusResult withDesiredState(Revision desiredState) { setDesiredState(desiredState); return this; } /** ** The details of the last successful sync that's returned by Proton. *
* * @param latestSuccessfulSync * The details of the last successful sync that's returned by Proton. */ public void setLatestSuccessfulSync(ResourceSyncAttempt latestSuccessfulSync) { this.latestSuccessfulSync = latestSuccessfulSync; } /** ** The details of the last successful sync that's returned by Proton. *
* * @return The details of the last successful sync that's returned by Proton. */ public ResourceSyncAttempt getLatestSuccessfulSync() { return this.latestSuccessfulSync; } /** ** The details of the last successful sync that's returned by Proton. *
* * @param latestSuccessfulSync * The details of the last successful sync that's returned by Proton. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTemplateSyncStatusResult withLatestSuccessfulSync(ResourceSyncAttempt latestSuccessfulSync) { setLatestSuccessfulSync(latestSuccessfulSync); return this; } /** ** The details of the last sync that's returned by Proton. *
* * @param latestSync * The details of the last sync that's returned by Proton. */ public void setLatestSync(ResourceSyncAttempt latestSync) { this.latestSync = latestSync; } /** ** The details of the last sync that's returned by Proton. *
* * @return The details of the last sync that's returned by Proton. */ public ResourceSyncAttempt getLatestSync() { return this.latestSync; } /** ** The details of the last sync that's returned by Proton. *
* * @param latestSync * The details of the last sync that's returned by Proton. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTemplateSyncStatusResult withLatestSync(ResourceSyncAttempt latestSync) { setLatestSync(latestSync); 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 (getDesiredState() != null) sb.append("DesiredState: ").append(getDesiredState()).append(","); if (getLatestSuccessfulSync() != null) sb.append("LatestSuccessfulSync: ").append(getLatestSuccessfulSync()).append(","); if (getLatestSync() != null) sb.append("LatestSync: ").append(getLatestSync()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTemplateSyncStatusResult == false) return false; GetTemplateSyncStatusResult other = (GetTemplateSyncStatusResult) obj; if (other.getDesiredState() == null ^ this.getDesiredState() == null) return false; if (other.getDesiredState() != null && other.getDesiredState().equals(this.getDesiredState()) == false) return false; if (other.getLatestSuccessfulSync() == null ^ this.getLatestSuccessfulSync() == null) return false; if (other.getLatestSuccessfulSync() != null && other.getLatestSuccessfulSync().equals(this.getLatestSuccessfulSync()) == false) return false; if (other.getLatestSync() == null ^ this.getLatestSync() == null) return false; if (other.getLatestSync() != null && other.getLatestSync().equals(this.getLatestSync()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDesiredState() == null) ? 0 : getDesiredState().hashCode()); hashCode = prime * hashCode + ((getLatestSuccessfulSync() == null) ? 0 : getLatestSuccessfulSync().hashCode()); hashCode = prime * hashCode + ((getLatestSync() == null) ? 0 : getLatestSync().hashCode()); return hashCode; } @Override public GetTemplateSyncStatusResult clone() { try { return (GetTemplateSyncStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }