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