com.seeq.model.ReportInputV1 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 com.seeq.model.ReportInputItemV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* ReportInputV1
*/
public class ReportInputV1 {
@JsonProperty("format")
private String format = null;
@JsonProperty("items")
private List items = new ArrayList();
@JsonProperty("title")
private String title = null;
public ReportInputV1 format(String format) {
this.format = format;
return this;
}
/**
* Report format to generate. Currently only 'pptx' is supported.
* @return format
**/
@Schema(required = true, description = "Report format to generate. Currently only 'pptx' is supported.")
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public ReportInputV1 items(List items) {
this.items = items;
return this;
}
public ReportInputV1 addItemsItem(ReportInputItemV1 itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
* A list of Worksheets to include in the report
* @return items
**/
@Schema(required = true, description = "A list of Worksheets to include in the report")
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
public ReportInputV1 title(String title) {
this.title = title;
return this;
}
/**
* Title for the report. If false or unspecified, the report has no title
* @return title
**/
@Schema(description = "Title for the report. If false or unspecified, the report has no title")
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;
}
ReportInputV1 reportInputV1 = (ReportInputV1) o;
return Objects.equals(this.format, reportInputV1.format) &&
Objects.equals(this.items, reportInputV1.items) &&
Objects.equals(this.title, reportInputV1.title);
}
@Override
public int hashCode() {
return Objects.hash(format, items, title);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReportInputV1 {\n");
sb.append(" format: ").append(toIndentedString(format)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).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 ");
}
}