com.dominodatalab.api.model.DominoModelmanagerApiModelExportVersion 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.dominodatalab.api.model.DominoModelmanagerApiModelVersion;
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;
/**
* DominoModelmanagerApiModelExportVersion
*/
@JsonPropertyOrder({
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_ID,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_EXPORT_ID,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_BUILD_ID,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_MODEL_VERSION,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_EXPORT_TARGET_DETAILS,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_STATUS,
DominoModelmanagerApiModelExportVersion.JSON_PROPERTY_CREATED
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoModelmanagerApiModelExportVersion {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_EXPORT_ID = "exportId";
private String exportId;
public static final String JSON_PROPERTY_BUILD_ID = "buildId";
private String buildId;
public static final String JSON_PROPERTY_MODEL_VERSION = "modelVersion";
private DominoModelmanagerApiModelVersion modelVersion;
public static final String JSON_PROPERTY_EXPORT_TARGET_DETAILS = "exportTargetDetails";
private Object exportTargetDetails = null;
/**
* Gets or Sets status
*/
public enum StatusEnum {
EXPORTING("exporting"),
PREPARING("preparing"),
COMPLETE("complete"),
NOT_TRIGGERED("not_triggered"),
FAILED("failed");
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 static final String JSON_PROPERTY_CREATED = "created";
private Long created;
public DominoModelmanagerApiModelExportVersion() {
}
public DominoModelmanagerApiModelExportVersion 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 DominoModelmanagerApiModelExportVersion exportId(String exportId) {
this.exportId = exportId;
return this;
}
/**
* Get exportId
* @return exportId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_EXPORT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getExportId() {
return exportId;
}
@JsonProperty(JSON_PROPERTY_EXPORT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExportId(String exportId) {
this.exportId = exportId;
}
public DominoModelmanagerApiModelExportVersion buildId(String buildId) {
this.buildId = buildId;
return this;
}
/**
* Get buildId
* @return buildId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BUILD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBuildId() {
return buildId;
}
@JsonProperty(JSON_PROPERTY_BUILD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBuildId(String buildId) {
this.buildId = buildId;
}
public DominoModelmanagerApiModelExportVersion modelVersion(DominoModelmanagerApiModelVersion modelVersion) {
this.modelVersion = modelVersion;
return this;
}
/**
* Get modelVersion
* @return modelVersion
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MODEL_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoModelmanagerApiModelVersion getModelVersion() {
return modelVersion;
}
@JsonProperty(JSON_PROPERTY_MODEL_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setModelVersion(DominoModelmanagerApiModelVersion modelVersion) {
this.modelVersion = modelVersion;
}
public DominoModelmanagerApiModelExportVersion exportTargetDetails(Object exportTargetDetails) {
this.exportTargetDetails = exportTargetDetails;
return this;
}
/**
* Get exportTargetDetails
* @return exportTargetDetails
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPORT_TARGET_DETAILS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Object getExportTargetDetails() {
return exportTargetDetails;
}
@JsonProperty(JSON_PROPERTY_EXPORT_TARGET_DETAILS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExportTargetDetails(Object exportTargetDetails) {
this.exportTargetDetails = exportTargetDetails;
}
public DominoModelmanagerApiModelExportVersion 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;
}
public DominoModelmanagerApiModelExportVersion created(Long created) {
this.created = created;
return this;
}
/**
* Get created
* @return created
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getCreated() {
return created;
}
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreated(Long created) {
this.created = created;
}
/**
* Return true if this domino.modelmanager.api.ModelExportVersion object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoModelmanagerApiModelExportVersion dominoModelmanagerApiModelExportVersion = (DominoModelmanagerApiModelExportVersion) o;
return Objects.equals(this.id, dominoModelmanagerApiModelExportVersion.id) &&
Objects.equals(this.exportId, dominoModelmanagerApiModelExportVersion.exportId) &&
Objects.equals(this.buildId, dominoModelmanagerApiModelExportVersion.buildId) &&
Objects.equals(this.modelVersion, dominoModelmanagerApiModelExportVersion.modelVersion) &&
Objects.equals(this.exportTargetDetails, dominoModelmanagerApiModelExportVersion.exportTargetDetails) &&
Objects.equals(this.status, dominoModelmanagerApiModelExportVersion.status) &&
Objects.equals(this.created, dominoModelmanagerApiModelExportVersion.created);
}
@Override
public int hashCode() {
return Objects.hash(id, exportId, buildId, modelVersion, exportTargetDetails, status, created);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoModelmanagerApiModelExportVersion {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" exportId: ").append(toIndentedString(exportId)).append("\n");
sb.append(" buildId: ").append(toIndentedString(buildId)).append("\n");
sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n");
sb.append(" exportTargetDetails: ").append(toIndentedString(exportTargetDetails)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).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 `exportId` to the URL query string
if (getExportId() != null) {
joiner.add(String.format("%sexportId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExportId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `buildId` to the URL query string
if (getBuildId() != null) {
joiner.add(String.format("%sbuildId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBuildId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `modelVersion` to the URL query string
if (getModelVersion() != null) {
joiner.add(getModelVersion().toUrlQueryString(prefix + "modelVersion" + suffix));
}
// add `exportTargetDetails` to the URL query string
if (getExportTargetDetails() != null) {
joiner.add(String.format("%sexportTargetDetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExportTargetDetails()), 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")));
}
// add `created` to the URL query string
if (getCreated() != null) {
joiner.add(String.format("%screated%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreated()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy