* Object that describes the newly claimed game server. *
*/ private GameServer gameServer; /** ** Object that describes the newly claimed game server. *
* * @param gameServer * Object that describes the newly claimed game server. */ public void setGameServer(GameServer gameServer) { this.gameServer = gameServer; } /** ** Object that describes the newly claimed game server. *
* * @return Object that describes the newly claimed game server. */ public GameServer getGameServer() { return this.gameServer; } /** ** Object that describes the newly claimed game server. *
* * @param gameServer * Object that describes the newly claimed game server. * @return Returns a reference to this object so that method calls can be chained together. */ public ClaimGameServerResult withGameServer(GameServer gameServer) { setGameServer(gameServer); 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 (getGameServer() != null) sb.append("GameServer: ").append(getGameServer()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ClaimGameServerResult == false) return false; ClaimGameServerResult other = (ClaimGameServerResult) obj; if (other.getGameServer() == null ^ this.getGameServer() == null) return false; if (other.getGameServer() != null && other.getGameServer().equals(this.getGameServer()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGameServer() == null) ? 0 : getGameServer().hashCode()); return hashCode; } @Override public ClaimGameServerResult clone() { try { return (ClaimGameServerResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }