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