All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dominodatalab.api.model.DominoServerControlcenterHardwareTiersUtilizationDTO Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * The version of the OpenAPI document: 4.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.dominodatalab.api.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * TODO describe
 */
@JsonPropertyOrder({
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_COMPLETED_RUNS_COUNT,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_ESTIMATED_COST_VARIATION,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_AVERAGE_QUEUE_TIME_IN_SECONDS,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_ESTIMATED_COST_PER_HOUR,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_NAME,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_COST_EFFICIENCY,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_UTILIZATION,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_ID,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_ESTIMATED_COST,
  DominoServerControlcenterHardwareTiersUtilizationDTO.JSON_PROPERTY_UTILIZATION_VARIATION
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoServerControlcenterHardwareTiersUtilizationDTO {
  public static final String JSON_PROPERTY_COMPLETED_RUNS_COUNT = "completedRunsCount";
  private Integer completedRunsCount;

  public static final String JSON_PROPERTY_ESTIMATED_COST_VARIATION = "estimatedCostVariation";
  private Double estimatedCostVariation;

  public static final String JSON_PROPERTY_AVERAGE_QUEUE_TIME_IN_SECONDS = "averageQueueTimeInSeconds";
  private Double averageQueueTimeInSeconds;

  public static final String JSON_PROPERTY_ESTIMATED_COST_PER_HOUR = "estimatedCostPerHour";
  private Double estimatedCostPerHour;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_COST_EFFICIENCY = "costEfficiency";
  private Double costEfficiency;

  public static final String JSON_PROPERTY_UTILIZATION = "utilization";
  private Double utilization;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_ESTIMATED_COST = "estimatedCost";
  private Double estimatedCost;

  public static final String JSON_PROPERTY_UTILIZATION_VARIATION = "utilizationVariation";
  private Double utilizationVariation;

  public DominoServerControlcenterHardwareTiersUtilizationDTO() { 
  }

  public DominoServerControlcenterHardwareTiersUtilizationDTO completedRunsCount(Integer completedRunsCount) {
    this.completedRunsCount = completedRunsCount;
    return this;
  }

   /**
   * How many runs was executed in this hardware tier
   * @return completedRunsCount
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_COMPLETED_RUNS_COUNT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getCompletedRunsCount() {
    return completedRunsCount;
  }


  @JsonProperty(JSON_PROPERTY_COMPLETED_RUNS_COUNT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCompletedRunsCount(Integer completedRunsCount) {
    this.completedRunsCount = completedRunsCount;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO estimatedCostVariation(Double estimatedCostVariation) {
    this.estimatedCostVariation = estimatedCostVariation;
    return this;
  }

   /**
   * How much the `estimatedCost` changed recently
   * @return estimatedCostVariation
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST_VARIATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getEstimatedCostVariation() {
    return estimatedCostVariation;
  }


  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST_VARIATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEstimatedCostVariation(Double estimatedCostVariation) {
    this.estimatedCostVariation = estimatedCostVariation;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO averageQueueTimeInSeconds(Double averageQueueTimeInSeconds) {
    this.averageQueueTimeInSeconds = averageQueueTimeInSeconds;
    return this;
  }

   /**
   * TODO describe
   * @return averageQueueTimeInSeconds
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_AVERAGE_QUEUE_TIME_IN_SECONDS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getAverageQueueTimeInSeconds() {
    return averageQueueTimeInSeconds;
  }


  @JsonProperty(JSON_PROPERTY_AVERAGE_QUEUE_TIME_IN_SECONDS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setAverageQueueTimeInSeconds(Double averageQueueTimeInSeconds) {
    this.averageQueueTimeInSeconds = averageQueueTimeInSeconds;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO estimatedCostPerHour(Double estimatedCostPerHour) {
    this.estimatedCostPerHour = estimatedCostPerHour;
    return this;
  }

   /**
   * TODO describe
   * @return estimatedCostPerHour
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST_PER_HOUR)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getEstimatedCostPerHour() {
    return estimatedCostPerHour;
  }


  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST_PER_HOUR)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEstimatedCostPerHour(Double estimatedCostPerHour) {
    this.estimatedCostPerHour = estimatedCostPerHour;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO name(String name) {
    this.name = name;
    return this;
  }

   /**
   * TODO describe
   * @return name
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setName(String name) {
    this.name = name;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO costEfficiency(Double costEfficiency) {
    this.costEfficiency = costEfficiency;
    return this;
  }

   /**
   * TODO describe
   * @return costEfficiency
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_COST_EFFICIENCY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getCostEfficiency() {
    return costEfficiency;
  }


  @JsonProperty(JSON_PROPERTY_COST_EFFICIENCY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCostEfficiency(Double costEfficiency) {
    this.costEfficiency = costEfficiency;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO utilization(Double utilization) {
    this.utilization = utilization;
    return this;
  }

   /**
   * TODO describe
   * @return utilization
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_UTILIZATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getUtilization() {
    return utilization;
  }


  @JsonProperty(JSON_PROPERTY_UTILIZATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setUtilization(Double utilization) {
    this.utilization = utilization;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO id(String id) {
    this.id = id;
    return this;
  }

   /**
   * TODO describe
   * @return id
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setId(String id) {
    this.id = id;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO estimatedCost(Double estimatedCost) {
    this.estimatedCost = estimatedCost;
    return this;
  }

   /**
   * TODO describe
   * @return estimatedCost
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getEstimatedCost() {
    return estimatedCost;
  }


  @JsonProperty(JSON_PROPERTY_ESTIMATED_COST)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEstimatedCost(Double estimatedCost) {
    this.estimatedCost = estimatedCost;
  }


  public DominoServerControlcenterHardwareTiersUtilizationDTO utilizationVariation(Double utilizationVariation) {
    this.utilizationVariation = utilizationVariation;
    return this;
  }

   /**
   * How much the `utilization` changed recently
   * @return utilizationVariation
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_UTILIZATION_VARIATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getUtilizationVariation() {
    return utilizationVariation;
  }


  @JsonProperty(JSON_PROPERTY_UTILIZATION_VARIATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setUtilizationVariation(Double utilizationVariation) {
    this.utilizationVariation = utilizationVariation;
  }


  /**
   * Return true if this domino.server.controlcenter.HardwareTiersUtilizationDTO object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoServerControlcenterHardwareTiersUtilizationDTO dominoServerControlcenterHardwareTiersUtilizationDTO = (DominoServerControlcenterHardwareTiersUtilizationDTO) o;
    return Objects.equals(this.completedRunsCount, dominoServerControlcenterHardwareTiersUtilizationDTO.completedRunsCount) &&
        Objects.equals(this.estimatedCostVariation, dominoServerControlcenterHardwareTiersUtilizationDTO.estimatedCostVariation) &&
        Objects.equals(this.averageQueueTimeInSeconds, dominoServerControlcenterHardwareTiersUtilizationDTO.averageQueueTimeInSeconds) &&
        Objects.equals(this.estimatedCostPerHour, dominoServerControlcenterHardwareTiersUtilizationDTO.estimatedCostPerHour) &&
        Objects.equals(this.name, dominoServerControlcenterHardwareTiersUtilizationDTO.name) &&
        Objects.equals(this.costEfficiency, dominoServerControlcenterHardwareTiersUtilizationDTO.costEfficiency) &&
        Objects.equals(this.utilization, dominoServerControlcenterHardwareTiersUtilizationDTO.utilization) &&
        Objects.equals(this.id, dominoServerControlcenterHardwareTiersUtilizationDTO.id) &&
        Objects.equals(this.estimatedCost, dominoServerControlcenterHardwareTiersUtilizationDTO.estimatedCost) &&
        Objects.equals(this.utilizationVariation, dominoServerControlcenterHardwareTiersUtilizationDTO.utilizationVariation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(completedRunsCount, estimatedCostVariation, averageQueueTimeInSeconds, estimatedCostPerHour, name, costEfficiency, utilization, id, estimatedCost, utilizationVariation);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoServerControlcenterHardwareTiersUtilizationDTO {\n");
    sb.append("    completedRunsCount: ").append(toIndentedString(completedRunsCount)).append("\n");
    sb.append("    estimatedCostVariation: ").append(toIndentedString(estimatedCostVariation)).append("\n");
    sb.append("    averageQueueTimeInSeconds: ").append(toIndentedString(averageQueueTimeInSeconds)).append("\n");
    sb.append("    estimatedCostPerHour: ").append(toIndentedString(estimatedCostPerHour)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    costEfficiency: ").append(toIndentedString(costEfficiency)).append("\n");
    sb.append("    utilization: ").append(toIndentedString(utilization)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    estimatedCost: ").append(toIndentedString(estimatedCost)).append("\n");
    sb.append("    utilizationVariation: ").append(toIndentedString(utilizationVariation)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `completedRunsCount` to the URL query string
    if (getCompletedRunsCount() != null) {
      joiner.add(String.format("%scompletedRunsCount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompletedRunsCount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `estimatedCostVariation` to the URL query string
    if (getEstimatedCostVariation() != null) {
      joiner.add(String.format("%sestimatedCostVariation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEstimatedCostVariation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `averageQueueTimeInSeconds` to the URL query string
    if (getAverageQueueTimeInSeconds() != null) {
      joiner.add(String.format("%saverageQueueTimeInSeconds%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAverageQueueTimeInSeconds()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `estimatedCostPerHour` to the URL query string
    if (getEstimatedCostPerHour() != null) {
      joiner.add(String.format("%sestimatedCostPerHour%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEstimatedCostPerHour()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `name` to the URL query string
    if (getName() != null) {
      joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `costEfficiency` to the URL query string
    if (getCostEfficiency() != null) {
      joiner.add(String.format("%scostEfficiency%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCostEfficiency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `utilization` to the URL query string
    if (getUtilization() != null) {
      joiner.add(String.format("%sutilization%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUtilization()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `id` to the URL query string
    if (getId() != null) {
      joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `estimatedCost` to the URL query string
    if (getEstimatedCost() != null) {
      joiner.add(String.format("%sestimatedCost%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEstimatedCost()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `utilizationVariation` to the URL query string
    if (getUtilizationVariation() != null) {
      joiner.add(String.format("%sutilizationVariation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUtilizationVariation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy