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