com.dominodatalab.api.model.DominoWorkspacesApiWorkspaceSummary 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.DominoWorkspacesApiDominoStats;
import com.dominodatalab.api.model.DominoWorkspacesApiStageTime;
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;
/**
* DominoWorkspacesApiWorkspaceSummary
*/
@JsonPropertyOrder({
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_ID,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_PROJECT_ID,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_TITLE,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_STAGE_TIME,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_STARTED_BY,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_NUMBER,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_IS_COMPLETED,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_IS_ARCHIVED,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_COMMENTS_COUNT,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_STATUS,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_TAGS,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_DOMINO_STATS,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_GOAL_IDS,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_USAGE,
DominoWorkspacesApiWorkspaceSummary.JSON_PROPERTY_IS_RESTARTABLE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspacesApiWorkspaceSummary {
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_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_COMMENTS_COUNT = "commentsCount";
private Integer commentsCount;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
public static final String JSON_PROPERTY_TAGS = "tags";
private List tags = new ArrayList<>();
public static final String JSON_PROPERTY_DOMINO_STATS = "dominoStats";
private List dominoStats = new ArrayList<>();
public static final String JSON_PROPERTY_GOAL_IDS = "goalIds";
private List goalIds = new ArrayList<>();
public static final String JSON_PROPERTY_USAGE = "usage";
private DominoWorkspacesApiWorkspaceResourceUsage usage;
public static final String JSON_PROPERTY_IS_RESTARTABLE = "isRestartable";
private Boolean isRestartable;
public DominoWorkspacesApiWorkspaceSummary() {
}
public DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary tags(List tags) {
this.tags = tags;
return this;
}
public DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary dominoStats(List dominoStats) {
this.dominoStats = dominoStats;
return this;
}
public DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary goalIds(List goalIds) {
this.goalIds = goalIds;
return this;
}
public DominoWorkspacesApiWorkspaceSummary addGoalIdsItem(String goalIdsItem) {
if (this.goalIds == null) {
this.goalIds = new ArrayList<>();
}
this.goalIds.add(goalIdsItem);
return this;
}
/**
* Get goalIds
* @return goalIds
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_GOAL_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getGoalIds() {
return goalIds;
}
@JsonProperty(JSON_PROPERTY_GOAL_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setGoalIds(List goalIds) {
this.goalIds = goalIds;
}
public DominoWorkspacesApiWorkspaceSummary 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 DominoWorkspacesApiWorkspaceSummary 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;
}
/**
* Return true if this domino.workspaces.api.WorkspaceSummary object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoWorkspacesApiWorkspaceSummary dominoWorkspacesApiWorkspaceSummary = (DominoWorkspacesApiWorkspaceSummary) o;
return Objects.equals(this.id, dominoWorkspacesApiWorkspaceSummary.id) &&
Objects.equals(this.projectId, dominoWorkspacesApiWorkspaceSummary.projectId) &&
Objects.equals(this.title, dominoWorkspacesApiWorkspaceSummary.title) &&
Objects.equals(this.stageTime, dominoWorkspacesApiWorkspaceSummary.stageTime) &&
Objects.equals(this.startedBy, dominoWorkspacesApiWorkspaceSummary.startedBy) &&
Objects.equals(this.number, dominoWorkspacesApiWorkspaceSummary.number) &&
Objects.equals(this.isCompleted, dominoWorkspacesApiWorkspaceSummary.isCompleted) &&
Objects.equals(this.isArchived, dominoWorkspacesApiWorkspaceSummary.isArchived) &&
Objects.equals(this.commentsCount, dominoWorkspacesApiWorkspaceSummary.commentsCount) &&
Objects.equals(this.status, dominoWorkspacesApiWorkspaceSummary.status) &&
Objects.equals(this.tags, dominoWorkspacesApiWorkspaceSummary.tags) &&
Objects.equals(this.dominoStats, dominoWorkspacesApiWorkspaceSummary.dominoStats) &&
Objects.equals(this.goalIds, dominoWorkspacesApiWorkspaceSummary.goalIds) &&
Objects.equals(this.usage, dominoWorkspacesApiWorkspaceSummary.usage) &&
Objects.equals(this.isRestartable, dominoWorkspacesApiWorkspaceSummary.isRestartable);
}
@Override
public int hashCode() {
return Objects.hash(id, projectId, title, stageTime, startedBy, number, isCompleted, isArchived, commentsCount, status, tags, dominoStats, goalIds, usage, isRestartable);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoWorkspacesApiWorkspaceSummary {\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(" 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(" commentsCount: ").append(toIndentedString(commentsCount)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" dominoStats: ").append(toIndentedString(dominoStats)).append("\n");
sb.append(" goalIds: ").append(toIndentedString(goalIds)).append("\n");
sb.append(" usage: ").append(toIndentedString(usage)).append("\n");
sb.append(" isRestartable: ").append(toIndentedString(isRestartable)).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 `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 `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 `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 `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 `goalIds` to the URL query string
if (getGoalIds() != null) {
for (int i = 0; i < getGoalIds().size(); i++) {
joiner.add(String.format("%sgoalIds%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getGoalIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `usage` to the URL query string
if (getUsage() != null) {
joiner.add(getUsage().toUrlQueryString(prefix + "usage" + 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")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy