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

com.dominodatalab.api.model.DominoMlflowApiMlflowData 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.DominoProvenanceApiProvenanceCheckpointDto;
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;


/**
 * DominoMlflowApiMlflowData
 */
@JsonPropertyOrder({
  DominoMlflowApiMlflowData.JSON_PROPERTY_PROJECT_ID,
  DominoMlflowApiMlflowData.JSON_PROPERTY_EXECUTION_ID,
  DominoMlflowApiMlflowData.JSON_PROPERTY_PROJECT_NAME,
  DominoMlflowApiMlflowData.JSON_PROPERTY_ENVIRONMENT_ID,
  DominoMlflowApiMlflowData.JSON_PROPERTY_ENVIRONMENT_REVISION_ID,
  DominoMlflowApiMlflowData.JSON_PROPERTY_HARDWARE_TIER_ID,
  DominoMlflowApiMlflowData.JSON_PROPERTY_MLFLOW_SOURCE_TYPE,
  DominoMlflowApiMlflowData.JSON_PROPERTY_RUN_NUMBER,
  DominoMlflowApiMlflowData.JSON_PROPERTY_DATASET_INFO,
  DominoMlflowApiMlflowData.JSON_PROPERTY_DATA_SOURCES,
  DominoMlflowApiMlflowData.JSON_PROPERTY_LATEST_CHECKPOINT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoMlflowApiMlflowData {
  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  private String projectId;

  public static final String JSON_PROPERTY_EXECUTION_ID = "executionId";
  private String executionId;

  public static final String JSON_PROPERTY_PROJECT_NAME = "projectName";
  private String projectName;

  public static final String JSON_PROPERTY_ENVIRONMENT_ID = "environmentId";
  private String environmentId;

  public static final String JSON_PROPERTY_ENVIRONMENT_REVISION_ID = "environmentRevisionId";
  private String environmentRevisionId;

  public static final String JSON_PROPERTY_HARDWARE_TIER_ID = "hardwareTierId";
  private String hardwareTierId;

  /**
   * Gets or Sets mlflowSourceType
   */
  public enum MlflowSourceTypeEnum {
    JOB("JOB"),
    
    NOTEBOOK("NOTEBOOK"),
    
    LOCAL("LOCAL"),
    
    UNKNOWN("UNKNOWN"),
    
    PIPELINE("PIPELINE"),
    
    PROJECT("PROJECT");

    private String value;

    MlflowSourceTypeEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static MlflowSourceTypeEnum fromValue(String value) {
      for (MlflowSourceTypeEnum b : MlflowSourceTypeEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  public static final String JSON_PROPERTY_MLFLOW_SOURCE_TYPE = "mlflowSourceType";
  private MlflowSourceTypeEnum mlflowSourceType;

  public static final String JSON_PROPERTY_RUN_NUMBER = "runNumber";
  private Integer runNumber;

  public static final String JSON_PROPERTY_DATASET_INFO = "datasetInfo";
  private String datasetInfo;

  public static final String JSON_PROPERTY_DATA_SOURCES = "dataSources";
  private String dataSources;

  public static final String JSON_PROPERTY_LATEST_CHECKPOINT = "latestCheckpoint";
  private DominoProvenanceApiProvenanceCheckpointDto latestCheckpoint;

  public DominoMlflowApiMlflowData() { 
  }

  public DominoMlflowApiMlflowData 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 DominoMlflowApiMlflowData executionId(String executionId) {
    this.executionId = executionId;
    return this;
  }

   /**
   * Get executionId
   * @return executionId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_EXECUTION_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getExecutionId() {
    return executionId;
  }


  @JsonProperty(JSON_PROPERTY_EXECUTION_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }


  public DominoMlflowApiMlflowData projectName(String projectName) {
    this.projectName = projectName;
    return this;
  }

   /**
   * Get projectName
   * @return projectName
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PROJECT_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getProjectName() {
    return projectName;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }


  public DominoMlflowApiMlflowData environmentId(String environmentId) {
    this.environmentId = environmentId;
    return this;
  }

   /**
   * Get environmentId
   * @return environmentId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getEnvironmentId() {
    return environmentId;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvironmentId(String environmentId) {
    this.environmentId = environmentId;
  }


  public DominoMlflowApiMlflowData environmentRevisionId(String environmentRevisionId) {
    this.environmentRevisionId = environmentRevisionId;
    return this;
  }

   /**
   * Get environmentRevisionId
   * @return environmentRevisionId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_REVISION_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getEnvironmentRevisionId() {
    return environmentRevisionId;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_REVISION_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvironmentRevisionId(String environmentRevisionId) {
    this.environmentRevisionId = environmentRevisionId;
  }


  public DominoMlflowApiMlflowData hardwareTierId(String hardwareTierId) {
    this.hardwareTierId = hardwareTierId;
    return this;
  }

   /**
   * Get hardwareTierId
   * @return hardwareTierId
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_HARDWARE_TIER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getHardwareTierId() {
    return hardwareTierId;
  }


  @JsonProperty(JSON_PROPERTY_HARDWARE_TIER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setHardwareTierId(String hardwareTierId) {
    this.hardwareTierId = hardwareTierId;
  }


  public DominoMlflowApiMlflowData mlflowSourceType(MlflowSourceTypeEnum mlflowSourceType) {
    this.mlflowSourceType = mlflowSourceType;
    return this;
  }

   /**
   * Get mlflowSourceType
   * @return mlflowSourceType
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_MLFLOW_SOURCE_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public MlflowSourceTypeEnum getMlflowSourceType() {
    return mlflowSourceType;
  }


  @JsonProperty(JSON_PROPERTY_MLFLOW_SOURCE_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setMlflowSourceType(MlflowSourceTypeEnum mlflowSourceType) {
    this.mlflowSourceType = mlflowSourceType;
  }


  public DominoMlflowApiMlflowData runNumber(Integer runNumber) {
    this.runNumber = runNumber;
    return this;
  }

   /**
   * Get runNumber
   * @return runNumber
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_RUN_NUMBER)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getRunNumber() {
    return runNumber;
  }


  @JsonProperty(JSON_PROPERTY_RUN_NUMBER)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRunNumber(Integer runNumber) {
    this.runNumber = runNumber;
  }


  public DominoMlflowApiMlflowData datasetInfo(String datasetInfo) {
    this.datasetInfo = datasetInfo;
    return this;
  }

   /**
   * Get datasetInfo
   * @return datasetInfo
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_DATASET_INFO)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getDatasetInfo() {
    return datasetInfo;
  }


  @JsonProperty(JSON_PROPERTY_DATASET_INFO)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDatasetInfo(String datasetInfo) {
    this.datasetInfo = datasetInfo;
  }


  public DominoMlflowApiMlflowData dataSources(String dataSources) {
    this.dataSources = dataSources;
    return this;
  }

   /**
   * Get dataSources
   * @return dataSources
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_DATA_SOURCES)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getDataSources() {
    return dataSources;
  }


  @JsonProperty(JSON_PROPERTY_DATA_SOURCES)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDataSources(String dataSources) {
    this.dataSources = dataSources;
  }


  public DominoMlflowApiMlflowData latestCheckpoint(DominoProvenanceApiProvenanceCheckpointDto latestCheckpoint) {
    this.latestCheckpoint = latestCheckpoint;
    return this;
  }

   /**
   * Get latestCheckpoint
   * @return latestCheckpoint
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LATEST_CHECKPOINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public DominoProvenanceApiProvenanceCheckpointDto getLatestCheckpoint() {
    return latestCheckpoint;
  }


  @JsonProperty(JSON_PROPERTY_LATEST_CHECKPOINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLatestCheckpoint(DominoProvenanceApiProvenanceCheckpointDto latestCheckpoint) {
    this.latestCheckpoint = latestCheckpoint;
  }


  /**
   * Return true if this domino.mlflow.api.MlflowData object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoMlflowApiMlflowData dominoMlflowApiMlflowData = (DominoMlflowApiMlflowData) o;
    return Objects.equals(this.projectId, dominoMlflowApiMlflowData.projectId) &&
        Objects.equals(this.executionId, dominoMlflowApiMlflowData.executionId) &&
        Objects.equals(this.projectName, dominoMlflowApiMlflowData.projectName) &&
        Objects.equals(this.environmentId, dominoMlflowApiMlflowData.environmentId) &&
        Objects.equals(this.environmentRevisionId, dominoMlflowApiMlflowData.environmentRevisionId) &&
        Objects.equals(this.hardwareTierId, dominoMlflowApiMlflowData.hardwareTierId) &&
        Objects.equals(this.mlflowSourceType, dominoMlflowApiMlflowData.mlflowSourceType) &&
        Objects.equals(this.runNumber, dominoMlflowApiMlflowData.runNumber) &&
        Objects.equals(this.datasetInfo, dominoMlflowApiMlflowData.datasetInfo) &&
        Objects.equals(this.dataSources, dominoMlflowApiMlflowData.dataSources) &&
        Objects.equals(this.latestCheckpoint, dominoMlflowApiMlflowData.latestCheckpoint);
  }

  @Override
  public int hashCode() {
    return Objects.hash(projectId, executionId, projectName, environmentId, environmentRevisionId, hardwareTierId, mlflowSourceType, runNumber, datasetInfo, dataSources, latestCheckpoint);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoMlflowApiMlflowData {\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
    sb.append("    environmentId: ").append(toIndentedString(environmentId)).append("\n");
    sb.append("    environmentRevisionId: ").append(toIndentedString(environmentRevisionId)).append("\n");
    sb.append("    hardwareTierId: ").append(toIndentedString(hardwareTierId)).append("\n");
    sb.append("    mlflowSourceType: ").append(toIndentedString(mlflowSourceType)).append("\n");
    sb.append("    runNumber: ").append(toIndentedString(runNumber)).append("\n");
    sb.append("    datasetInfo: ").append(toIndentedString(datasetInfo)).append("\n");
    sb.append("    dataSources: ").append(toIndentedString(dataSources)).append("\n");
    sb.append("    latestCheckpoint: ").append(toIndentedString(latestCheckpoint)).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 `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 `executionId` to the URL query string
    if (getExecutionId() != null) {
      joiner.add(String.format("%sexecutionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExecutionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

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

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

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

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

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

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

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

    // add `latestCheckpoint` to the URL query string
    if (getLatestCheckpoint() != null) {
      joiner.add(getLatestCheckpoint().toUrlQueryString(prefix + "latestCheckpoint" + suffix));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy