com.seeq.model.ReportTemplateInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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 io.swagger.v3.oas.annotations.media.Schema;
/**
* ReportTemplateInputV1
*/
public class ReportTemplateInputV1 {
@JsonProperty("description")
private String description = null;
@JsonProperty("folderId")
private String folderId = null;
@JsonProperty("htmlTemplate")
private String htmlTemplate = null;
@JsonProperty("name")
private String name = null;
public ReportTemplateInputV1 description(String description) {
this.description = description;
return this;
}
/**
* The description of the template
* @return description
**/
@Schema(description = "The description of the template")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ReportTemplateInputV1 folderId(String folderId) {
this.folderId = folderId;
return this;
}
/**
* The id of the folder to place the new report template into. Special values of 'mine' or 'corporate' to place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the workbook will be created in the authenticated user's home folder.
* @return folderId
**/
@Schema(description = "The id of the folder to place the new report template into. Special values of 'mine' or 'corporate' to place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the workbook will be created in the authenticated user's home folder.")
public String getFolderId() {
return folderId;
}
public void setFolderId(String folderId) {
this.folderId = folderId;
}
public ReportTemplateInputV1 htmlTemplate(String htmlTemplate) {
this.htmlTemplate = htmlTemplate;
return this;
}
/**
* The actual html template for the report template
* @return htmlTemplate
**/
@Schema(required = true, description = "The actual html template for the report template")
public String getHtmlTemplate() {
return htmlTemplate;
}
public void setHtmlTemplate(String htmlTemplate) {
this.htmlTemplate = htmlTemplate;
}
public ReportTemplateInputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the template
* @return name
**/
@Schema(required = true, description = "The name of the template")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReportTemplateInputV1 reportTemplateInputV1 = (ReportTemplateInputV1) o;
return Objects.equals(this.description, reportTemplateInputV1.description) &&
Objects.equals(this.folderId, reportTemplateInputV1.folderId) &&
Objects.equals(this.htmlTemplate, reportTemplateInputV1.htmlTemplate) &&
Objects.equals(this.name, reportTemplateInputV1.name);
}
@Override
public int hashCode() {
return Objects.hash(description, folderId, htmlTemplate, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReportTemplateInputV1 {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" folderId: ").append(toIndentedString(folderId)).append("\n");
sb.append(" htmlTemplate: ").append(toIndentedString(htmlTemplate)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).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 ");
}
}