com.dominodatalab.api.model.DominoCommonRunInterfacesRunMonolithDTO 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;
/**
* DominoCommonRunInterfacesRunMonolithDTO
*/
@JsonPropertyOrder({
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_ID,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_TITLE,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_START_TIME,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_PROJECT_ID,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_PROJECT_IDENTITY,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_RUN_TYPE,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_HARDWARE_TIER_NAME,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_RUN_DURATION_IN_SECONDS,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_ESTIMATED_COST,
DominoCommonRunInterfacesRunMonolithDTO.JSON_PROPERTY_STATUS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonRunInterfacesRunMonolithDTO {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_TITLE = "title";
private String title;
public static final String JSON_PROPERTY_START_TIME = "startTime";
private String startTime;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_PROJECT_IDENTITY = "projectIdentity";
private String projectIdentity;
public static final String JSON_PROPERTY_RUN_TYPE = "runType";
private String runType;
public static final String JSON_PROPERTY_HARDWARE_TIER_NAME = "hardwareTierName";
private String hardwareTierName;
public static final String JSON_PROPERTY_RUN_DURATION_IN_SECONDS = "runDurationInSeconds";
private Double runDurationInSeconds;
public static final String JSON_PROPERTY_ESTIMATED_COST = "estimatedCost";
private Double estimatedCost;
/**
* Gets or Sets status
*/
public enum StatusEnum {
PENDING("Pending"),
STOPPING("Stopping"),
STOPPED("Stopped"),
SCHEDULED("Scheduled"),
PULLING("Pulling"),
SUCCEEDED("Succeeded"),
STOPANDDISCARDREQUESTED("StopAndDiscardRequested"),
BUILDING("Building"),
ERROR("Error"),
FINISHING("Finishing"),
QUEUED("Queued"),
STOPREQUESTED("StopRequested"),
PREPARING("Preparing"),
RUNNING("Running"),
FAILED("Failed"),
SERVING("Serving");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public DominoCommonRunInterfacesRunMonolithDTO() {
}
public DominoCommonRunInterfacesRunMonolithDTO id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @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 DominoCommonRunInterfacesRunMonolithDTO title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTitle() {
return title;
}
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTitle(String title) {
this.title = title;
}
public DominoCommonRunInterfacesRunMonolithDTO startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* Get startTime
* @return startTime
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_START_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStartTime() {
return startTime;
}
@JsonProperty(JSON_PROPERTY_START_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public DominoCommonRunInterfacesRunMonolithDTO projectId(String projectId) {
this.projectId = projectId;
return this;
}
/**
* Get projectId
* @return projectId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProjectId() {
return projectId;
}
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public DominoCommonRunInterfacesRunMonolithDTO projectIdentity(String projectIdentity) {
this.projectIdentity = projectIdentity;
return this;
}
/**
* Get projectIdentity
* @return projectIdentity
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT_IDENTITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProjectIdentity() {
return projectIdentity;
}
@JsonProperty(JSON_PROPERTY_PROJECT_IDENTITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectIdentity(String projectIdentity) {
this.projectIdentity = projectIdentity;
}
public DominoCommonRunInterfacesRunMonolithDTO runType(String runType) {
this.runType = runType;
return this;
}
/**
* Get runType
* @return runType
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_RUN_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRunType() {
return runType;
}
@JsonProperty(JSON_PROPERTY_RUN_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRunType(String runType) {
this.runType = runType;
}
public DominoCommonRunInterfacesRunMonolithDTO hardwareTierName(String hardwareTierName) {
this.hardwareTierName = hardwareTierName;
return this;
}
/**
* Get hardwareTierName
* @return hardwareTierName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HARDWARE_TIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getHardwareTierName() {
return hardwareTierName;
}
@JsonProperty(JSON_PROPERTY_HARDWARE_TIER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHardwareTierName(String hardwareTierName) {
this.hardwareTierName = hardwareTierName;
}
public DominoCommonRunInterfacesRunMonolithDTO runDurationInSeconds(Double runDurationInSeconds) {
this.runDurationInSeconds = runDurationInSeconds;
return this;
}
/**
* Get runDurationInSeconds
* @return runDurationInSeconds
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_RUN_DURATION_IN_SECONDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getRunDurationInSeconds() {
return runDurationInSeconds;
}
@JsonProperty(JSON_PROPERTY_RUN_DURATION_IN_SECONDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRunDurationInSeconds(Double runDurationInSeconds) {
this.runDurationInSeconds = runDurationInSeconds;
}
public DominoCommonRunInterfacesRunMonolithDTO estimatedCost(Double estimatedCost) {
this.estimatedCost = estimatedCost;
return this;
}
/**
* Get estimatedCost
* @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 DominoCommonRunInterfacesRunMonolithDTO status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public StatusEnum getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStatus(StatusEnum status) {
this.status = status;
}
/**
* Return true if this domino.common.run.interfaces.RunMonolithDTO object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoCommonRunInterfacesRunMonolithDTO dominoCommonRunInterfacesRunMonolithDTO = (DominoCommonRunInterfacesRunMonolithDTO) o;
return Objects.equals(this.id, dominoCommonRunInterfacesRunMonolithDTO.id) &&
Objects.equals(this.title, dominoCommonRunInterfacesRunMonolithDTO.title) &&
Objects.equals(this.startTime, dominoCommonRunInterfacesRunMonolithDTO.startTime) &&
Objects.equals(this.projectId, dominoCommonRunInterfacesRunMonolithDTO.projectId) &&
Objects.equals(this.projectIdentity, dominoCommonRunInterfacesRunMonolithDTO.projectIdentity) &&
Objects.equals(this.runType, dominoCommonRunInterfacesRunMonolithDTO.runType) &&
Objects.equals(this.hardwareTierName, dominoCommonRunInterfacesRunMonolithDTO.hardwareTierName) &&
Objects.equals(this.runDurationInSeconds, dominoCommonRunInterfacesRunMonolithDTO.runDurationInSeconds) &&
Objects.equals(this.estimatedCost, dominoCommonRunInterfacesRunMonolithDTO.estimatedCost) &&
Objects.equals(this.status, dominoCommonRunInterfacesRunMonolithDTO.status);
}
@Override
public int hashCode() {
return Objects.hash(id, title, startTime, projectId, projectIdentity, runType, hardwareTierName, runDurationInSeconds, estimatedCost, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoCommonRunInterfacesRunMonolithDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" projectIdentity: ").append(toIndentedString(projectIdentity)).append("\n");
sb.append(" runType: ").append(toIndentedString(runType)).append("\n");
sb.append(" hardwareTierName: ").append(toIndentedString(hardwareTierName)).append("\n");
sb.append(" runDurationInSeconds: ").append(toIndentedString(runDurationInSeconds)).append("\n");
sb.append(" estimatedCost: ").append(toIndentedString(estimatedCost)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 `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 `title` to the URL query string
if (getTitle() != null) {
joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `startTime` to the URL query string
if (getStartTime() != null) {
joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `projectId` to the URL query string
if (getProjectId() != null) {
joiner.add(String.format("%sprojectId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `projectIdentity` to the URL query string
if (getProjectIdentity() != null) {
joiner.add(String.format("%sprojectIdentity%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectIdentity()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `runType` to the URL query string
if (getRunType() != null) {
joiner.add(String.format("%srunType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRunType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `hardwareTierName` to the URL query string
if (getHardwareTierName() != null) {
joiner.add(String.format("%shardwareTierName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHardwareTierName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `runDurationInSeconds` to the URL query string
if (getRunDurationInSeconds() != null) {
joiner.add(String.format("%srunDurationInSeconds%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRunDurationInSeconds()), 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 `status` to the URL query string
if (getStatus() != null) {
joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy