com.dominodatalab.api.model.DominoWorkspacesApiWorkspace 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.DominoWorkspacesApiDependentDatasetMount;
import com.dominodatalab.api.model.DominoWorkspacesApiDependentExternalVolumeMount;
import com.dominodatalab.api.model.DominoWorkspacesApiDependentProject;
import com.dominodatalab.api.model.DominoWorkspacesApiDependentRepository;
import com.dominodatalab.api.model.DominoWorkspacesApiDominoStats;
import com.dominodatalab.api.model.DominoWorkspacesApiQueuedWorkspaceHistoryDetails;
import com.dominodatalab.api.model.DominoWorkspacesApiStageTime;
import com.dominodatalab.api.model.DominoWorkspacesApiWorkspaceAutoSync;
import com.dominodatalab.api.model.DominoWorkspacesApiWorkspaceResourceUsage;
import com.dominodatalab.api.model.DominoWorkspacesApiWorkspaceStartedBy;
import com.dominodatalab.api.model.DominoWorkspacesApiWorkspaceTag;
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;
/**
* DominoWorkspacesApiWorkspace
*/
@JsonPropertyOrder({
DominoWorkspacesApiWorkspace.JSON_PROPERTY_ID,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_PROJECT_ID,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_TITLE,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DEFINITION_TITLE,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_STAGE_TIME,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_STARTED_BY,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_NUMBER,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_IS_COMPLETED,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_IS_ARCHIVED,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_QUEUED_WORKSPACE_HISTORY_DETAILS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_TAGS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_USAGE,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_COMMENTS_COUNT,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_STATUS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_VOLUME_RECOVERABILITY_STATUS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_INPUT_COMMIT_ID,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_OUTPUT_COMMIT_ID,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DOMINO_STATS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DEPENDENT_REPOSITORIES,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DEPENDENT_DATASET_MOUNTS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DEPENDENT_PROJECTS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_AUTO_SYNC_SETTINGS,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_IS_RESTARTABLE,
DominoWorkspacesApiWorkspace.JSON_PROPERTY_DEPENDENT_EXTERNAL_VOLUME_MOUNTS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspacesApiWorkspace {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_TITLE = "title";
private String title;
public static final String JSON_PROPERTY_DEFINITION_TITLE = "definitionTitle";
private String definitionTitle;
public static final String JSON_PROPERTY_STAGE_TIME = "stageTime";
private DominoWorkspacesApiStageTime stageTime;
public static final String JSON_PROPERTY_STARTED_BY = "startedBy";
private DominoWorkspacesApiWorkspaceStartedBy startedBy;
public static final String JSON_PROPERTY_NUMBER = "number";
private Integer number;
public static final String JSON_PROPERTY_IS_COMPLETED = "isCompleted";
private Boolean isCompleted;
public static final String JSON_PROPERTY_IS_ARCHIVED = "isArchived";
private Boolean isArchived;
public static final String JSON_PROPERTY_QUEUED_WORKSPACE_HISTORY_DETAILS = "queuedWorkspaceHistoryDetails";
private DominoWorkspacesApiQueuedWorkspaceHistoryDetails queuedWorkspaceHistoryDetails;
public static final String JSON_PROPERTY_TAGS = "tags";
private List tags = new ArrayList<>();
public static final String JSON_PROPERTY_USAGE = "usage";
private DominoWorkspacesApiWorkspaceResourceUsage usage;
public static final String JSON_PROPERTY_COMMENTS_COUNT = "commentsCount";
private Integer commentsCount;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
/**
* Gets or Sets volumeRecoverabilityStatus
*/
public enum VolumeRecoverabilityStatusEnum {
UNAUTHORIZED("Unauthorized"),
VOLUMEUNAVAILABLE("VolumeUnavailable"),
RECOVERABLE("Recoverable"),
NOACTIONNECESSARY("NoActionNecessary");
private String value;
VolumeRecoverabilityStatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static VolumeRecoverabilityStatusEnum fromValue(String value) {
for (VolumeRecoverabilityStatusEnum b : VolumeRecoverabilityStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_VOLUME_RECOVERABILITY_STATUS = "volumeRecoverabilityStatus";
private VolumeRecoverabilityStatusEnum volumeRecoverabilityStatus;
public static final String JSON_PROPERTY_INPUT_COMMIT_ID = "inputCommitId";
private String inputCommitId;
public static final String JSON_PROPERTY_OUTPUT_COMMIT_ID = "outputCommitId";
private String outputCommitId;
public static final String JSON_PROPERTY_DOMINO_STATS = "dominoStats";
private List dominoStats = new ArrayList<>();
public static final String JSON_PROPERTY_DEPENDENT_REPOSITORIES = "dependentRepositories";
private List dependentRepositories = new ArrayList<>();
public static final String JSON_PROPERTY_DEPENDENT_DATASET_MOUNTS = "dependentDatasetMounts";
private List dependentDatasetMounts = new ArrayList<>();
public static final String JSON_PROPERTY_DEPENDENT_PROJECTS = "dependentProjects";
private List dependentProjects = new ArrayList<>();
public static final String JSON_PROPERTY_AUTO_SYNC_SETTINGS = "autoSyncSettings";
private DominoWorkspacesApiWorkspaceAutoSync autoSyncSettings;
public static final String JSON_PROPERTY_IS_RESTARTABLE = "isRestartable";
private Boolean isRestartable;
public static final String JSON_PROPERTY_DEPENDENT_EXTERNAL_VOLUME_MOUNTS = "dependentExternalVolumeMounts";
private List dependentExternalVolumeMounts = new ArrayList<>();
public DominoWorkspacesApiWorkspace() {
}
public DominoWorkspacesApiWorkspace 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 DominoWorkspacesApiWorkspace 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 DominoWorkspacesApiWorkspace title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getTitle() {
return title;
}
@JsonProperty(JSON_PROPERTY_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTitle(String title) {
this.title = title;
}
public DominoWorkspacesApiWorkspace definitionTitle(String definitionTitle) {
this.definitionTitle = definitionTitle;
return this;
}
/**
* Get definitionTitle
* @return definitionTitle
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DEFINITION_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDefinitionTitle() {
return definitionTitle;
}
@JsonProperty(JSON_PROPERTY_DEFINITION_TITLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDefinitionTitle(String definitionTitle) {
this.definitionTitle = definitionTitle;
}
public DominoWorkspacesApiWorkspace stageTime(DominoWorkspacesApiStageTime stageTime) {
this.stageTime = stageTime;
return this;
}
/**
* Get stageTime
* @return stageTime
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STAGE_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoWorkspacesApiStageTime getStageTime() {
return stageTime;
}
@JsonProperty(JSON_PROPERTY_STAGE_TIME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStageTime(DominoWorkspacesApiStageTime stageTime) {
this.stageTime = stageTime;
}
public DominoWorkspacesApiWorkspace startedBy(DominoWorkspacesApiWorkspaceStartedBy startedBy) {
this.startedBy = startedBy;
return this;
}
/**
* Get startedBy
* @return startedBy
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTED_BY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DominoWorkspacesApiWorkspaceStartedBy getStartedBy() {
return startedBy;
}
@JsonProperty(JSON_PROPERTY_STARTED_BY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartedBy(DominoWorkspacesApiWorkspaceStartedBy startedBy) {
this.startedBy = startedBy;
}
public DominoWorkspacesApiWorkspace number(Integer number) {
this.number = number;
return this;
}
/**
* Get number
* @return number
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getNumber() {
return number;
}
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumber(Integer number) {
this.number = number;
}
public DominoWorkspacesApiWorkspace isCompleted(Boolean isCompleted) {
this.isCompleted = isCompleted;
return this;
}
/**
* Get isCompleted
* @return isCompleted
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_COMPLETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsCompleted() {
return isCompleted;
}
@JsonProperty(JSON_PROPERTY_IS_COMPLETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsCompleted(Boolean isCompleted) {
this.isCompleted = isCompleted;
}
public DominoWorkspacesApiWorkspace isArchived(Boolean isArchived) {
this.isArchived = isArchived;
return this;
}
/**
* Get isArchived
* @return isArchived
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_ARCHIVED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsArchived() {
return isArchived;
}
@JsonProperty(JSON_PROPERTY_IS_ARCHIVED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsArchived(Boolean isArchived) {
this.isArchived = isArchived;
}
public DominoWorkspacesApiWorkspace queuedWorkspaceHistoryDetails(DominoWorkspacesApiQueuedWorkspaceHistoryDetails queuedWorkspaceHistoryDetails) {
this.queuedWorkspaceHistoryDetails = queuedWorkspaceHistoryDetails;
return this;
}
/**
* Get queuedWorkspaceHistoryDetails
* @return queuedWorkspaceHistoryDetails
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_QUEUED_WORKSPACE_HISTORY_DETAILS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoWorkspacesApiQueuedWorkspaceHistoryDetails getQueuedWorkspaceHistoryDetails() {
return queuedWorkspaceHistoryDetails;
}
@JsonProperty(JSON_PROPERTY_QUEUED_WORKSPACE_HISTORY_DETAILS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQueuedWorkspaceHistoryDetails(DominoWorkspacesApiQueuedWorkspaceHistoryDetails queuedWorkspaceHistoryDetails) {
this.queuedWorkspaceHistoryDetails = queuedWorkspaceHistoryDetails;
}
public DominoWorkspacesApiWorkspace tags(List tags) {
this.tags = tags;
return this;
}
public DominoWorkspacesApiWorkspace addTagsItem(DominoWorkspacesApiWorkspaceTag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getTags() {
return tags;
}
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTags(List tags) {
this.tags = tags;
}
public DominoWorkspacesApiWorkspace usage(DominoWorkspacesApiWorkspaceResourceUsage usage) {
this.usage = usage;
return this;
}
/**
* Get usage
* @return usage
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_USAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DominoWorkspacesApiWorkspaceResourceUsage getUsage() {
return usage;
}
@JsonProperty(JSON_PROPERTY_USAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUsage(DominoWorkspacesApiWorkspaceResourceUsage usage) {
this.usage = usage;
}
public DominoWorkspacesApiWorkspace commentsCount(Integer commentsCount) {
this.commentsCount = commentsCount;
return this;
}
/**
* Get commentsCount
* @return commentsCount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_COMMENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getCommentsCount() {
return commentsCount;
}
@JsonProperty(JSON_PROPERTY_COMMENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCommentsCount(Integer commentsCount) {
this.commentsCount = commentsCount;
}
public DominoWorkspacesApiWorkspace status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStatus(String status) {
this.status = status;
}
public DominoWorkspacesApiWorkspace volumeRecoverabilityStatus(VolumeRecoverabilityStatusEnum volumeRecoverabilityStatus) {
this.volumeRecoverabilityStatus = volumeRecoverabilityStatus;
return this;
}
/**
* Get volumeRecoverabilityStatus
* @return volumeRecoverabilityStatus
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_VOLUME_RECOVERABILITY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public VolumeRecoverabilityStatusEnum getVolumeRecoverabilityStatus() {
return volumeRecoverabilityStatus;
}
@JsonProperty(JSON_PROPERTY_VOLUME_RECOVERABILITY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setVolumeRecoverabilityStatus(VolumeRecoverabilityStatusEnum volumeRecoverabilityStatus) {
this.volumeRecoverabilityStatus = volumeRecoverabilityStatus;
}
public DominoWorkspacesApiWorkspace inputCommitId(String inputCommitId) {
this.inputCommitId = inputCommitId;
return this;
}
/**
* Get inputCommitId
* @return inputCommitId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_INPUT_COMMIT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getInputCommitId() {
return inputCommitId;
}
@JsonProperty(JSON_PROPERTY_INPUT_COMMIT_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setInputCommitId(String inputCommitId) {
this.inputCommitId = inputCommitId;
}
public DominoWorkspacesApiWorkspace outputCommitId(String outputCommitId) {
this.outputCommitId = outputCommitId;
return this;
}
/**
* Get outputCommitId
* @return outputCommitId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_OUTPUT_COMMIT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getOutputCommitId() {
return outputCommitId;
}
@JsonProperty(JSON_PROPERTY_OUTPUT_COMMIT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutputCommitId(String outputCommitId) {
this.outputCommitId = outputCommitId;
}
public DominoWorkspacesApiWorkspace dominoStats(List dominoStats) {
this.dominoStats = dominoStats;
return this;
}
public DominoWorkspacesApiWorkspace addDominoStatsItem(DominoWorkspacesApiDominoStats dominoStatsItem) {
if (this.dominoStats == null) {
this.dominoStats = new ArrayList<>();
}
this.dominoStats.add(dominoStatsItem);
return this;
}
/**
* Get dominoStats
* @return dominoStats
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DOMINO_STATS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDominoStats() {
return dominoStats;
}
@JsonProperty(JSON_PROPERTY_DOMINO_STATS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDominoStats(List dominoStats) {
this.dominoStats = dominoStats;
}
public DominoWorkspacesApiWorkspace dependentRepositories(List dependentRepositories) {
this.dependentRepositories = dependentRepositories;
return this;
}
public DominoWorkspacesApiWorkspace addDependentRepositoriesItem(DominoWorkspacesApiDependentRepository dependentRepositoriesItem) {
if (this.dependentRepositories == null) {
this.dependentRepositories = new ArrayList<>();
}
this.dependentRepositories.add(dependentRepositoriesItem);
return this;
}
/**
* Get dependentRepositories
* @return dependentRepositories
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DEPENDENT_REPOSITORIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDependentRepositories() {
return dependentRepositories;
}
@JsonProperty(JSON_PROPERTY_DEPENDENT_REPOSITORIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDependentRepositories(List dependentRepositories) {
this.dependentRepositories = dependentRepositories;
}
public DominoWorkspacesApiWorkspace dependentDatasetMounts(List dependentDatasetMounts) {
this.dependentDatasetMounts = dependentDatasetMounts;
return this;
}
public DominoWorkspacesApiWorkspace addDependentDatasetMountsItem(DominoWorkspacesApiDependentDatasetMount dependentDatasetMountsItem) {
if (this.dependentDatasetMounts == null) {
this.dependentDatasetMounts = new ArrayList<>();
}
this.dependentDatasetMounts.add(dependentDatasetMountsItem);
return this;
}
/**
* Get dependentDatasetMounts
* @return dependentDatasetMounts
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DEPENDENT_DATASET_MOUNTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDependentDatasetMounts() {
return dependentDatasetMounts;
}
@JsonProperty(JSON_PROPERTY_DEPENDENT_DATASET_MOUNTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDependentDatasetMounts(List dependentDatasetMounts) {
this.dependentDatasetMounts = dependentDatasetMounts;
}
public DominoWorkspacesApiWorkspace dependentProjects(List dependentProjects) {
this.dependentProjects = dependentProjects;
return this;
}
public DominoWorkspacesApiWorkspace addDependentProjectsItem(DominoWorkspacesApiDependentProject dependentProjectsItem) {
if (this.dependentProjects == null) {
this.dependentProjects = new ArrayList<>();
}
this.dependentProjects.add(dependentProjectsItem);
return this;
}
/**
* Get dependentProjects
* @return dependentProjects
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DEPENDENT_PROJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDependentProjects() {
return dependentProjects;
}
@JsonProperty(JSON_PROPERTY_DEPENDENT_PROJECTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDependentProjects(List dependentProjects) {
this.dependentProjects = dependentProjects;
}
public DominoWorkspacesApiWorkspace autoSyncSettings(DominoWorkspacesApiWorkspaceAutoSync autoSyncSettings) {
this.autoSyncSettings = autoSyncSettings;
return this;
}
/**
* Get autoSyncSettings
* @return autoSyncSettings
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUTO_SYNC_SETTINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DominoWorkspacesApiWorkspaceAutoSync getAutoSyncSettings() {
return autoSyncSettings;
}
@JsonProperty(JSON_PROPERTY_AUTO_SYNC_SETTINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAutoSyncSettings(DominoWorkspacesApiWorkspaceAutoSync autoSyncSettings) {
this.autoSyncSettings = autoSyncSettings;
}
public DominoWorkspacesApiWorkspace isRestartable(Boolean isRestartable) {
this.isRestartable = isRestartable;
return this;
}
/**
* Get isRestartable
* @return isRestartable
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_RESTARTABLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsRestartable() {
return isRestartable;
}
@JsonProperty(JSON_PROPERTY_IS_RESTARTABLE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsRestartable(Boolean isRestartable) {
this.isRestartable = isRestartable;
}
public DominoWorkspacesApiWorkspace dependentExternalVolumeMounts(List dependentExternalVolumeMounts) {
this.dependentExternalVolumeMounts = dependentExternalVolumeMounts;
return this;
}
public DominoWorkspacesApiWorkspace addDependentExternalVolumeMountsItem(DominoWorkspacesApiDependentExternalVolumeMount dependentExternalVolumeMountsItem) {
if (this.dependentExternalVolumeMounts == null) {
this.dependentExternalVolumeMounts = new ArrayList<>();
}
this.dependentExternalVolumeMounts.add(dependentExternalVolumeMountsItem);
return this;
}
/**
* Get dependentExternalVolumeMounts
* @return dependentExternalVolumeMounts
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DEPENDENT_EXTERNAL_VOLUME_MOUNTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDependentExternalVolumeMounts() {
return dependentExternalVolumeMounts;
}
@JsonProperty(JSON_PROPERTY_DEPENDENT_EXTERNAL_VOLUME_MOUNTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDependentExternalVolumeMounts(List dependentExternalVolumeMounts) {
this.dependentExternalVolumeMounts = dependentExternalVolumeMounts;
}
/**
* Return true if this domino.workspaces.api.Workspace object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoWorkspacesApiWorkspace dominoWorkspacesApiWorkspace = (DominoWorkspacesApiWorkspace) o;
return Objects.equals(this.id, dominoWorkspacesApiWorkspace.id) &&
Objects.equals(this.projectId, dominoWorkspacesApiWorkspace.projectId) &&
Objects.equals(this.title, dominoWorkspacesApiWorkspace.title) &&
Objects.equals(this.definitionTitle, dominoWorkspacesApiWorkspace.definitionTitle) &&
Objects.equals(this.stageTime, dominoWorkspacesApiWorkspace.stageTime) &&
Objects.equals(this.startedBy, dominoWorkspacesApiWorkspace.startedBy) &&
Objects.equals(this.number, dominoWorkspacesApiWorkspace.number) &&
Objects.equals(this.isCompleted, dominoWorkspacesApiWorkspace.isCompleted) &&
Objects.equals(this.isArchived, dominoWorkspacesApiWorkspace.isArchived) &&
Objects.equals(this.queuedWorkspaceHistoryDetails, dominoWorkspacesApiWorkspace.queuedWorkspaceHistoryDetails) &&
Objects.equals(this.tags, dominoWorkspacesApiWorkspace.tags) &&
Objects.equals(this.usage, dominoWorkspacesApiWorkspace.usage) &&
Objects.equals(this.commentsCount, dominoWorkspacesApiWorkspace.commentsCount) &&
Objects.equals(this.status, dominoWorkspacesApiWorkspace.status) &&
Objects.equals(this.volumeRecoverabilityStatus, dominoWorkspacesApiWorkspace.volumeRecoverabilityStatus) &&
Objects.equals(this.inputCommitId, dominoWorkspacesApiWorkspace.inputCommitId) &&
Objects.equals(this.outputCommitId, dominoWorkspacesApiWorkspace.outputCommitId) &&
Objects.equals(this.dominoStats, dominoWorkspacesApiWorkspace.dominoStats) &&
Objects.equals(this.dependentRepositories, dominoWorkspacesApiWorkspace.dependentRepositories) &&
Objects.equals(this.dependentDatasetMounts, dominoWorkspacesApiWorkspace.dependentDatasetMounts) &&
Objects.equals(this.dependentProjects, dominoWorkspacesApiWorkspace.dependentProjects) &&
Objects.equals(this.autoSyncSettings, dominoWorkspacesApiWorkspace.autoSyncSettings) &&
Objects.equals(this.isRestartable, dominoWorkspacesApiWorkspace.isRestartable) &&
Objects.equals(this.dependentExternalVolumeMounts, dominoWorkspacesApiWorkspace.dependentExternalVolumeMounts);
}
@Override
public int hashCode() {
return Objects.hash(id, projectId, title, definitionTitle, stageTime, startedBy, number, isCompleted, isArchived, queuedWorkspaceHistoryDetails, tags, usage, commentsCount, status, volumeRecoverabilityStatus, inputCommitId, outputCommitId, dominoStats, dependentRepositories, dependentDatasetMounts, dependentProjects, autoSyncSettings, isRestartable, dependentExternalVolumeMounts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoWorkspacesApiWorkspace {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" definitionTitle: ").append(toIndentedString(definitionTitle)).append("\n");
sb.append(" stageTime: ").append(toIndentedString(stageTime)).append("\n");
sb.append(" startedBy: ").append(toIndentedString(startedBy)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" isCompleted: ").append(toIndentedString(isCompleted)).append("\n");
sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
sb.append(" queuedWorkspaceHistoryDetails: ").append(toIndentedString(queuedWorkspaceHistoryDetails)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" usage: ").append(toIndentedString(usage)).append("\n");
sb.append(" commentsCount: ").append(toIndentedString(commentsCount)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" volumeRecoverabilityStatus: ").append(toIndentedString(volumeRecoverabilityStatus)).append("\n");
sb.append(" inputCommitId: ").append(toIndentedString(inputCommitId)).append("\n");
sb.append(" outputCommitId: ").append(toIndentedString(outputCommitId)).append("\n");
sb.append(" dominoStats: ").append(toIndentedString(dominoStats)).append("\n");
sb.append(" dependentRepositories: ").append(toIndentedString(dependentRepositories)).append("\n");
sb.append(" dependentDatasetMounts: ").append(toIndentedString(dependentDatasetMounts)).append("\n");
sb.append(" dependentProjects: ").append(toIndentedString(dependentProjects)).append("\n");
sb.append(" autoSyncSettings: ").append(toIndentedString(autoSyncSettings)).append("\n");
sb.append(" isRestartable: ").append(toIndentedString(isRestartable)).append("\n");
sb.append(" dependentExternalVolumeMounts: ").append(toIndentedString(dependentExternalVolumeMounts)).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 `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 `title` to the URL query string
if (getTitle() != null) {
joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `definitionTitle` to the URL query string
if (getDefinitionTitle() != null) {
joiner.add(String.format("%sdefinitionTitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefinitionTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `stageTime` to the URL query string
if (getStageTime() != null) {
joiner.add(getStageTime().toUrlQueryString(prefix + "stageTime" + suffix));
}
// add `startedBy` to the URL query string
if (getStartedBy() != null) {
joiner.add(getStartedBy().toUrlQueryString(prefix + "startedBy" + suffix));
}
// add `number` to the URL query string
if (getNumber() != null) {
joiner.add(String.format("%snumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `isCompleted` to the URL query string
if (getIsCompleted() != null) {
joiner.add(String.format("%sisCompleted%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsCompleted()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `isArchived` to the URL query string
if (getIsArchived() != null) {
joiner.add(String.format("%sisArchived%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsArchived()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `queuedWorkspaceHistoryDetails` to the URL query string
if (getQueuedWorkspaceHistoryDetails() != null) {
joiner.add(getQueuedWorkspaceHistoryDetails().toUrlQueryString(prefix + "queuedWorkspaceHistoryDetails" + suffix));
}
// add `tags` to the URL query string
if (getTags() != null) {
for (int i = 0; i < getTags().size(); i++) {
if (getTags().get(i) != null) {
joiner.add(getTags().get(i).toUrlQueryString(String.format("%stags%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `usage` to the URL query string
if (getUsage() != null) {
joiner.add(getUsage().toUrlQueryString(prefix + "usage" + suffix));
}
// add `commentsCount` to the URL query string
if (getCommentsCount() != null) {
joiner.add(String.format("%scommentsCount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCommentsCount()), 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")));
}
// add `volumeRecoverabilityStatus` to the URL query string
if (getVolumeRecoverabilityStatus() != null) {
joiner.add(String.format("%svolumeRecoverabilityStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVolumeRecoverabilityStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `inputCommitId` to the URL query string
if (getInputCommitId() != null) {
joiner.add(String.format("%sinputCommitId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInputCommitId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `outputCommitId` to the URL query string
if (getOutputCommitId() != null) {
joiner.add(String.format("%soutputCommitId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOutputCommitId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `dominoStats` to the URL query string
if (getDominoStats() != null) {
for (int i = 0; i < getDominoStats().size(); i++) {
if (getDominoStats().get(i) != null) {
joiner.add(getDominoStats().get(i).toUrlQueryString(String.format("%sdominoStats%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `dependentRepositories` to the URL query string
if (getDependentRepositories() != null) {
for (int i = 0; i < getDependentRepositories().size(); i++) {
if (getDependentRepositories().get(i) != null) {
joiner.add(getDependentRepositories().get(i).toUrlQueryString(String.format("%sdependentRepositories%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `dependentDatasetMounts` to the URL query string
if (getDependentDatasetMounts() != null) {
for (int i = 0; i < getDependentDatasetMounts().size(); i++) {
if (getDependentDatasetMounts().get(i) != null) {
joiner.add(getDependentDatasetMounts().get(i).toUrlQueryString(String.format("%sdependentDatasetMounts%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `dependentProjects` to the URL query string
if (getDependentProjects() != null) {
for (int i = 0; i < getDependentProjects().size(); i++) {
if (getDependentProjects().get(i) != null) {
joiner.add(getDependentProjects().get(i).toUrlQueryString(String.format("%sdependentProjects%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `autoSyncSettings` to the URL query string
if (getAutoSyncSettings() != null) {
joiner.add(getAutoSyncSettings().toUrlQueryString(prefix + "autoSyncSettings" + suffix));
}
// add `isRestartable` to the URL query string
if (getIsRestartable() != null) {
joiner.add(String.format("%sisRestartable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsRestartable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `dependentExternalVolumeMounts` to the URL query string
if (getDependentExternalVolumeMounts() != null) {
for (int i = 0; i < getDependentExternalVolumeMounts().size(); i++) {
if (getDependentExternalVolumeMounts().get(i) != null) {
joiner.add(getDependentExternalVolumeMounts().get(i).toUrlQueryString(String.format("%sdependentExternalVolumeMounts%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy