class ClusterResponse {

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{ clusterName=").append(clusterName)
      .append(", clusterId=").append(clusterId)
      .append(", provisioningState=").append(provisioningState)
      .append(", desiredStackVersion=").append(desiredStackVersion)
      .append(", totalHosts=").append(totalHosts)
      .append(", hosts=[");

    if (hostNames != null) {
      int i = 0;
      for (String hostName : hostNames) {
        if (i != 0) {
          sb.append(",");
        }
        ++i;
        sb.append(hostName);
      }
    }
    sb.append("], clusterHealthReport= ").append(clusterHealthReport).append("}");
    return sb.toString();
  }

  public  ClusterResponse(long clusterId, String clusterName,
                         State provisioningState, SecurityType securityType, Set<String> hostNames, int totalHosts,
                         String desiredStackVersion, ClusterHealthReport clusterHealthReport);

}