com.dominodatalab.api.model.DominoProjectsApiProjectGoal 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.DominoProjectsApiEntityLink;
import com.dominodatalab.api.model.DominoProjectsApiProjectStage;
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;
/**
* DominoProjectsApiProjectGoal
*/
@JsonPropertyOrder({
DominoProjectsApiProjectGoal.JSON_PROPERTY_ID,
DominoProjectsApiProjectGoal.JSON_PROPERTY_TITLE,
DominoProjectsApiProjectGoal.JSON_PROPERTY_DESCRIPTION,
DominoProjectsApiProjectGoal.JSON_PROPERTY_LINKED_ENTITIES,
DominoProjectsApiProjectGoal.JSON_PROPERTY_CURRENT_STAGE,
DominoProjectsApiProjectGoal.JSON_PROPERTY_IS_COMPLETE,
DominoProjectsApiProjectGoal.JSON_PROPERTY_IS_DELETED,
DominoProjectsApiProjectGoal.JSON_PROPERTY_PROJECT_ID,
DominoProjectsApiProjectGoal.JSON_PROPERTY_CREATED_AT,
DominoProjectsApiProjectGoal.JSON_PROPERTY_CREATED_BY,
DominoProjectsApiProjectGoal.JSON_PROPERTY_LAST_TITLE_UPDATED_AT,
DominoProjectsApiProjectGoal.JSON_PROPERTY_LAST_DESCRIPTION_UPDATED_AT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoProjectsApiProjectGoal {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_TITLE = "title";
private String title;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_LINKED_ENTITIES = "linkedEntities";
private List linkedEntities = new ArrayList<>();
public static final String JSON_PROPERTY_CURRENT_STAGE = "currentStage";
private DominoProjectsApiProjectStage currentStage;
public static final String JSON_PROPERTY_IS_COMPLETE = "isComplete";
private Boolean isComplete;
public static final String JSON_PROPERTY_IS_DELETED = "isDeleted";
private Boolean isDeleted;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private String projectId;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private Long createdAt;
public static final String JSON_PROPERTY_CREATED_BY = "createdBy";
private String createdBy;
public static final String JSON_PROPERTY_LAST_TITLE_UPDATED_AT = "lastTitleUpdatedAt";
private Long lastTitleUpdatedAt;
public static final String JSON_PROPERTY_LAST_DESCRIPTION_UPDATED_AT = "lastDescriptionUpdatedAt";
private Long lastDescriptionUpdatedAt;
public DominoProjectsApiProjectGoal() {
}
public DominoProjectsApiProjectGoal 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 DominoProjectsApiProjectGoal 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 DominoProjectsApiProjectGoal description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public DominoProjectsApiProjectGoal linkedEntities(List linkedEntities) {
this.linkedEntities = linkedEntities;
return this;
}
public DominoProjectsApiProjectGoal addLinkedEntitiesItem(DominoProjectsApiEntityLink linkedEntitiesItem) {
if (this.linkedEntities == null) {
this.linkedEntities = new ArrayList<>();
}
this.linkedEntities.add(linkedEntitiesItem);
return this;
}
/**
* Get linkedEntities
* @return linkedEntities
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LINKED_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getLinkedEntities() {
return linkedEntities;
}
@JsonProperty(JSON_PROPERTY_LINKED_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLinkedEntities(List linkedEntities) {
this.linkedEntities = linkedEntities;
}
public DominoProjectsApiProjectGoal currentStage(DominoProjectsApiProjectStage currentStage) {
this.currentStage = currentStage;
return this;
}
/**
* Get currentStage
* @return currentStage
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CURRENT_STAGE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoProjectsApiProjectStage getCurrentStage() {
return currentStage;
}
@JsonProperty(JSON_PROPERTY_CURRENT_STAGE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCurrentStage(DominoProjectsApiProjectStage currentStage) {
this.currentStage = currentStage;
}
public DominoProjectsApiProjectGoal isComplete(Boolean isComplete) {
this.isComplete = isComplete;
return this;
}
/**
* Get isComplete
* @return isComplete
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_COMPLETE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsComplete() {
return isComplete;
}
@JsonProperty(JSON_PROPERTY_IS_COMPLETE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsComplete(Boolean isComplete) {
this.isComplete = isComplete;
}
public DominoProjectsApiProjectGoal isDeleted(Boolean isDeleted) {
this.isDeleted = isDeleted;
return this;
}
/**
* Get isDeleted
* @return isDeleted
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_IS_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getIsDeleted() {
return isDeleted;
}
@JsonProperty(JSON_PROPERTY_IS_DELETED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIsDeleted(Boolean isDeleted) {
this.isDeleted = isDeleted;
}
public DominoProjectsApiProjectGoal 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 DominoProjectsApiProjectGoal createdAt(Long createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getCreatedAt() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedAt(Long createdAt) {
this.createdAt = createdAt;
}
public DominoProjectsApiProjectGoal createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
/**
* Get createdBy
* @return createdBy
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED_BY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCreatedBy() {
return createdBy;
}
@JsonProperty(JSON_PROPERTY_CREATED_BY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public DominoProjectsApiProjectGoal lastTitleUpdatedAt(Long lastTitleUpdatedAt) {
this.lastTitleUpdatedAt = lastTitleUpdatedAt;
return this;
}
/**
* Get lastTitleUpdatedAt
* @return lastTitleUpdatedAt
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_TITLE_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getLastTitleUpdatedAt() {
return lastTitleUpdatedAt;
}
@JsonProperty(JSON_PROPERTY_LAST_TITLE_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastTitleUpdatedAt(Long lastTitleUpdatedAt) {
this.lastTitleUpdatedAt = lastTitleUpdatedAt;
}
public DominoProjectsApiProjectGoal lastDescriptionUpdatedAt(Long lastDescriptionUpdatedAt) {
this.lastDescriptionUpdatedAt = lastDescriptionUpdatedAt;
return this;
}
/**
* Get lastDescriptionUpdatedAt
* @return lastDescriptionUpdatedAt
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_DESCRIPTION_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getLastDescriptionUpdatedAt() {
return lastDescriptionUpdatedAt;
}
@JsonProperty(JSON_PROPERTY_LAST_DESCRIPTION_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastDescriptionUpdatedAt(Long lastDescriptionUpdatedAt) {
this.lastDescriptionUpdatedAt = lastDescriptionUpdatedAt;
}
/**
* Return true if this domino.projects.api.ProjectGoal object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoProjectsApiProjectGoal dominoProjectsApiProjectGoal = (DominoProjectsApiProjectGoal) o;
return Objects.equals(this.id, dominoProjectsApiProjectGoal.id) &&
Objects.equals(this.title, dominoProjectsApiProjectGoal.title) &&
Objects.equals(this.description, dominoProjectsApiProjectGoal.description) &&
Objects.equals(this.linkedEntities, dominoProjectsApiProjectGoal.linkedEntities) &&
Objects.equals(this.currentStage, dominoProjectsApiProjectGoal.currentStage) &&
Objects.equals(this.isComplete, dominoProjectsApiProjectGoal.isComplete) &&
Objects.equals(this.isDeleted, dominoProjectsApiProjectGoal.isDeleted) &&
Objects.equals(this.projectId, dominoProjectsApiProjectGoal.projectId) &&
Objects.equals(this.createdAt, dominoProjectsApiProjectGoal.createdAt) &&
Objects.equals(this.createdBy, dominoProjectsApiProjectGoal.createdBy) &&
Objects.equals(this.lastTitleUpdatedAt, dominoProjectsApiProjectGoal.lastTitleUpdatedAt) &&
Objects.equals(this.lastDescriptionUpdatedAt, dominoProjectsApiProjectGoal.lastDescriptionUpdatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, title, description, linkedEntities, currentStage, isComplete, isDeleted, projectId, createdAt, createdBy, lastTitleUpdatedAt, lastDescriptionUpdatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoProjectsApiProjectGoal {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" linkedEntities: ").append(toIndentedString(linkedEntities)).append("\n");
sb.append(" currentStage: ").append(toIndentedString(currentStage)).append("\n");
sb.append(" isComplete: ").append(toIndentedString(isComplete)).append("\n");
sb.append(" isDeleted: ").append(toIndentedString(isDeleted)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" lastTitleUpdatedAt: ").append(toIndentedString(lastTitleUpdatedAt)).append("\n");
sb.append(" lastDescriptionUpdatedAt: ").append(toIndentedString(lastDescriptionUpdatedAt)).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 `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 `description` to the URL query string
if (getDescription() != null) {
joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `linkedEntities` to the URL query string
if (getLinkedEntities() != null) {
for (int i = 0; i < getLinkedEntities().size(); i++) {
if (getLinkedEntities().get(i) != null) {
joiner.add(getLinkedEntities().get(i).toUrlQueryString(String.format("%slinkedEntities%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `currentStage` to the URL query string
if (getCurrentStage() != null) {
joiner.add(getCurrentStage().toUrlQueryString(prefix + "currentStage" + suffix));
}
// add `isComplete` to the URL query string
if (getIsComplete() != null) {
joiner.add(String.format("%sisComplete%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsComplete()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `isDeleted` to the URL query string
if (getIsDeleted() != null) {
joiner.add(String.format("%sisDeleted%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsDeleted()), 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 `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 `createdBy` to the URL query string
if (getCreatedBy() != null) {
joiner.add(String.format("%screatedBy%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedBy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastTitleUpdatedAt` to the URL query string
if (getLastTitleUpdatedAt() != null) {
joiner.add(String.format("%slastTitleUpdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastTitleUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastDescriptionUpdatedAt` to the URL query string
if (getLastDescriptionUpdatedAt() != null) {
joiner.add(String.format("%slastDescriptionUpdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastDescriptionUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy