* The state of the trust anchor after a read or write operation. *
*/ private TrustAnchorDetail trustAnchor; /** ** The state of the trust anchor after a read or write operation. *
* * @param trustAnchor * The state of the trust anchor after a read or write operation. */ public void setTrustAnchor(TrustAnchorDetail trustAnchor) { this.trustAnchor = trustAnchor; } /** ** The state of the trust anchor after a read or write operation. *
* * @return The state of the trust anchor after a read or write operation. */ public TrustAnchorDetail getTrustAnchor() { return this.trustAnchor; } /** ** The state of the trust anchor after a read or write operation. *
* * @param trustAnchor * The state of the trust anchor after a read or write operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DisableTrustAnchorResult withTrustAnchor(TrustAnchorDetail trustAnchor) { setTrustAnchor(trustAnchor); 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 (getTrustAnchor() != null) sb.append("TrustAnchor: ").append(getTrustAnchor()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisableTrustAnchorResult == false) return false; DisableTrustAnchorResult other = (DisableTrustAnchorResult) obj; if (other.getTrustAnchor() == null ^ this.getTrustAnchor() == null) return false; if (other.getTrustAnchor() != null && other.getTrustAnchor().equals(this.getTrustAnchor()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrustAnchor() == null) ? 0 : getTrustAnchor().hashCode()); return hashCode; } @Override public DisableTrustAnchorResult clone() { try { return (DisableTrustAnchorResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }