com.seeq.model.FormulaDocInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.FormulaDocExampleListInputV1;
import com.seeq.model.FormulaDocKeywordListInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The list of docs to be added or modified
*/
@Schema(description = "The list of docs to be added or modified")
public class FormulaDocInputV1 {
@JsonProperty("description")
private String description = null;
@JsonProperty("examples")
private FormulaDocExampleListInputV1 examples = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("searchKeywords")
private FormulaDocKeywordListInputV1 searchKeywords = null;
@JsonProperty("syncToken")
private String syncToken = null;
@JsonProperty("title")
private String title = null;
public FormulaDocInputV1 description(String description) {
this.description = description;
return this;
}
/**
* The body of this FormulaDoc.
* @return description
**/
@Schema(description = "The body of this FormulaDoc.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public FormulaDocInputV1 examples(FormulaDocExampleListInputV1 examples) {
this.examples = examples;
return this;
}
/**
* Get examples
* @return examples
**/
@Schema(description = "")
public FormulaDocExampleListInputV1 getExamples() {
return examples;
}
public void setExamples(FormulaDocExampleListInputV1 examples) {
this.examples = examples;
}
public FormulaDocInputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the document. May be empty when called via the docs endpoint.
* @return name
**/
@Schema(description = "The name of the document. May be empty when called via the docs endpoint.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public FormulaDocInputV1 searchKeywords(FormulaDocKeywordListInputV1 searchKeywords) {
this.searchKeywords = searchKeywords;
return this;
}
/**
* Get searchKeywords
* @return searchKeywords
**/
@Schema(description = "")
public FormulaDocKeywordListInputV1 getSearchKeywords() {
return searchKeywords;
}
public void setSearchKeywords(FormulaDocKeywordListInputV1 searchKeywords) {
this.searchKeywords = searchKeywords;
}
public FormulaDocInputV1 syncToken(String syncToken) {
this.syncToken = syncToken;
return this;
}
/**
* An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and will be archived using the Datasources clean-up API.
* @return syncToken
**/
@Schema(description = "An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and will be archived using the Datasources clean-up API.")
public String getSyncToken() {
return syncToken;
}
public void setSyncToken(String syncToken) {
this.syncToken = syncToken;
}
public FormulaDocInputV1 title(String title) {
this.title = title;
return this;
}
/**
* The title of the page. This may only be set on index pages.
* @return title
**/
@Schema(description = "The title of the page. This may only be set on index pages.")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FormulaDocInputV1 formulaDocInputV1 = (FormulaDocInputV1) o;
return Objects.equals(this.description, formulaDocInputV1.description) &&
Objects.equals(this.examples, formulaDocInputV1.examples) &&
Objects.equals(this.name, formulaDocInputV1.name) &&
Objects.equals(this.searchKeywords, formulaDocInputV1.searchKeywords) &&
Objects.equals(this.syncToken, formulaDocInputV1.syncToken) &&
Objects.equals(this.title, formulaDocInputV1.title);
}
@Override
public int hashCode() {
return Objects.hash(description, examples, name, searchKeywords, syncToken, title);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FormulaDocInputV1 {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" examples: ").append(toIndentedString(examples)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" searchKeywords: ").append(toIndentedString(searchKeywords)).append("\n");
sb.append(" syncToken: ").append(toIndentedString(syncToken)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}