com.dominodatalab.api.model.DominoHardwaretierApiHardwareTierCapacity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-java-client Show documentation
Show all versions of domino-java-client Show documentation
Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.
/*
* Domino Data Lab API v4
* This API provides access to select Domino functions available in Domino's non-public API. 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;
import com.dominodatalab.api.invoker.ApiClient;
/**
* DominoHardwaretierApiHardwareTierCapacity
*/
@JsonPropertyOrder({
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_AVAILABLE_CAPACITY_WITHOUT_LAUNCHING,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_CAPACITY_LEVEL,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_CURRENT_NUMBER_OF_EXECUTORS,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_MAXIMUM_AVAILABLE_CAPACITY,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_MAXIMUM_CONCURRENT_RUNS,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_MAXIMUM_NUMBER_OF_EXECUTORS,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_NUMBER_OF_CURRENTLY_EXECUTING_RUNS,
DominoHardwaretierApiHardwareTierCapacity.JSON_PROPERTY_NUMBER_OF_QUEUED_RUNS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:26.309454-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class DominoHardwaretierApiHardwareTierCapacity {
public static final String JSON_PROPERTY_AVAILABLE_CAPACITY_WITHOUT_LAUNCHING = "availableCapacityWithoutLaunching";
private Integer availableCapacityWithoutLaunching;
/**
* Gets or Sets capacityLevel
*/
public enum CapacityLevelEnum {
CAN_EXECUTE_WITH_CURRENT_INSTANCES("CAN_EXECUTE_WITH_CURRENT_INSTANCES"),
REQUIRES_LAUNCHING_INSTANCE("REQUIRES_LAUNCHING_INSTANCE"),
FULL("FULL"),
UNKNOWN("UNKNOWN");
private String value;
CapacityLevelEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static CapacityLevelEnum fromValue(String value) {
for (CapacityLevelEnum b : CapacityLevelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_CAPACITY_LEVEL = "capacityLevel";
private CapacityLevelEnum capacityLevel;
public static final String JSON_PROPERTY_CURRENT_NUMBER_OF_EXECUTORS = "currentNumberOfExecutors";
private Integer currentNumberOfExecutors;
public static final String JSON_PROPERTY_MAXIMUM_AVAILABLE_CAPACITY = "maximumAvailableCapacity";
private Integer maximumAvailableCapacity;
public static final String JSON_PROPERTY_MAXIMUM_CONCURRENT_RUNS = "maximumConcurrentRuns";
private Integer maximumConcurrentRuns;
public static final String JSON_PROPERTY_MAXIMUM_NUMBER_OF_EXECUTORS = "maximumNumberOfExecutors";
private Integer maximumNumberOfExecutors;
public static final String JSON_PROPERTY_NUMBER_OF_CURRENTLY_EXECUTING_RUNS = "numberOfCurrentlyExecutingRuns";
private Integer numberOfCurrentlyExecutingRuns;
public static final String JSON_PROPERTY_NUMBER_OF_QUEUED_RUNS = "numberOfQueuedRuns";
private Integer numberOfQueuedRuns;
public DominoHardwaretierApiHardwareTierCapacity() {
}
public DominoHardwaretierApiHardwareTierCapacity availableCapacityWithoutLaunching(Integer availableCapacityWithoutLaunching) {
this.availableCapacityWithoutLaunching = availableCapacityWithoutLaunching;
return this;
}
/**
* Get availableCapacityWithoutLaunching
* @return availableCapacityWithoutLaunching
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_AVAILABLE_CAPACITY_WITHOUT_LAUNCHING)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getAvailableCapacityWithoutLaunching() {
return availableCapacityWithoutLaunching;
}
@JsonProperty(JSON_PROPERTY_AVAILABLE_CAPACITY_WITHOUT_LAUNCHING)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAvailableCapacityWithoutLaunching(Integer availableCapacityWithoutLaunching) {
this.availableCapacityWithoutLaunching = availableCapacityWithoutLaunching;
}
public DominoHardwaretierApiHardwareTierCapacity capacityLevel(CapacityLevelEnum capacityLevel) {
this.capacityLevel = capacityLevel;
return this;
}
/**
* Get capacityLevel
* @return capacityLevel
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CAPACITY_LEVEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public CapacityLevelEnum getCapacityLevel() {
return capacityLevel;
}
@JsonProperty(JSON_PROPERTY_CAPACITY_LEVEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCapacityLevel(CapacityLevelEnum capacityLevel) {
this.capacityLevel = capacityLevel;
}
public DominoHardwaretierApiHardwareTierCapacity currentNumberOfExecutors(Integer currentNumberOfExecutors) {
this.currentNumberOfExecutors = currentNumberOfExecutors;
return this;
}
/**
* Get currentNumberOfExecutors
* @return currentNumberOfExecutors
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CURRENT_NUMBER_OF_EXECUTORS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCurrentNumberOfExecutors() {
return currentNumberOfExecutors;
}
@JsonProperty(JSON_PROPERTY_CURRENT_NUMBER_OF_EXECUTORS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCurrentNumberOfExecutors(Integer currentNumberOfExecutors) {
this.currentNumberOfExecutors = currentNumberOfExecutors;
}
public DominoHardwaretierApiHardwareTierCapacity maximumAvailableCapacity(Integer maximumAvailableCapacity) {
this.maximumAvailableCapacity = maximumAvailableCapacity;
return this;
}
/**
* Get maximumAvailableCapacity
* @return maximumAvailableCapacity
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAXIMUM_AVAILABLE_CAPACITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getMaximumAvailableCapacity() {
return maximumAvailableCapacity;
}
@JsonProperty(JSON_PROPERTY_MAXIMUM_AVAILABLE_CAPACITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaximumAvailableCapacity(Integer maximumAvailableCapacity) {
this.maximumAvailableCapacity = maximumAvailableCapacity;
}
public DominoHardwaretierApiHardwareTierCapacity maximumConcurrentRuns(Integer maximumConcurrentRuns) {
this.maximumConcurrentRuns = maximumConcurrentRuns;
return this;
}
/**
* Get maximumConcurrentRuns
* @return maximumConcurrentRuns
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAXIMUM_CONCURRENT_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getMaximumConcurrentRuns() {
return maximumConcurrentRuns;
}
@JsonProperty(JSON_PROPERTY_MAXIMUM_CONCURRENT_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaximumConcurrentRuns(Integer maximumConcurrentRuns) {
this.maximumConcurrentRuns = maximumConcurrentRuns;
}
public DominoHardwaretierApiHardwareTierCapacity maximumNumberOfExecutors(Integer maximumNumberOfExecutors) {
this.maximumNumberOfExecutors = maximumNumberOfExecutors;
return this;
}
/**
* Get maximumNumberOfExecutors
* @return maximumNumberOfExecutors
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAXIMUM_NUMBER_OF_EXECUTORS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getMaximumNumberOfExecutors() {
return maximumNumberOfExecutors;
}
@JsonProperty(JSON_PROPERTY_MAXIMUM_NUMBER_OF_EXECUTORS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaximumNumberOfExecutors(Integer maximumNumberOfExecutors) {
this.maximumNumberOfExecutors = maximumNumberOfExecutors;
}
public DominoHardwaretierApiHardwareTierCapacity numberOfCurrentlyExecutingRuns(Integer numberOfCurrentlyExecutingRuns) {
this.numberOfCurrentlyExecutingRuns = numberOfCurrentlyExecutingRuns;
return this;
}
/**
* Get numberOfCurrentlyExecutingRuns
* @return numberOfCurrentlyExecutingRuns
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NUMBER_OF_CURRENTLY_EXECUTING_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getNumberOfCurrentlyExecutingRuns() {
return numberOfCurrentlyExecutingRuns;
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_CURRENTLY_EXECUTING_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumberOfCurrentlyExecutingRuns(Integer numberOfCurrentlyExecutingRuns) {
this.numberOfCurrentlyExecutingRuns = numberOfCurrentlyExecutingRuns;
}
public DominoHardwaretierApiHardwareTierCapacity numberOfQueuedRuns(Integer numberOfQueuedRuns) {
this.numberOfQueuedRuns = numberOfQueuedRuns;
return this;
}
/**
* Get numberOfQueuedRuns
* @return numberOfQueuedRuns
*/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NUMBER_OF_QUEUED_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getNumberOfQueuedRuns() {
return numberOfQueuedRuns;
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_QUEUED_RUNS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumberOfQueuedRuns(Integer numberOfQueuedRuns) {
this.numberOfQueuedRuns = numberOfQueuedRuns;
}
/**
* Return true if this domino.hardwaretier.api.HardwareTierCapacity object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoHardwaretierApiHardwareTierCapacity dominoHardwaretierApiHardwareTierCapacity = (DominoHardwaretierApiHardwareTierCapacity) o;
return Objects.equals(this.availableCapacityWithoutLaunching, dominoHardwaretierApiHardwareTierCapacity.availableCapacityWithoutLaunching) &&
Objects.equals(this.capacityLevel, dominoHardwaretierApiHardwareTierCapacity.capacityLevel) &&
Objects.equals(this.currentNumberOfExecutors, dominoHardwaretierApiHardwareTierCapacity.currentNumberOfExecutors) &&
Objects.equals(this.maximumAvailableCapacity, dominoHardwaretierApiHardwareTierCapacity.maximumAvailableCapacity) &&
Objects.equals(this.maximumConcurrentRuns, dominoHardwaretierApiHardwareTierCapacity.maximumConcurrentRuns) &&
Objects.equals(this.maximumNumberOfExecutors, dominoHardwaretierApiHardwareTierCapacity.maximumNumberOfExecutors) &&
Objects.equals(this.numberOfCurrentlyExecutingRuns, dominoHardwaretierApiHardwareTierCapacity.numberOfCurrentlyExecutingRuns) &&
Objects.equals(this.numberOfQueuedRuns, dominoHardwaretierApiHardwareTierCapacity.numberOfQueuedRuns);
}
@Override
public int hashCode() {
return Objects.hash(availableCapacityWithoutLaunching, capacityLevel, currentNumberOfExecutors, maximumAvailableCapacity, maximumConcurrentRuns, maximumNumberOfExecutors, numberOfCurrentlyExecutingRuns, numberOfQueuedRuns);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoHardwaretierApiHardwareTierCapacity {\n");
sb.append(" availableCapacityWithoutLaunching: ").append(toIndentedString(availableCapacityWithoutLaunching)).append("\n");
sb.append(" capacityLevel: ").append(toIndentedString(capacityLevel)).append("\n");
sb.append(" currentNumberOfExecutors: ").append(toIndentedString(currentNumberOfExecutors)).append("\n");
sb.append(" maximumAvailableCapacity: ").append(toIndentedString(maximumAvailableCapacity)).append("\n");
sb.append(" maximumConcurrentRuns: ").append(toIndentedString(maximumConcurrentRuns)).append("\n");
sb.append(" maximumNumberOfExecutors: ").append(toIndentedString(maximumNumberOfExecutors)).append("\n");
sb.append(" numberOfCurrentlyExecutingRuns: ").append(toIndentedString(numberOfCurrentlyExecutingRuns)).append("\n");
sb.append(" numberOfQueuedRuns: ").append(toIndentedString(numberOfQueuedRuns)).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 `availableCapacityWithoutLaunching` to the URL query string
if (getAvailableCapacityWithoutLaunching() != null) {
joiner.add(String.format("%savailableCapacityWithoutLaunching%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailableCapacityWithoutLaunching()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `capacityLevel` to the URL query string
if (getCapacityLevel() != null) {
joiner.add(String.format("%scapacityLevel%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCapacityLevel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `currentNumberOfExecutors` to the URL query string
if (getCurrentNumberOfExecutors() != null) {
joiner.add(String.format("%scurrentNumberOfExecutors%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCurrentNumberOfExecutors()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `maximumAvailableCapacity` to the URL query string
if (getMaximumAvailableCapacity() != null) {
joiner.add(String.format("%smaximumAvailableCapacity%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaximumAvailableCapacity()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `maximumConcurrentRuns` to the URL query string
if (getMaximumConcurrentRuns() != null) {
joiner.add(String.format("%smaximumConcurrentRuns%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaximumConcurrentRuns()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `maximumNumberOfExecutors` to the URL query string
if (getMaximumNumberOfExecutors() != null) {
joiner.add(String.format("%smaximumNumberOfExecutors%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaximumNumberOfExecutors()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `numberOfCurrentlyExecutingRuns` to the URL query string
if (getNumberOfCurrentlyExecutingRuns() != null) {
joiner.add(String.format("%snumberOfCurrentlyExecutingRuns%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfCurrentlyExecutingRuns()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `numberOfQueuedRuns` to the URL query string
if (getNumberOfQueuedRuns() != null) {
joiner.add(String.format("%snumberOfQueuedRuns%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfQueuedRuns()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy