com.dominodatalab.api.model.DominoCommonGatewayRunsComputeClusterDetails 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;
/**
* DominoCommonGatewayRunsComputeClusterDetails
*/
@JsonPropertyOrder({
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_COMPUTE_CLUSTER_TYPE,
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_MASTER_HARDWARE_TIER_ID,
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_MASTER_HARDWARE_TIER_COST_PER_MINUTE,
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_AVERAGE_WORKER_COUNT,
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_WORKER_HARDWARE_TIER_ID,
DominoCommonGatewayRunsComputeClusterDetails.JSON_PROPERTY_WORKER_HARDWARE_TIER_COST_PER_MINUTE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonGatewayRunsComputeClusterDetails {
public static final String JSON_PROPERTY_COMPUTE_CLUSTER_TYPE = "computeClusterType";
private String computeClusterType;
public static final String JSON_PROPERTY_MASTER_HARDWARE_TIER_ID = "masterHardwareTierId";
private String masterHardwareTierId;
public static final String JSON_PROPERTY_MASTER_HARDWARE_TIER_COST_PER_MINUTE = "masterHardwareTierCostPerMinute";
private Double masterHardwareTierCostPerMinute;
public static final String JSON_PROPERTY_AVERAGE_WORKER_COUNT = "averageWorkerCount";
private Double averageWorkerCount;
public static final String JSON_PROPERTY_WORKER_HARDWARE_TIER_ID = "workerHardwareTierId";
private String workerHardwareTierId;
public static final String JSON_PROPERTY_WORKER_HARDWARE_TIER_COST_PER_MINUTE = "workerHardwareTierCostPerMinute";
private Double workerHardwareTierCostPerMinute;
public DominoCommonGatewayRunsComputeClusterDetails() {
}
public DominoCommonGatewayRunsComputeClusterDetails computeClusterType(String computeClusterType) {
this.computeClusterType = computeClusterType;
return this;
}
/**
* Get computeClusterType
* @return computeClusterType
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_COMPUTE_CLUSTER_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getComputeClusterType() {
return computeClusterType;
}
@JsonProperty(JSON_PROPERTY_COMPUTE_CLUSTER_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setComputeClusterType(String computeClusterType) {
this.computeClusterType = computeClusterType;
}
public DominoCommonGatewayRunsComputeClusterDetails masterHardwareTierId(String masterHardwareTierId) {
this.masterHardwareTierId = masterHardwareTierId;
return this;
}
/**
* Get masterHardwareTierId
* @return masterHardwareTierId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MASTER_HARDWARE_TIER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMasterHardwareTierId() {
return masterHardwareTierId;
}
@JsonProperty(JSON_PROPERTY_MASTER_HARDWARE_TIER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMasterHardwareTierId(String masterHardwareTierId) {
this.masterHardwareTierId = masterHardwareTierId;
}
public DominoCommonGatewayRunsComputeClusterDetails masterHardwareTierCostPerMinute(Double masterHardwareTierCostPerMinute) {
this.masterHardwareTierCostPerMinute = masterHardwareTierCostPerMinute;
return this;
}
/**
* Get masterHardwareTierCostPerMinute
* @return masterHardwareTierCostPerMinute
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MASTER_HARDWARE_TIER_COST_PER_MINUTE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getMasterHardwareTierCostPerMinute() {
return masterHardwareTierCostPerMinute;
}
@JsonProperty(JSON_PROPERTY_MASTER_HARDWARE_TIER_COST_PER_MINUTE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMasterHardwareTierCostPerMinute(Double masterHardwareTierCostPerMinute) {
this.masterHardwareTierCostPerMinute = masterHardwareTierCostPerMinute;
}
public DominoCommonGatewayRunsComputeClusterDetails averageWorkerCount(Double averageWorkerCount) {
this.averageWorkerCount = averageWorkerCount;
return this;
}
/**
* Get averageWorkerCount
* @return averageWorkerCount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_AVERAGE_WORKER_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getAverageWorkerCount() {
return averageWorkerCount;
}
@JsonProperty(JSON_PROPERTY_AVERAGE_WORKER_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAverageWorkerCount(Double averageWorkerCount) {
this.averageWorkerCount = averageWorkerCount;
}
public DominoCommonGatewayRunsComputeClusterDetails workerHardwareTierId(String workerHardwareTierId) {
this.workerHardwareTierId = workerHardwareTierId;
return this;
}
/**
* Get workerHardwareTierId
* @return workerHardwareTierId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_WORKER_HARDWARE_TIER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getWorkerHardwareTierId() {
return workerHardwareTierId;
}
@JsonProperty(JSON_PROPERTY_WORKER_HARDWARE_TIER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setWorkerHardwareTierId(String workerHardwareTierId) {
this.workerHardwareTierId = workerHardwareTierId;
}
public DominoCommonGatewayRunsComputeClusterDetails workerHardwareTierCostPerMinute(Double workerHardwareTierCostPerMinute) {
this.workerHardwareTierCostPerMinute = workerHardwareTierCostPerMinute;
return this;
}
/**
* Get workerHardwareTierCostPerMinute
* @return workerHardwareTierCostPerMinute
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_WORKER_HARDWARE_TIER_COST_PER_MINUTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getWorkerHardwareTierCostPerMinute() {
return workerHardwareTierCostPerMinute;
}
@JsonProperty(JSON_PROPERTY_WORKER_HARDWARE_TIER_COST_PER_MINUTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setWorkerHardwareTierCostPerMinute(Double workerHardwareTierCostPerMinute) {
this.workerHardwareTierCostPerMinute = workerHardwareTierCostPerMinute;
}
/**
* Return true if this domino.common.gateway.runs.ComputeClusterDetails object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoCommonGatewayRunsComputeClusterDetails dominoCommonGatewayRunsComputeClusterDetails = (DominoCommonGatewayRunsComputeClusterDetails) o;
return Objects.equals(this.computeClusterType, dominoCommonGatewayRunsComputeClusterDetails.computeClusterType) &&
Objects.equals(this.masterHardwareTierId, dominoCommonGatewayRunsComputeClusterDetails.masterHardwareTierId) &&
Objects.equals(this.masterHardwareTierCostPerMinute, dominoCommonGatewayRunsComputeClusterDetails.masterHardwareTierCostPerMinute) &&
Objects.equals(this.averageWorkerCount, dominoCommonGatewayRunsComputeClusterDetails.averageWorkerCount) &&
Objects.equals(this.workerHardwareTierId, dominoCommonGatewayRunsComputeClusterDetails.workerHardwareTierId) &&
Objects.equals(this.workerHardwareTierCostPerMinute, dominoCommonGatewayRunsComputeClusterDetails.workerHardwareTierCostPerMinute);
}
@Override
public int hashCode() {
return Objects.hash(computeClusterType, masterHardwareTierId, masterHardwareTierCostPerMinute, averageWorkerCount, workerHardwareTierId, workerHardwareTierCostPerMinute);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoCommonGatewayRunsComputeClusterDetails {\n");
sb.append(" computeClusterType: ").append(toIndentedString(computeClusterType)).append("\n");
sb.append(" masterHardwareTierId: ").append(toIndentedString(masterHardwareTierId)).append("\n");
sb.append(" masterHardwareTierCostPerMinute: ").append(toIndentedString(masterHardwareTierCostPerMinute)).append("\n");
sb.append(" averageWorkerCount: ").append(toIndentedString(averageWorkerCount)).append("\n");
sb.append(" workerHardwareTierId: ").append(toIndentedString(workerHardwareTierId)).append("\n");
sb.append(" workerHardwareTierCostPerMinute: ").append(toIndentedString(workerHardwareTierCostPerMinute)).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 `computeClusterType` to the URL query string
if (getComputeClusterType() != null) {
joiner.add(String.format("%scomputeClusterType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getComputeClusterType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `masterHardwareTierId` to the URL query string
if (getMasterHardwareTierId() != null) {
joiner.add(String.format("%smasterHardwareTierId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMasterHardwareTierId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `masterHardwareTierCostPerMinute` to the URL query string
if (getMasterHardwareTierCostPerMinute() != null) {
joiner.add(String.format("%smasterHardwareTierCostPerMinute%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMasterHardwareTierCostPerMinute()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `averageWorkerCount` to the URL query string
if (getAverageWorkerCount() != null) {
joiner.add(String.format("%saverageWorkerCount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAverageWorkerCount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `workerHardwareTierId` to the URL query string
if (getWorkerHardwareTierId() != null) {
joiner.add(String.format("%sworkerHardwareTierId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWorkerHardwareTierId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `workerHardwareTierCostPerMinute` to the URL query string
if (getWorkerHardwareTierCostPerMinute() != null) {
joiner.add(String.format("%sworkerHardwareTierCostPerMinute%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWorkerHardwareTierCostPerMinute()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy