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

com.dominodatalab.api.model.DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails 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.DominoModelmanagerApiModelGitRepoCommit;
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;


/**
 * DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails
 */
@JsonPropertyOrder({
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_MODEL_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_MODEL_VERSION_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_PROJECT_NAME,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_PROJECT_OWNER_NAME,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_PROJECT_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_IS_GIT_BASED_PROJECT,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_DFS_COMMIT_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_GIT_REPO_COMMITS,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_CAN_BE_REPRODUCED,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_ENV_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_ENV_NAME,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_ENV_REVISION_NUMBER,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_REQUESTED_USER_ID,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.JSON_PROPERTY_VERSION_NUMBER,
  DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.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 DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails {
  public static final String JSON_PROPERTY_MODEL_ID = "modelId";
  private String modelId;

  public static final String JSON_PROPERTY_MODEL_VERSION_ID = "modelVersionId";
  private String modelVersionId;

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

  public static final String JSON_PROPERTY_PROJECT_OWNER_NAME = "projectOwnerName";
  private String projectOwnerName;

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

  public static final String JSON_PROPERTY_IS_GIT_BASED_PROJECT = "isGitBasedProject";
  private Boolean isGitBasedProject;

  public static final String JSON_PROPERTY_DFS_COMMIT_ID = "dfsCommitId";
  private String dfsCommitId;

  public static final String JSON_PROPERTY_GIT_REPO_COMMITS = "gitRepoCommits";
  private List gitRepoCommits = new ArrayList<>();

  public static final String JSON_PROPERTY_CAN_BE_REPRODUCED = "canBeReproduced";
  private Boolean canBeReproduced;

  public static final String JSON_PROPERTY_ENV_ID = "envId";
  private String envId;

  public static final String JSON_PROPERTY_ENV_NAME = "envName";
  private String envName;

  public static final String JSON_PROPERTY_ENV_REVISION_NUMBER = "envRevisionNumber";
  private Integer envRevisionNumber;

  public static final String JSON_PROPERTY_REQUESTED_USER_ID = "requestedUserId";
  private String requestedUserId;

  public static final String JSON_PROPERTY_VERSION_NUMBER = "versionNumber";
  private Integer versionNumber;

  /**
   * Gets or Sets status
   */
  public enum StatusEnum {
    STARTING("starting"),
    
    RUNNING("running"),
    
    NOT_RUNNING("not_running"),
    
    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 DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails() { 
  }

  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails modelId(String modelId) {
    this.modelId = modelId;
    return this;
  }

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

  public String getModelId() {
    return modelId;
  }


  @JsonProperty(JSON_PROPERTY_MODEL_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setModelId(String modelId) {
    this.modelId = modelId;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails modelVersionId(String modelVersionId) {
    this.modelVersionId = modelVersionId;
    return this;
  }

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

  public String getModelVersionId() {
    return modelVersionId;
  }


  @JsonProperty(JSON_PROPERTY_MODEL_VERSION_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setModelVersionId(String modelVersionId) {
    this.modelVersionId = modelVersionId;
  }


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

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

  public String getProjectOwnerName() {
    return projectOwnerName;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_OWNER_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProjectOwnerName(String projectOwnerName) {
    this.projectOwnerName = projectOwnerName;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails 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 DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails isGitBasedProject(Boolean isGitBasedProject) {
    this.isGitBasedProject = isGitBasedProject;
    return this;
  }

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

  public Boolean getIsGitBasedProject() {
    return isGitBasedProject;
  }


  @JsonProperty(JSON_PROPERTY_IS_GIT_BASED_PROJECT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsGitBasedProject(Boolean isGitBasedProject) {
    this.isGitBasedProject = isGitBasedProject;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails dfsCommitId(String dfsCommitId) {
    this.dfsCommitId = dfsCommitId;
    return this;
  }

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

  public String getDfsCommitId() {
    return dfsCommitId;
  }


  @JsonProperty(JSON_PROPERTY_DFS_COMMIT_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDfsCommitId(String dfsCommitId) {
    this.dfsCommitId = dfsCommitId;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails gitRepoCommits(List gitRepoCommits) {
    this.gitRepoCommits = gitRepoCommits;
    return this;
  }

  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails addGitRepoCommitsItem(DominoModelmanagerApiModelGitRepoCommit gitRepoCommitsItem) {
    if (this.gitRepoCommits == null) {
      this.gitRepoCommits = new ArrayList<>();
    }
    this.gitRepoCommits.add(gitRepoCommitsItem);
    return this;
  }

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

  public List getGitRepoCommits() {
    return gitRepoCommits;
  }


  @JsonProperty(JSON_PROPERTY_GIT_REPO_COMMITS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setGitRepoCommits(List gitRepoCommits) {
    this.gitRepoCommits = gitRepoCommits;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails canBeReproduced(Boolean canBeReproduced) {
    this.canBeReproduced = canBeReproduced;
    return this;
  }

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

  public Boolean getCanBeReproduced() {
    return canBeReproduced;
  }


  @JsonProperty(JSON_PROPERTY_CAN_BE_REPRODUCED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCanBeReproduced(Boolean canBeReproduced) {
    this.canBeReproduced = canBeReproduced;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails envId(String envId) {
    this.envId = envId;
    return this;
  }

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

  public String getEnvId() {
    return envId;
  }


  @JsonProperty(JSON_PROPERTY_ENV_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvId(String envId) {
    this.envId = envId;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails envName(String envName) {
    this.envName = envName;
    return this;
  }

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

  public String getEnvName() {
    return envName;
  }


  @JsonProperty(JSON_PROPERTY_ENV_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvName(String envName) {
    this.envName = envName;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails envRevisionNumber(Integer envRevisionNumber) {
    this.envRevisionNumber = envRevisionNumber;
    return this;
  }

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

  public Integer getEnvRevisionNumber() {
    return envRevisionNumber;
  }


  @JsonProperty(JSON_PROPERTY_ENV_REVISION_NUMBER)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvRevisionNumber(Integer envRevisionNumber) {
    this.envRevisionNumber = envRevisionNumber;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails requestedUserId(String requestedUserId) {
    this.requestedUserId = requestedUserId;
    return this;
  }

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

  public String getRequestedUserId() {
    return requestedUserId;
  }


  @JsonProperty(JSON_PROPERTY_REQUESTED_USER_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRequestedUserId(String requestedUserId) {
    this.requestedUserId = requestedUserId;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails versionNumber(Integer versionNumber) {
    this.versionNumber = versionNumber;
    return this;
  }

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

  public Integer getVersionNumber() {
    return versionNumber;
  }


  @JsonProperty(JSON_PROPERTY_VERSION_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setVersionNumber(Integer versionNumber) {
    this.versionNumber = versionNumber;
  }


  public DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails 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.modelmanager.api.ModelVersionReproduceInWorkspaceDetails object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails = (DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails) o;
    return Objects.equals(this.modelId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.modelId) &&
        Objects.equals(this.modelVersionId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.modelVersionId) &&
        Objects.equals(this.projectName, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.projectName) &&
        Objects.equals(this.projectOwnerName, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.projectOwnerName) &&
        Objects.equals(this.projectId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.projectId) &&
        Objects.equals(this.isGitBasedProject, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.isGitBasedProject) &&
        Objects.equals(this.dfsCommitId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.dfsCommitId) &&
        Objects.equals(this.gitRepoCommits, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.gitRepoCommits) &&
        Objects.equals(this.canBeReproduced, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.canBeReproduced) &&
        Objects.equals(this.envId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.envId) &&
        Objects.equals(this.envName, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.envName) &&
        Objects.equals(this.envRevisionNumber, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.envRevisionNumber) &&
        Objects.equals(this.requestedUserId, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.requestedUserId) &&
        Objects.equals(this.versionNumber, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.versionNumber) &&
        Objects.equals(this.status, dominoModelmanagerApiModelVersionReproduceInWorkspaceDetails.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(modelId, modelVersionId, projectName, projectOwnerName, projectId, isGitBasedProject, dfsCommitId, gitRepoCommits, canBeReproduced, envId, envName, envRevisionNumber, requestedUserId, versionNumber, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoModelmanagerApiModelVersionReproduceInWorkspaceDetails {\n");
    sb.append("    modelId: ").append(toIndentedString(modelId)).append("\n");
    sb.append("    modelVersionId: ").append(toIndentedString(modelVersionId)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
    sb.append("    projectOwnerName: ").append(toIndentedString(projectOwnerName)).append("\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    isGitBasedProject: ").append(toIndentedString(isGitBasedProject)).append("\n");
    sb.append("    dfsCommitId: ").append(toIndentedString(dfsCommitId)).append("\n");
    sb.append("    gitRepoCommits: ").append(toIndentedString(gitRepoCommits)).append("\n");
    sb.append("    canBeReproduced: ").append(toIndentedString(canBeReproduced)).append("\n");
    sb.append("    envId: ").append(toIndentedString(envId)).append("\n");
    sb.append("    envName: ").append(toIndentedString(envName)).append("\n");
    sb.append("    envRevisionNumber: ").append(toIndentedString(envRevisionNumber)).append("\n");
    sb.append("    requestedUserId: ").append(toIndentedString(requestedUserId)).append("\n");
    sb.append("    versionNumber: ").append(toIndentedString(versionNumber)).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 `modelId` to the URL query string
    if (getModelId() != null) {
      joiner.add(String.format("%smodelId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getModelId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `modelVersionId` to the URL query string
    if (getModelVersionId() != null) {
      joiner.add(String.format("%smodelVersionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getModelVersionId()), 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 `projectOwnerName` to the URL query string
    if (getProjectOwnerName() != null) {
      joiner.add(String.format("%sprojectOwnerName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProjectOwnerName()), 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 `isGitBasedProject` to the URL query string
    if (getIsGitBasedProject() != null) {
      joiner.add(String.format("%sisGitBasedProject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsGitBasedProject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

    // add `gitRepoCommits` to the URL query string
    if (getGitRepoCommits() != null) {
      for (int i = 0; i < getGitRepoCommits().size(); i++) {
        if (getGitRepoCommits().get(i) != null) {
          joiner.add(getGitRepoCommits().get(i).toUrlQueryString(String.format("%sgitRepoCommits%s%s", prefix, suffix,
          "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
        }
      }
    }

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

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

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

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

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

    // add `versionNumber` to the URL query string
    if (getVersionNumber() != null) {
      joiner.add(String.format("%sversionNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVersionNumber()), 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