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

com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceAdminPageTableRow 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.DominoDataplaneDataPlaneName;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceAdminPageClusterInfo;
import com.dominodatalab.api.model.Information;
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.time.OffsetDateTime;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * DominoWorkspaceApiWorkspaceAdminPageTableRow
 */
@JsonPropertyOrder({
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_WORKSPACE_ID,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_NAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_OWNER_USERNAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_WORKSPACE_CREATED_TIME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_LAST_SESSION_START,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_ENVIRONMENT_REVISION_ID,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_ENVIRONMENT_REVISION_NUMBER,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_ENVIRONMENT_NAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_PV_SPACE,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_PROJECT_NAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_PROJECT_OWNER_NAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_WORKSPACE_STATE,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_PVC_NAME,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_CLUSTER_INFO,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_DISK_USAGE,
  DominoWorkspaceApiWorkspaceAdminPageTableRow.JSON_PROPERTY_DATA_PLANE_NAME
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspaceApiWorkspaceAdminPageTableRow {
  public static final String JSON_PROPERTY_WORKSPACE_ID = "workspaceId";
  private String workspaceId;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_OWNER_USERNAME = "ownerUsername";
  private String ownerUsername;

  public static final String JSON_PROPERTY_WORKSPACE_CREATED_TIME = "workspaceCreatedTime";
  private OffsetDateTime workspaceCreatedTime;

  public static final String JSON_PROPERTY_LAST_SESSION_START = "lastSessionStart";
  private OffsetDateTime lastSessionStart;

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

  public static final String JSON_PROPERTY_ENVIRONMENT_REVISION_NUMBER = "environmentRevisionNumber";
  private Integer environmentRevisionNumber;

  public static final String JSON_PROPERTY_ENVIRONMENT_NAME = "environmentName";
  private String environmentName;

  public static final String JSON_PROPERTY_PV_SPACE = "pvSpace";
  private Information pvSpace;

  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;

  /**
   * Gets or Sets workspaceState
   */
  public enum WorkspaceStateEnum {
    STARTED("Started"),
    
    STOPPED("Stopped"),
    
    INITIALIZING("Initializing"),
    
    STOPPING("Stopping"),
    
    CREATED("Created"),
    
    DELETED("Deleted"),
    
    STARTING("Starting");

    private String value;

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

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

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

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

  public static final String JSON_PROPERTY_WORKSPACE_STATE = "workspaceState";
  private WorkspaceStateEnum workspaceState;

  public static final String JSON_PROPERTY_PVC_NAME = "pvcName";
  private String pvcName;

  public static final String JSON_PROPERTY_CLUSTER_INFO = "clusterInfo";
  private DominoWorkspaceApiWorkspaceAdminPageClusterInfo clusterInfo;

  public static final String JSON_PROPERTY_DISK_USAGE = "diskUsage";
  private String diskUsage;

  public static final String JSON_PROPERTY_DATA_PLANE_NAME = "dataPlaneName";
  private DominoDataplaneDataPlaneName dataPlaneName;

  public DominoWorkspaceApiWorkspaceAdminPageTableRow() { 
  }

  public DominoWorkspaceApiWorkspaceAdminPageTableRow workspaceId(String workspaceId) {
    this.workspaceId = workspaceId;
    return this;
  }

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

  public String getWorkspaceId() {
    return workspaceId;
  }


  @JsonProperty(JSON_PROPERTY_WORKSPACE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setWorkspaceId(String workspaceId) {
    this.workspaceId = workspaceId;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow name(String name) {
    this.name = name;
    return this;
  }

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

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setName(String name) {
    this.name = name;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow ownerUsername(String ownerUsername) {
    this.ownerUsername = ownerUsername;
    return this;
  }

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

  public String getOwnerUsername() {
    return ownerUsername;
  }


  @JsonProperty(JSON_PROPERTY_OWNER_USERNAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setOwnerUsername(String ownerUsername) {
    this.ownerUsername = ownerUsername;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow workspaceCreatedTime(OffsetDateTime workspaceCreatedTime) {
    this.workspaceCreatedTime = workspaceCreatedTime;
    return this;
  }

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

  public OffsetDateTime getWorkspaceCreatedTime() {
    return workspaceCreatedTime;
  }


  @JsonProperty(JSON_PROPERTY_WORKSPACE_CREATED_TIME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setWorkspaceCreatedTime(OffsetDateTime workspaceCreatedTime) {
    this.workspaceCreatedTime = workspaceCreatedTime;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow lastSessionStart(OffsetDateTime lastSessionStart) {
    this.lastSessionStart = lastSessionStart;
    return this;
  }

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

  public OffsetDateTime getLastSessionStart() {
    return lastSessionStart;
  }


  @JsonProperty(JSON_PROPERTY_LAST_SESSION_START)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLastSessionStart(OffsetDateTime lastSessionStart) {
    this.lastSessionStart = lastSessionStart;
  }


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

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

  public String getEnvironmentRevisionId() {
    return environmentRevisionId;
  }


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


  public DominoWorkspaceApiWorkspaceAdminPageTableRow environmentRevisionNumber(Integer environmentRevisionNumber) {
    this.environmentRevisionNumber = environmentRevisionNumber;
    return this;
  }

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

  public Integer getEnvironmentRevisionNumber() {
    return environmentRevisionNumber;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_REVISION_NUMBER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEnvironmentRevisionNumber(Integer environmentRevisionNumber) {
    this.environmentRevisionNumber = environmentRevisionNumber;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow environmentName(String environmentName) {
    this.environmentName = environmentName;
    return this;
  }

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

  public String getEnvironmentName() {
    return environmentName;
  }


  @JsonProperty(JSON_PROPERTY_ENVIRONMENT_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnvironmentName(String environmentName) {
    this.environmentName = environmentName;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow pvSpace(Information pvSpace) {
    this.pvSpace = pvSpace;
    return this;
  }

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

  public Information getPvSpace() {
    return pvSpace;
  }


  @JsonProperty(JSON_PROPERTY_PV_SPACE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPvSpace(Information pvSpace) {
    this.pvSpace = pvSpace;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow 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 DominoWorkspaceApiWorkspaceAdminPageTableRow 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 DominoWorkspaceApiWorkspaceAdminPageTableRow workspaceState(WorkspaceStateEnum workspaceState) {
    this.workspaceState = workspaceState;
    return this;
  }

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

  public WorkspaceStateEnum getWorkspaceState() {
    return workspaceState;
  }


  @JsonProperty(JSON_PROPERTY_WORKSPACE_STATE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setWorkspaceState(WorkspaceStateEnum workspaceState) {
    this.workspaceState = workspaceState;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow pvcName(String pvcName) {
    this.pvcName = pvcName;
    return this;
  }

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

  public String getPvcName() {
    return pvcName;
  }


  @JsonProperty(JSON_PROPERTY_PVC_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPvcName(String pvcName) {
    this.pvcName = pvcName;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow clusterInfo(DominoWorkspaceApiWorkspaceAdminPageClusterInfo clusterInfo) {
    this.clusterInfo = clusterInfo;
    return this;
  }

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

  public DominoWorkspaceApiWorkspaceAdminPageClusterInfo getClusterInfo() {
    return clusterInfo;
  }


  @JsonProperty(JSON_PROPERTY_CLUSTER_INFO)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setClusterInfo(DominoWorkspaceApiWorkspaceAdminPageClusterInfo clusterInfo) {
    this.clusterInfo = clusterInfo;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow diskUsage(String diskUsage) {
    this.diskUsage = diskUsage;
    return this;
  }

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

  public String getDiskUsage() {
    return diskUsage;
  }


  @JsonProperty(JSON_PROPERTY_DISK_USAGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDiskUsage(String diskUsage) {
    this.diskUsage = diskUsage;
  }


  public DominoWorkspaceApiWorkspaceAdminPageTableRow dataPlaneName(DominoDataplaneDataPlaneName dataPlaneName) {
    this.dataPlaneName = dataPlaneName;
    return this;
  }

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

  public DominoDataplaneDataPlaneName getDataPlaneName() {
    return dataPlaneName;
  }


  @JsonProperty(JSON_PROPERTY_DATA_PLANE_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDataPlaneName(DominoDataplaneDataPlaneName dataPlaneName) {
    this.dataPlaneName = dataPlaneName;
  }


  /**
   * Return true if this domino.workspace.api.WorkspaceAdminPageTableRow object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoWorkspaceApiWorkspaceAdminPageTableRow dominoWorkspaceApiWorkspaceAdminPageTableRow = (DominoWorkspaceApiWorkspaceAdminPageTableRow) o;
    return Objects.equals(this.workspaceId, dominoWorkspaceApiWorkspaceAdminPageTableRow.workspaceId) &&
        Objects.equals(this.name, dominoWorkspaceApiWorkspaceAdminPageTableRow.name) &&
        Objects.equals(this.ownerUsername, dominoWorkspaceApiWorkspaceAdminPageTableRow.ownerUsername) &&
        Objects.equals(this.workspaceCreatedTime, dominoWorkspaceApiWorkspaceAdminPageTableRow.workspaceCreatedTime) &&
        Objects.equals(this.lastSessionStart, dominoWorkspaceApiWorkspaceAdminPageTableRow.lastSessionStart) &&
        Objects.equals(this.environmentRevisionId, dominoWorkspaceApiWorkspaceAdminPageTableRow.environmentRevisionId) &&
        Objects.equals(this.environmentRevisionNumber, dominoWorkspaceApiWorkspaceAdminPageTableRow.environmentRevisionNumber) &&
        Objects.equals(this.environmentName, dominoWorkspaceApiWorkspaceAdminPageTableRow.environmentName) &&
        Objects.equals(this.pvSpace, dominoWorkspaceApiWorkspaceAdminPageTableRow.pvSpace) &&
        Objects.equals(this.projectName, dominoWorkspaceApiWorkspaceAdminPageTableRow.projectName) &&
        Objects.equals(this.projectOwnerName, dominoWorkspaceApiWorkspaceAdminPageTableRow.projectOwnerName) &&
        Objects.equals(this.workspaceState, dominoWorkspaceApiWorkspaceAdminPageTableRow.workspaceState) &&
        Objects.equals(this.pvcName, dominoWorkspaceApiWorkspaceAdminPageTableRow.pvcName) &&
        Objects.equals(this.clusterInfo, dominoWorkspaceApiWorkspaceAdminPageTableRow.clusterInfo) &&
        Objects.equals(this.diskUsage, dominoWorkspaceApiWorkspaceAdminPageTableRow.diskUsage) &&
        Objects.equals(this.dataPlaneName, dominoWorkspaceApiWorkspaceAdminPageTableRow.dataPlaneName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(workspaceId, name, ownerUsername, workspaceCreatedTime, lastSessionStart, environmentRevisionId, environmentRevisionNumber, environmentName, pvSpace, projectName, projectOwnerName, workspaceState, pvcName, clusterInfo, diskUsage, dataPlaneName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoWorkspaceApiWorkspaceAdminPageTableRow {\n");
    sb.append("    workspaceId: ").append(toIndentedString(workspaceId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    ownerUsername: ").append(toIndentedString(ownerUsername)).append("\n");
    sb.append("    workspaceCreatedTime: ").append(toIndentedString(workspaceCreatedTime)).append("\n");
    sb.append("    lastSessionStart: ").append(toIndentedString(lastSessionStart)).append("\n");
    sb.append("    environmentRevisionId: ").append(toIndentedString(environmentRevisionId)).append("\n");
    sb.append("    environmentRevisionNumber: ").append(toIndentedString(environmentRevisionNumber)).append("\n");
    sb.append("    environmentName: ").append(toIndentedString(environmentName)).append("\n");
    sb.append("    pvSpace: ").append(toIndentedString(pvSpace)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
    sb.append("    projectOwnerName: ").append(toIndentedString(projectOwnerName)).append("\n");
    sb.append("    workspaceState: ").append(toIndentedString(workspaceState)).append("\n");
    sb.append("    pvcName: ").append(toIndentedString(pvcName)).append("\n");
    sb.append("    clusterInfo: ").append(toIndentedString(clusterInfo)).append("\n");
    sb.append("    diskUsage: ").append(toIndentedString(diskUsage)).append("\n");
    sb.append("    dataPlaneName: ").append(toIndentedString(dataPlaneName)).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 `workspaceId` to the URL query string
    if (getWorkspaceId() != null) {
      joiner.add(String.format("%sworkspaceId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWorkspaceId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

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

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

    // add `lastSessionStart` to the URL query string
    if (getLastSessionStart() != null) {
      joiner.add(String.format("%slastSessionStart%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastSessionStart()), 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 `environmentRevisionNumber` to the URL query string
    if (getEnvironmentRevisionNumber() != null) {
      joiner.add(String.format("%senvironmentRevisionNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEnvironmentRevisionNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

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

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

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

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

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

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

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

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy