com.seeq.model.OptionalReportInputV1 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 io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* Additional inputs that only apply to Reports. Disallowed for Journals.
*/
@Schema(description = "Additional inputs that only apply to Reports. Disallowed for Journals.")
public class OptionalReportInputV1 {
@JsonProperty("background")
private Boolean background = false;
@JsonProperty("cronSchedule")
private List cronSchedule = new ArrayList();
@JsonProperty("enabled")
private Boolean enabled = true;
@JsonProperty("stepToNow")
private Boolean stepToNow = false;
public OptionalReportInputV1 background(Boolean background) {
this.background = background;
return this;
}
/**
* Whether the report, if scheduled, should continue to update if there are no subscribers(i.e. in the background)
* @return background
**/
@Schema(description = "Whether the report, if scheduled, should continue to update if there are no subscribers(i.e. in the background)")
public Boolean getBackground() {
return background;
}
public void setBackground(Boolean background) {
this.background = background;
}
public OptionalReportInputV1 cronSchedule(List cronSchedule) {
this.cronSchedule = cronSchedule;
return this;
}
public OptionalReportInputV1 addCronScheduleItem(String cronScheduleItem) {
if (this.cronSchedule == null) {
this.cronSchedule = new ArrayList();
}
this.cronSchedule.add(cronScheduleItem);
return this;
}
/**
* The report's update schedule as a cron expression (see http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html)
* @return cronSchedule
**/
@Schema(description = "The report's update schedule as a cron expression (see http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html)")
public List getCronSchedule() {
return cronSchedule;
}
public void setCronSchedule(List cronSchedule) {
this.cronSchedule = cronSchedule;
}
public OptionalReportInputV1 enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Whether the report is enabled to run jobs
* @return enabled
**/
@Schema(description = "Whether the report is enabled to run jobs")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public OptionalReportInputV1 stepToNow(Boolean stepToNow) {
this.stepToNow = stepToNow;
return this;
}
/**
* Whether the scheduled report should update its value for 'now'
* @return stepToNow
**/
@Schema(description = "Whether the scheduled report should update its value for 'now'")
public Boolean getStepToNow() {
return stepToNow;
}
public void setStepToNow(Boolean stepToNow) {
this.stepToNow = stepToNow;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OptionalReportInputV1 optionalReportInputV1 = (OptionalReportInputV1) o;
return Objects.equals(this.background, optionalReportInputV1.background) &&
Objects.equals(this.cronSchedule, optionalReportInputV1.cronSchedule) &&
Objects.equals(this.enabled, optionalReportInputV1.enabled) &&
Objects.equals(this.stepToNow, optionalReportInputV1.stepToNow);
}
@Override
public int hashCode() {
return Objects.hash(background, cronSchedule, enabled, stepToNow);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OptionalReportInputV1 {\n");
sb.append(" background: ").append(toIndentedString(background)).append("\n");
sb.append(" cronSchedule: ").append(toIndentedString(cronSchedule)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" stepToNow: ").append(toIndentedString(stepToNow)).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 ");
}
}