com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceDto 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.DominoWorkspaceApiWorkspaceConfigDto;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceImportedGitRepo;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceImportedProject;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceInitConfigDto;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceSessionDto;
import com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceSessionStatsDto;
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.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DominoWorkspaceApiWorkspaceDto
*/
@JsonPropertyOrder({
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_ID,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_DELETED,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_PROJECT_ID,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_OWNER_ID,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_OWNER_NAME,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_NAME,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_STATE,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_STATE_UPDATED_AT,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_INIT_CONFIG,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_CONFIG_TEMPLATE,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_CREATED_AT,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_IMPORTED_PROJECTS,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_IMPORTED_GIT_REPOS,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_DATA_PLANE_ID,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_MOST_RECENT_SESSION,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_SESSION_STATS,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_IS_LEGACY,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_IS_REPRODUCED,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_LAST_COMMIT_TIME,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_DFS_BRANCH_NAME,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_CODE_BRANCH_NAME,
DominoWorkspaceApiWorkspaceDto.JSON_PROPERTY_MARKED_FOR_DELETE_TIME
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspaceApiWorkspaceDto {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_DELETED = "deleted";
private Boolean deleted;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_OWNER_ID = "ownerId";
private String ownerId;
public static final String JSON_PROPERTY_OWNER_NAME = "ownerName";
private String ownerName;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_STATE = "state";
private String state;
public static final String JSON_PROPERTY_STATE_UPDATED_AT = "stateUpdatedAt";
private OffsetDateTime stateUpdatedAt;
public static final String JSON_PROPERTY_INIT_CONFIG = "initConfig";
private DominoWorkspaceApiWorkspaceInitConfigDto initConfig;
public static final String JSON_PROPERTY_CONFIG_TEMPLATE = "configTemplate";
private DominoWorkspaceApiWorkspaceConfigDto configTemplate;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_IMPORTED_PROJECTS = "importedProjects";
private List importedProjects = new ArrayList<>();
public static final String JSON_PROPERTY_IMPORTED_GIT_REPOS = "importedGitRepos";
private List importedGitRepos = new ArrayList<>();
public static final String JSON_PROPERTY_DATA_PLANE_ID = "dataPlaneId";
private String dataPlaneId;
public static final String JSON_PROPERTY_MOST_RECENT_SESSION = "mostRecentSession";
private DominoWorkspaceApiWorkspaceSessionDto mostRecentSession;
public static final String JSON_PROPERTY_SESSION_STATS = "sessionStats";
private DominoWorkspaceApiWorkspaceSessionStatsDto sessionStats;
public static final String JSON_PROPERTY_IS_LEGACY = "isLegacy";
private Boolean isLegacy;
public static final String JSON_PROPERTY_IS_REPRODUCED = "isReproduced";
private Boolean isReproduced;
public static final String JSON_PROPERTY_LAST_COMMIT_TIME = "lastCommitTime";
private OffsetDateTime lastCommitTime;
public static final String JSON_PROPERTY_DFS_BRANCH_NAME = "dfsBranchName";
private String dfsBranchName;
public static final String JSON_PROPERTY_CODE_BRANCH_NAME = "codeBranchName";
private String codeBranchName;
public static final String JSON_PROPERTY_MARKED_FOR_DELETE_TIME = "markedForDeleteTime";
private OffsetDateTime markedForDeleteTime;
public DominoWorkspaceApiWorkspaceDto() {
}
public DominoWorkspaceApiWorkspaceDto id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public DominoWorkspaceApiWorkspaceDto deleted(Boolean deleted) {
this.deleted = deleted;
return this;
}
/**
* Get deleted
* @return deleted
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getDeleted() {
return deleted;
}
@JsonProperty(JSON_PROPERTY_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public DominoWorkspaceApiWorkspaceDto 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 DominoWorkspaceApiWorkspaceDto ownerId(String ownerId) {
this.ownerId = ownerId;
return this;
}
/**
* Get ownerId
* @return ownerId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_OWNER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getOwnerId() {
return ownerId;
}
@JsonProperty(JSON_PROPERTY_OWNER_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
public DominoWorkspaceApiWorkspaceDto ownerName(String ownerName) {
this.ownerName = ownerName;
return this;
}
/**
* Get ownerName
* @return ownerName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getOwnerName() {
return ownerName;
}
@JsonProperty(JSON_PROPERTY_OWNER_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOwnerName(String ownerName) {
this.ownerName = ownerName;
}
public DominoWorkspaceApiWorkspaceDto 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 DominoWorkspaceApiWorkspaceDto state(String state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getState() {
return state;
}
@JsonProperty(JSON_PROPERTY_STATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setState(String state) {
this.state = state;
}
public DominoWorkspaceApiWorkspaceDto stateUpdatedAt(OffsetDateTime stateUpdatedAt) {
this.stateUpdatedAt = stateUpdatedAt;
return this;
}
/**
* Get stateUpdatedAt
* @return stateUpdatedAt
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STATE_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getStateUpdatedAt() {
return stateUpdatedAt;
}
@JsonProperty(JSON_PROPERTY_STATE_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStateUpdatedAt(OffsetDateTime stateUpdatedAt) {
this.stateUpdatedAt = stateUpdatedAt;
}
public DominoWorkspaceApiWorkspaceDto initConfig(DominoWorkspaceApiWorkspaceInitConfigDto initConfig) {
this.initConfig = initConfig;
return this;
}
/**
* Get initConfig
* @return initConfig
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_INIT_CONFIG)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoWorkspaceApiWorkspaceInitConfigDto getInitConfig() {
return initConfig;
}
@JsonProperty(JSON_PROPERTY_INIT_CONFIG)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setInitConfig(DominoWorkspaceApiWorkspaceInitConfigDto initConfig) {
this.initConfig = initConfig;
}
public DominoWorkspaceApiWorkspaceDto configTemplate(DominoWorkspaceApiWorkspaceConfigDto configTemplate) {
this.configTemplate = configTemplate;
return this;
}
/**
* Get configTemplate
* @return configTemplate
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CONFIG_TEMPLATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoWorkspaceApiWorkspaceConfigDto getConfigTemplate() {
return configTemplate;
}
@JsonProperty(JSON_PROPERTY_CONFIG_TEMPLATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setConfigTemplate(DominoWorkspaceApiWorkspaceConfigDto configTemplate) {
this.configTemplate = configTemplate;
}
public DominoWorkspaceApiWorkspaceDto createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getCreatedAt() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public DominoWorkspaceApiWorkspaceDto importedProjects(List importedProjects) {
this.importedProjects = importedProjects;
return this;
}
public DominoWorkspaceApiWorkspaceDto addImportedProjectsItem(DominoWorkspaceApiWorkspaceImportedProject importedProjectsItem) {
if (this.importedProjects == null) {
this.importedProjects = new ArrayList<>();
}
this.importedProjects.add(importedProjectsItem);
return this;
}
/**
* Get importedProjects
* @return importedProjects
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IMPORTED_PROJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getImportedProjects() {
return importedProjects;
}
@JsonProperty(JSON_PROPERTY_IMPORTED_PROJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setImportedProjects(List importedProjects) {
this.importedProjects = importedProjects;
}
public DominoWorkspaceApiWorkspaceDto importedGitRepos(List importedGitRepos) {
this.importedGitRepos = importedGitRepos;
return this;
}
public DominoWorkspaceApiWorkspaceDto addImportedGitReposItem(DominoWorkspaceApiWorkspaceImportedGitRepo importedGitReposItem) {
if (this.importedGitRepos == null) {
this.importedGitRepos = new ArrayList<>();
}
this.importedGitRepos.add(importedGitReposItem);
return this;
}
/**
* Get importedGitRepos
* @return importedGitRepos
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IMPORTED_GIT_REPOS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getImportedGitRepos() {
return importedGitRepos;
}
@JsonProperty(JSON_PROPERTY_IMPORTED_GIT_REPOS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setImportedGitRepos(List importedGitRepos) {
this.importedGitRepos = importedGitRepos;
}
public DominoWorkspaceApiWorkspaceDto dataPlaneId(String dataPlaneId) {
this.dataPlaneId = dataPlaneId;
return this;
}
/**
* Get dataPlaneId
* @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 DominoWorkspaceApiWorkspaceDto mostRecentSession(DominoWorkspaceApiWorkspaceSessionDto mostRecentSession) {
this.mostRecentSession = mostRecentSession;
return this;
}
/**
* Get mostRecentSession
* @return mostRecentSession
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MOST_RECENT_SESSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DominoWorkspaceApiWorkspaceSessionDto getMostRecentSession() {
return mostRecentSession;
}
@JsonProperty(JSON_PROPERTY_MOST_RECENT_SESSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMostRecentSession(DominoWorkspaceApiWorkspaceSessionDto mostRecentSession) {
this.mostRecentSession = mostRecentSession;
}
public DominoWorkspaceApiWorkspaceDto sessionStats(DominoWorkspaceApiWorkspaceSessionStatsDto sessionStats) {
this.sessionStats = sessionStats;
return this;
}
/**
* Get sessionStats
* @return sessionStats
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SESSION_STATS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoWorkspaceApiWorkspaceSessionStatsDto getSessionStats() {
return sessionStats;
}
@JsonProperty(JSON_PROPERTY_SESSION_STATS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSessionStats(DominoWorkspaceApiWorkspaceSessionStatsDto sessionStats) {
this.sessionStats = sessionStats;
}
public DominoWorkspaceApiWorkspaceDto isLegacy(Boolean isLegacy) {
this.isLegacy = isLegacy;
return this;
}
/**
* Get isLegacy
* @return isLegacy
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_LEGACY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsLegacy() {
return isLegacy;
}
@JsonProperty(JSON_PROPERTY_IS_LEGACY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsLegacy(Boolean isLegacy) {
this.isLegacy = isLegacy;
}
public DominoWorkspaceApiWorkspaceDto isReproduced(Boolean isReproduced) {
this.isReproduced = isReproduced;
return this;
}
/**
* Get isReproduced
* @return isReproduced
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_REPRODUCED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsReproduced() {
return isReproduced;
}
@JsonProperty(JSON_PROPERTY_IS_REPRODUCED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsReproduced(Boolean isReproduced) {
this.isReproduced = isReproduced;
}
public DominoWorkspaceApiWorkspaceDto lastCommitTime(OffsetDateTime lastCommitTime) {
this.lastCommitTime = lastCommitTime;
return this;
}
/**
* Get lastCommitTime
* @return lastCommitTime
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_COMMIT_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getLastCommitTime() {
return lastCommitTime;
}
@JsonProperty(JSON_PROPERTY_LAST_COMMIT_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastCommitTime(OffsetDateTime lastCommitTime) {
this.lastCommitTime = lastCommitTime;
}
public DominoWorkspaceApiWorkspaceDto dfsBranchName(String dfsBranchName) {
this.dfsBranchName = dfsBranchName;
return this;
}
/**
* Get dfsBranchName
* @return dfsBranchName
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DFS_BRANCH_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDfsBranchName() {
return dfsBranchName;
}
@JsonProperty(JSON_PROPERTY_DFS_BRANCH_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDfsBranchName(String dfsBranchName) {
this.dfsBranchName = dfsBranchName;
}
public DominoWorkspaceApiWorkspaceDto codeBranchName(String codeBranchName) {
this.codeBranchName = codeBranchName;
return this;
}
/**
* Get codeBranchName
* @return codeBranchName
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CODE_BRANCH_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCodeBranchName() {
return codeBranchName;
}
@JsonProperty(JSON_PROPERTY_CODE_BRANCH_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCodeBranchName(String codeBranchName) {
this.codeBranchName = codeBranchName;
}
public DominoWorkspaceApiWorkspaceDto markedForDeleteTime(OffsetDateTime markedForDeleteTime) {
this.markedForDeleteTime = markedForDeleteTime;
return this;
}
/**
* Get markedForDeleteTime
* @return markedForDeleteTime
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MARKED_FOR_DELETE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getMarkedForDeleteTime() {
return markedForDeleteTime;
}
@JsonProperty(JSON_PROPERTY_MARKED_FOR_DELETE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMarkedForDeleteTime(OffsetDateTime markedForDeleteTime) {
this.markedForDeleteTime = markedForDeleteTime;
}
/**
* Return true if this domino.workspace.api.WorkspaceDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoWorkspaceApiWorkspaceDto dominoWorkspaceApiWorkspaceDto = (DominoWorkspaceApiWorkspaceDto) o;
return Objects.equals(this.id, dominoWorkspaceApiWorkspaceDto.id) &&
Objects.equals(this.deleted, dominoWorkspaceApiWorkspaceDto.deleted) &&
Objects.equals(this.projectId, dominoWorkspaceApiWorkspaceDto.projectId) &&
Objects.equals(this.ownerId, dominoWorkspaceApiWorkspaceDto.ownerId) &&
Objects.equals(this.ownerName, dominoWorkspaceApiWorkspaceDto.ownerName) &&
Objects.equals(this.name, dominoWorkspaceApiWorkspaceDto.name) &&
Objects.equals(this.state, dominoWorkspaceApiWorkspaceDto.state) &&
Objects.equals(this.stateUpdatedAt, dominoWorkspaceApiWorkspaceDto.stateUpdatedAt) &&
Objects.equals(this.initConfig, dominoWorkspaceApiWorkspaceDto.initConfig) &&
Objects.equals(this.configTemplate, dominoWorkspaceApiWorkspaceDto.configTemplate) &&
Objects.equals(this.createdAt, dominoWorkspaceApiWorkspaceDto.createdAt) &&
Objects.equals(this.importedProjects, dominoWorkspaceApiWorkspaceDto.importedProjects) &&
Objects.equals(this.importedGitRepos, dominoWorkspaceApiWorkspaceDto.importedGitRepos) &&
Objects.equals(this.dataPlaneId, dominoWorkspaceApiWorkspaceDto.dataPlaneId) &&
Objects.equals(this.mostRecentSession, dominoWorkspaceApiWorkspaceDto.mostRecentSession) &&
Objects.equals(this.sessionStats, dominoWorkspaceApiWorkspaceDto.sessionStats) &&
Objects.equals(this.isLegacy, dominoWorkspaceApiWorkspaceDto.isLegacy) &&
Objects.equals(this.isReproduced, dominoWorkspaceApiWorkspaceDto.isReproduced) &&
Objects.equals(this.lastCommitTime, dominoWorkspaceApiWorkspaceDto.lastCommitTime) &&
Objects.equals(this.dfsBranchName, dominoWorkspaceApiWorkspaceDto.dfsBranchName) &&
Objects.equals(this.codeBranchName, dominoWorkspaceApiWorkspaceDto.codeBranchName) &&
Objects.equals(this.markedForDeleteTime, dominoWorkspaceApiWorkspaceDto.markedForDeleteTime);
}
@Override
public int hashCode() {
return Objects.hash(id, deleted, projectId, ownerId, ownerName, name, state, stateUpdatedAt, initConfig, configTemplate, createdAt, importedProjects, importedGitRepos, dataPlaneId, mostRecentSession, sessionStats, isLegacy, isReproduced, lastCommitTime, dfsBranchName, codeBranchName, markedForDeleteTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoWorkspaceApiWorkspaceDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" stateUpdatedAt: ").append(toIndentedString(stateUpdatedAt)).append("\n");
sb.append(" initConfig: ").append(toIndentedString(initConfig)).append("\n");
sb.append(" configTemplate: ").append(toIndentedString(configTemplate)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" importedProjects: ").append(toIndentedString(importedProjects)).append("\n");
sb.append(" importedGitRepos: ").append(toIndentedString(importedGitRepos)).append("\n");
sb.append(" dataPlaneId: ").append(toIndentedString(dataPlaneId)).append("\n");
sb.append(" mostRecentSession: ").append(toIndentedString(mostRecentSession)).append("\n");
sb.append(" sessionStats: ").append(toIndentedString(sessionStats)).append("\n");
sb.append(" isLegacy: ").append(toIndentedString(isLegacy)).append("\n");
sb.append(" isReproduced: ").append(toIndentedString(isReproduced)).append("\n");
sb.append(" lastCommitTime: ").append(toIndentedString(lastCommitTime)).append("\n");
sb.append(" dfsBranchName: ").append(toIndentedString(dfsBranchName)).append("\n");
sb.append(" codeBranchName: ").append(toIndentedString(codeBranchName)).append("\n");
sb.append(" markedForDeleteTime: ").append(toIndentedString(markedForDeleteTime)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `id` to the URL query string
if (getId() != null) {
joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `deleted` to the URL query string
if (getDeleted() != null) {
joiner.add(String.format("%sdeleted%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeleted()), 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 `ownerId` to the URL query string
if (getOwnerId() != null) {
joiner.add(String.format("%sownerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOwnerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ownerName` to the URL query string
if (getOwnerName() != null) {
joiner.add(String.format("%sownerName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOwnerName()), 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 `state` to the URL query string
if (getState() != null) {
joiner.add(String.format("%sstate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `stateUpdatedAt` to the URL query string
if (getStateUpdatedAt() != null) {
joiner.add(String.format("%sstateUpdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `initConfig` to the URL query string
if (getInitConfig() != null) {
joiner.add(getInitConfig().toUrlQueryString(prefix + "initConfig" + suffix));
}
// add `configTemplate` to the URL query string
if (getConfigTemplate() != null) {
joiner.add(getConfigTemplate().toUrlQueryString(prefix + "configTemplate" + suffix));
}
// add `createdAt` to the URL query string
if (getCreatedAt() != null) {
joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `importedProjects` to the URL query string
if (getImportedProjects() != null) {
for (int i = 0; i < getImportedProjects().size(); i++) {
if (getImportedProjects().get(i) != null) {
joiner.add(getImportedProjects().get(i).toUrlQueryString(String.format("%simportedProjects%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `importedGitRepos` to the URL query string
if (getImportedGitRepos() != null) {
for (int i = 0; i < getImportedGitRepos().size(); i++) {
if (getImportedGitRepos().get(i) != null) {
joiner.add(getImportedGitRepos().get(i).toUrlQueryString(String.format("%simportedGitRepos%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `dataPlaneId` to the URL query string
if (getDataPlaneId() != null) {
joiner.add(String.format("%sdataPlaneId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDataPlaneId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `mostRecentSession` to the URL query string
if (getMostRecentSession() != null) {
joiner.add(getMostRecentSession().toUrlQueryString(prefix + "mostRecentSession" + suffix));
}
// add `sessionStats` to the URL query string
if (getSessionStats() != null) {
joiner.add(getSessionStats().toUrlQueryString(prefix + "sessionStats" + suffix));
}
// add `isLegacy` to the URL query string
if (getIsLegacy() != null) {
joiner.add(String.format("%sisLegacy%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsLegacy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `isReproduced` to the URL query string
if (getIsReproduced() != null) {
joiner.add(String.format("%sisReproduced%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsReproduced()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastCommitTime` to the URL query string
if (getLastCommitTime() != null) {
joiner.add(String.format("%slastCommitTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastCommitTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `dfsBranchName` to the URL query string
if (getDfsBranchName() != null) {
joiner.add(String.format("%sdfsBranchName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDfsBranchName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `codeBranchName` to the URL query string
if (getCodeBranchName() != null) {
joiner.add(String.format("%scodeBranchName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCodeBranchName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `markedForDeleteTime` to the URL query string
if (getMarkedForDeleteTime() != null) {
joiner.add(String.format("%smarkedForDeleteTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMarkedForDeleteTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy