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

com.dominodatalab.pub.model.ModelApiVersion Maven / Gradle / Ivy

Go to download

Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.

There is a newer version: 6.0.1.0
Show newest version
/*
 * Domino Public API
 * Domino Public API Endpoints
 *
 * The version of the OpenAPI document: 0.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.pub.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.pub.model.ModelApiSource;
import com.dominodatalab.pub.model.ModelApiVersionDeployment;
import com.dominodatalab.pub.model.ModelApiVersionMetadata;
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.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


import com.dominodatalab.pub.invoker.ApiClient;
/**
 * ModelApiVersion
 */
@JsonPropertyOrder({
  ModelApiVersion.JSON_PROPERTY_COMMIT_ID,
  ModelApiVersion.JSON_PROPERTY_DATA_PLANE_ID,
  ModelApiVersion.JSON_PROPERTY_DEPLOYMENT,
  ModelApiVersion.JSON_PROPERTY_DESCRIPTION,
  ModelApiVersion.JSON_PROPERTY_ENVIRONMENT_REVISION_ID,
  ModelApiVersion.JSON_PROPERTY_ID,
  ModelApiVersion.JSON_PROPERTY_LABELS,
  ModelApiVersion.JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE,
  ModelApiVersion.JSON_PROPERTY_METADATA,
  ModelApiVersion.JSON_PROPERTY_MODEL_API_ID,
  ModelApiVersion.JSON_PROPERTY_MONITORING_ENABLED,
  ModelApiVersion.JSON_PROPERTY_NUMBER,
  ModelApiVersion.JSON_PROPERTY_PREDICTION_DATASET_RESOURCE_ID,
  ModelApiVersion.JSON_PROPERTY_PROJECT_ID,
  ModelApiVersion.JSON_PROPERTY_PROVENANCE_CHECKPOINT_ID,
  ModelApiVersion.JSON_PROPERTY_RECORD_INVOCATION,
  ModelApiVersion.JSON_PROPERTY_SOURCE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-04T16:37:28.765500600-04:00[America/New_York]", comments = "Generator version: 7.8.0")
public class ModelApiVersion {
  public static final String JSON_PROPERTY_COMMIT_ID = "commitId";
  private String commitId;

  public static final String JSON_PROPERTY_DATA_PLANE_ID = "dataPlaneId";
  private String dataPlaneId;

  public static final String JSON_PROPERTY_DEPLOYMENT = "deployment";
  private ModelApiVersionDeployment deployment;

  public static final String JSON_PROPERTY_DESCRIPTION = "description";
  private String description;

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

  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_LABELS = "labels";
  private List labels = new ArrayList<>();

  public static final String JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE = "logHttpRequestResponse";
  private Boolean logHttpRequestResponse;

  public static final String JSON_PROPERTY_METADATA = "metadata";
  private ModelApiVersionMetadata metadata;

  public static final String JSON_PROPERTY_MODEL_API_ID = "modelApiId";
  private String modelApiId;

  public static final String JSON_PROPERTY_MONITORING_ENABLED = "monitoringEnabled";
  private Boolean monitoringEnabled;

  public static final String JSON_PROPERTY_NUMBER = "number";
  private Integer number;

  public static final String JSON_PROPERTY_PREDICTION_DATASET_RESOURCE_ID = "predictionDatasetResourceId";
  private String predictionDatasetResourceId;

  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  private String projectId;

  public static final String JSON_PROPERTY_PROVENANCE_CHECKPOINT_ID = "provenanceCheckpointId";
  private String provenanceCheckpointId;

  public static final String JSON_PROPERTY_RECORD_INVOCATION = "recordInvocation";
  private Boolean recordInvocation;

  public static final String JSON_PROPERTY_SOURCE = "source";
  private ModelApiSource source;

  public ModelApiVersion() { 
  }

  public ModelApiVersion commitId(String commitId) {
    this.commitId = commitId;
    return this;
  }

  /**
   * The id of the commit of the Model API Version.
   * @return commitId
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_COMMIT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public String getCommitId() {
    return commitId;
  }


  @JsonProperty(JSON_PROPERTY_COMMIT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCommitId(String commitId) {
    this.commitId = commitId;
  }


  public ModelApiVersion dataPlaneId(String dataPlaneId) {
    this.dataPlaneId = dataPlaneId;
    return this;
  }

  /**
   * The id of the data plane the Model API Version is deployed to.
   * @return dataPlaneId
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_DATA_PLANE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public String getDataPlaneId() {
    return dataPlaneId;
  }


  @JsonProperty(JSON_PROPERTY_DATA_PLANE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDataPlaneId(String dataPlaneId) {
    this.dataPlaneId = dataPlaneId;
  }


  public ModelApiVersion deployment(ModelApiVersionDeployment deployment) {
    this.deployment = deployment;
    return this;
  }

  /**
   * Get deployment
   * @return deployment
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DEPLOYMENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public ModelApiVersionDeployment getDeployment() {
    return deployment;
  }


  @JsonProperty(JSON_PROPERTY_DEPLOYMENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeployment(ModelApiVersionDeployment deployment) {
    this.deployment = deployment;
  }


  public ModelApiVersion description(String description) {
    this.description = description;
    return this;
  }

  /**
   * The description of the Model API Version.
   * @return description
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getDescription() {
    return description;
  }


  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDescription(String description) {
    this.description = description;
  }


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

  /**
   * The id of the environment revision the Model API Version is deployed on.
   * @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 ModelApiVersion id(String id) {
    this.id = id;
    return this;
  }

  /**
   * The id of the Model API Version.
   * @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 ModelApiVersion labels(List labels) {
    this.labels = labels;
    return this;
  }

  public ModelApiVersion addLabelsItem(String labelsItem) {
    if (this.labels == null) {
      this.labels = new ArrayList<>();
    }
    this.labels.add(labelsItem);
    return this;
  }

  /**
   * The labels of the Model API Version.
   * @return labels
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_LABELS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public List getLabels() {
    return labels;
  }


  @JsonProperty(JSON_PROPERTY_LABELS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setLabels(List labels) {
    this.labels = labels;
  }


  public ModelApiVersion logHttpRequestResponse(Boolean logHttpRequestResponse) {
    this.logHttpRequestResponse = logHttpRequestResponse;
    return this;
  }

  /**
   * Whether the Model API Version should log the HTTP requests and responses.
   * @return logHttpRequestResponse
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public Boolean getLogHttpRequestResponse() {
    return logHttpRequestResponse;
  }


  @JsonProperty(JSON_PROPERTY_LOG_HTTP_REQUEST_RESPONSE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setLogHttpRequestResponse(Boolean logHttpRequestResponse) {
    this.logHttpRequestResponse = logHttpRequestResponse;
  }


  public ModelApiVersion metadata(ModelApiVersionMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

  /**
   * Get metadata
   * @return metadata
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_METADATA)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public ModelApiVersionMetadata getMetadata() {
    return metadata;
  }


  @JsonProperty(JSON_PROPERTY_METADATA)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setMetadata(ModelApiVersionMetadata metadata) {
    this.metadata = metadata;
  }


  public ModelApiVersion modelApiId(String modelApiId) {
    this.modelApiId = modelApiId;
    return this;
  }

  /**
   * The id of the Model API the version belongs to.
   * @return modelApiId
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_MODEL_API_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public String getModelApiId() {
    return modelApiId;
  }


  @JsonProperty(JSON_PROPERTY_MODEL_API_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setModelApiId(String modelApiId) {
    this.modelApiId = modelApiId;
  }


  public ModelApiVersion monitoringEnabled(Boolean monitoringEnabled) {
    this.monitoringEnabled = monitoringEnabled;
    return this;
  }

  /**
   * Whether monitoring is enabled for the Mode API Version.
   * @return monitoringEnabled
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_MONITORING_ENABLED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public Boolean getMonitoringEnabled() {
    return monitoringEnabled;
  }


  @JsonProperty(JSON_PROPERTY_MONITORING_ENABLED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setMonitoringEnabled(Boolean monitoringEnabled) {
    this.monitoringEnabled = monitoringEnabled;
  }


  public ModelApiVersion number(Integer number) {
    this.number = number;
    return this;
  }

  /**
   * The version number of the Model API Version.
   * @return number
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Integer getNumber() {
    return number;
  }


  @JsonProperty(JSON_PROPERTY_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNumber(Integer number) {
    this.number = number;
  }


  public ModelApiVersion predictionDatasetResourceId(String predictionDatasetResourceId) {
    this.predictionDatasetResourceId = predictionDatasetResourceId;
    return this;
  }

  /**
   * The id of the prediction dataset used by the Model API Version.
   * @return predictionDatasetResourceId
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PREDICTION_DATASET_RESOURCE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getPredictionDatasetResourceId() {
    return predictionDatasetResourceId;
  }


  @JsonProperty(JSON_PROPERTY_PREDICTION_DATASET_RESOURCE_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPredictionDatasetResourceId(String predictionDatasetResourceId) {
    this.predictionDatasetResourceId = predictionDatasetResourceId;
  }


  public ModelApiVersion projectId(String projectId) {
    this.projectId = projectId;
    return this;
  }

  /**
   * The id of the project the Model API Version belongs to.
   * @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 ModelApiVersion provenanceCheckpointId(String provenanceCheckpointId) {
    this.provenanceCheckpointId = provenanceCheckpointId;
    return this;
  }

  /**
   * The id of the provenance checkpoint of the Model API Version.
   * @return provenanceCheckpointId
   */
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PROVENANCE_CHECKPOINT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getProvenanceCheckpointId() {
    return provenanceCheckpointId;
  }


  @JsonProperty(JSON_PROPERTY_PROVENANCE_CHECKPOINT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProvenanceCheckpointId(String provenanceCheckpointId) {
    this.provenanceCheckpointId = provenanceCheckpointId;
  }


  public ModelApiVersion recordInvocation(Boolean recordInvocation) {
    this.recordInvocation = recordInvocation;
    return this;
  }

  /**
   * Whether the Model API Version should record invocations.
   * @return recordInvocation
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_RECORD_INVOCATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public Boolean getRecordInvocation() {
    return recordInvocation;
  }


  @JsonProperty(JSON_PROPERTY_RECORD_INVOCATION)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRecordInvocation(Boolean recordInvocation) {
    this.recordInvocation = recordInvocation;
  }


  public ModelApiVersion source(ModelApiSource source) {
    this.source = source;
    return this;
  }

  /**
   * Get source
   * @return source
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_SOURCE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public ModelApiSource getSource() {
    return source;
  }


  @JsonProperty(JSON_PROPERTY_SOURCE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setSource(ModelApiSource source) {
    this.source = source;
  }


  /**
   * Return true if this ModelApiVersion object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ModelApiVersion modelApiVersion = (ModelApiVersion) o;
    return Objects.equals(this.commitId, modelApiVersion.commitId) &&
        Objects.equals(this.dataPlaneId, modelApiVersion.dataPlaneId) &&
        Objects.equals(this.deployment, modelApiVersion.deployment) &&
        Objects.equals(this.description, modelApiVersion.description) &&
        Objects.equals(this.environmentRevisionId, modelApiVersion.environmentRevisionId) &&
        Objects.equals(this.id, modelApiVersion.id) &&
        Objects.equals(this.labels, modelApiVersion.labels) &&
        Objects.equals(this.logHttpRequestResponse, modelApiVersion.logHttpRequestResponse) &&
        Objects.equals(this.metadata, modelApiVersion.metadata) &&
        Objects.equals(this.modelApiId, modelApiVersion.modelApiId) &&
        Objects.equals(this.monitoringEnabled, modelApiVersion.monitoringEnabled) &&
        Objects.equals(this.number, modelApiVersion.number) &&
        Objects.equals(this.predictionDatasetResourceId, modelApiVersion.predictionDatasetResourceId) &&
        Objects.equals(this.projectId, modelApiVersion.projectId) &&
        Objects.equals(this.provenanceCheckpointId, modelApiVersion.provenanceCheckpointId) &&
        Objects.equals(this.recordInvocation, modelApiVersion.recordInvocation) &&
        Objects.equals(this.source, modelApiVersion.source);
  }

  @Override
  public int hashCode() {
    return Objects.hash(commitId, dataPlaneId, deployment, description, environmentRevisionId, id, labels, logHttpRequestResponse, metadata, modelApiId, monitoringEnabled, number, predictionDatasetResourceId, projectId, provenanceCheckpointId, recordInvocation, source);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ModelApiVersion {\n");
    sb.append("    commitId: ").append(toIndentedString(commitId)).append("\n");
    sb.append("    dataPlaneId: ").append(toIndentedString(dataPlaneId)).append("\n");
    sb.append("    deployment: ").append(toIndentedString(deployment)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    environmentRevisionId: ").append(toIndentedString(environmentRevisionId)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    labels: ").append(toIndentedString(labels)).append("\n");
    sb.append("    logHttpRequestResponse: ").append(toIndentedString(logHttpRequestResponse)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    modelApiId: ").append(toIndentedString(modelApiId)).append("\n");
    sb.append("    monitoringEnabled: ").append(toIndentedString(monitoringEnabled)).append("\n");
    sb.append("    number: ").append(toIndentedString(number)).append("\n");
    sb.append("    predictionDatasetResourceId: ").append(toIndentedString(predictionDatasetResourceId)).append("\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    provenanceCheckpointId: ").append(toIndentedString(provenanceCheckpointId)).append("\n");
    sb.append("    recordInvocation: ").append(toIndentedString(recordInvocation)).append("\n");
    sb.append("    source: ").append(toIndentedString(source)).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 `commitId` to the URL query string
    if (getCommitId() != null) {
      joiner.add(String.format("%scommitId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCommitId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `dataPlaneId` to the URL query string
    if (getDataPlaneId() != null) {
      joiner.add(String.format("%sdataPlaneId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDataPlaneId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

    // add `description` to the URL query string
    if (getDescription() != null) {
      joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), 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(ApiClient.valueToString(getEnvironmentRevisionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `id` to the URL query string
    if (getId() != null) {
      joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `labels` to the URL query string
    if (getLabels() != null) {
      for (int i = 0; i < getLabels().size(); i++) {
        joiner.add(String.format("%slabels%s%s=%s", prefix, suffix,
            "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
            URLEncoder.encode(ApiClient.valueToString(getLabels().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
      }
    }

    // add `logHttpRequestResponse` to the URL query string
    if (getLogHttpRequestResponse() != null) {
      joiner.add(String.format("%slogHttpRequestResponse%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLogHttpRequestResponse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

    // add `modelApiId` to the URL query string
    if (getModelApiId() != null) {
      joiner.add(String.format("%smodelApiId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getModelApiId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `monitoringEnabled` to the URL query string
    if (getMonitoringEnabled() != null) {
      joiner.add(String.format("%smonitoringEnabled%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonitoringEnabled()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `number` to the URL query string
    if (getNumber() != null) {
      joiner.add(String.format("%snumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `predictionDatasetResourceId` to the URL query string
    if (getPredictionDatasetResourceId() != null) {
      joiner.add(String.format("%spredictionDatasetResourceId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPredictionDatasetResourceId()), 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(ApiClient.valueToString(getProjectId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `provenanceCheckpointId` to the URL query string
    if (getProvenanceCheckpointId() != null) {
      joiner.add(String.format("%sprovenanceCheckpointId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProvenanceCheckpointId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `recordInvocation` to the URL query string
    if (getRecordInvocation() != null) {
      joiner.add(String.format("%srecordInvocation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecordInvocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy