* The ID of the discoverer. *
*/ private String discovererId; /** ** The state of the discoverer. *
*/ private String state; /** ** The ID of the discoverer. *
* * @param discovererId * The ID of the discoverer. */ public void setDiscovererId(String discovererId) { this.discovererId = discovererId; } /** ** The ID of the discoverer. *
* * @return The ID of the discoverer. */ public String getDiscovererId() { return this.discovererId; } /** ** The ID of the discoverer. *
* * @param discovererId * The ID of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDiscovererResult withDiscovererId(String discovererId) { setDiscovererId(discovererId); return this; } /** ** The state of the discoverer. *
* * @param state * The state of the discoverer. * @see DiscovererState */ public void setState(String state) { this.state = state; } /** ** The state of the discoverer. *
* * @return The state of the discoverer. * @see DiscovererState */ public String getState() { return this.state; } /** ** The state of the discoverer. *
* * @param state * The state of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscovererState */ public StartDiscovererResult withState(String state) { setState(state); return this; } /** ** The state of the discoverer. *
* * @param state * The state of the discoverer. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscovererState */ public StartDiscovererResult withState(DiscovererState 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 (getDiscovererId() != null) sb.append("DiscovererId: ").append(getDiscovererId()).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 StartDiscovererResult == false) return false; StartDiscovererResult other = (StartDiscovererResult) obj; if (other.getDiscovererId() == null ^ this.getDiscovererId() == null) return false; if (other.getDiscovererId() != null && other.getDiscovererId().equals(this.getDiscovererId()) == 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 + ((getDiscovererId() == null) ? 0 : getDiscovererId().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public StartDiscovererResult clone() { try { return (StartDiscovererResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }