* The unique identifier of the cluster. *
*/ private String clusterId; /** ** The unique identifier of the instance fleet. *
*/ private String instanceFleetId; /** ** The Amazon Resource Name of the cluster. *
*/ private String clusterArn; /** ** The unique identifier of the cluster. *
* * @param clusterId * The unique identifier of the cluster. */ public void setClusterId(String clusterId) { this.clusterId = clusterId; } /** ** The unique identifier of the cluster. *
* * @return The unique identifier of the cluster. */ public String getClusterId() { return this.clusterId; } /** ** The unique identifier of the cluster. *
* * @param clusterId * The unique identifier of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public AddInstanceFleetResult withClusterId(String clusterId) { setClusterId(clusterId); return this; } /** ** The unique identifier of the instance fleet. *
* * @param instanceFleetId * The unique identifier of the instance fleet. */ public void setInstanceFleetId(String instanceFleetId) { this.instanceFleetId = instanceFleetId; } /** ** The unique identifier of the instance fleet. *
* * @return The unique identifier of the instance fleet. */ public String getInstanceFleetId() { return this.instanceFleetId; } /** ** The unique identifier of the instance fleet. *
* * @param instanceFleetId * The unique identifier of the instance fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public AddInstanceFleetResult withInstanceFleetId(String instanceFleetId) { setInstanceFleetId(instanceFleetId); return this; } /** ** The Amazon Resource Name of the cluster. *
* * @param clusterArn * The Amazon Resource Name of the cluster. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The Amazon Resource Name of the cluster. *
* * @return The Amazon Resource Name of the cluster. */ public String getClusterArn() { return this.clusterArn; } /** ** The Amazon Resource Name of the cluster. *
* * @param clusterArn * The Amazon Resource Name of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public AddInstanceFleetResult withClusterArn(String clusterArn) { setClusterArn(clusterArn); 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 (getClusterId() != null) sb.append("ClusterId: ").append(getClusterId()).append(","); if (getInstanceFleetId() != null) sb.append("InstanceFleetId: ").append(getInstanceFleetId()).append(","); if (getClusterArn() != null) sb.append("ClusterArn: ").append(getClusterArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddInstanceFleetResult == false) return false; AddInstanceFleetResult other = (AddInstanceFleetResult) obj; if (other.getClusterId() == null ^ this.getClusterId() == null) return false; if (other.getClusterId() != null && other.getClusterId().equals(this.getClusterId()) == false) return false; if (other.getInstanceFleetId() == null ^ this.getInstanceFleetId() == null) return false; if (other.getInstanceFleetId() != null && other.getInstanceFleetId().equals(this.getInstanceFleetId()) == false) return false; if (other.getClusterArn() == null ^ this.getClusterArn() == null) return false; if (other.getClusterArn() != null && other.getClusterArn().equals(this.getClusterArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterId() == null) ? 0 : getClusterId().hashCode()); hashCode = prime * hashCode + ((getInstanceFleetId() == null) ? 0 : getInstanceFleetId().hashCode()); hashCode = prime * hashCode + ((getClusterArn() == null) ? 0 : getClusterArn().hashCode()); return hashCode; } @Override public AddInstanceFleetResult clone() { try { return (AddInstanceFleetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }