All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.DateRangeInputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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;
/**
 * DateRangeInputV1
 */
public class DateRangeInputV1 {
  @JsonProperty("archived")
  private Boolean archived = false;

  @JsonProperty("background")
  private Boolean background = false;

  @JsonProperty("conditionId")
  private String conditionId = null;

  @JsonProperty("cronSchedule")
  private List cronSchedule = new ArrayList();

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("enabled")
  private Boolean enabled = true;

  @JsonProperty("formula")
  private String formula = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("reportId")
  private String reportId = null;

  public DateRangeInputV1 archived(Boolean archived) {
    this.archived = archived;
    return this;
  }

   /**
   * Whether the date range should be archived
   * @return archived
  **/
  @Schema(description = "Whether the date range should be archived")
  public Boolean getArchived() {
    return archived;
  }

  public void setArchived(Boolean archived) {
    this.archived = archived;
  }

  public DateRangeInputV1 background(Boolean background) {
    this.background = background;
    return this;
  }

   /**
   * Whether the date range, if scheduled, should continue to update if there are no subscribers (i.e. in the background)
   * @return background
  **/
  @Schema(description = "Whether the date range, 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 DateRangeInputV1 conditionId(String conditionId) {
    this.conditionId = conditionId;
    return this;
  }

   /**
   * The date range's condition
   * @return conditionId
  **/
  @Schema(description = "The date range's condition")
  public String getConditionId() {
    return conditionId;
  }

  public void setConditionId(String conditionId) {
    this.conditionId = conditionId;
  }

  public DateRangeInputV1 cronSchedule(List cronSchedule) {
    this.cronSchedule = cronSchedule;
    return this;
  }

  public DateRangeInputV1 addCronScheduleItem(String cronScheduleItem) {
    if (this.cronSchedule == null) {
      this.cronSchedule = new ArrayList();
    }
    this.cronSchedule.add(cronScheduleItem);
    return this;
  }

   /**
   * The date range'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 date range'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 DateRangeInputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * The date range's description
   * @return description
  **/
  @Schema(description = "The date range's description")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public DateRangeInputV1 enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

   /**
   * Whether the date range is enabled to run jobs
   * @return enabled
  **/
  @Schema(description = "Whether the date range is enabled to run jobs")
  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public DateRangeInputV1 formula(String formula) {
    this.formula = formula;
    return this;
  }

   /**
   * The date range's formula
   * @return formula
  **/
  @Schema(required = true, description = "The date range's formula")
  public String getFormula() {
    return formula;
  }

  public void setFormula(String formula) {
    this.formula = formula;
  }

  public DateRangeInputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The date range's name
   * @return name
  **/
  @Schema(required = true, description = "The date range's name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public DateRangeInputV1 reportId(String reportId) {
    this.reportId = reportId;
    return this;
  }

   /**
   * The date range's report
   * @return reportId
  **/
  @Schema(description = "The date range's report")
  public String getReportId() {
    return reportId;
  }

  public void setReportId(String reportId) {
    this.reportId = reportId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DateRangeInputV1 dateRangeInputV1 = (DateRangeInputV1) o;
    return Objects.equals(this.archived, dateRangeInputV1.archived) &&
        Objects.equals(this.background, dateRangeInputV1.background) &&
        Objects.equals(this.conditionId, dateRangeInputV1.conditionId) &&
        Objects.equals(this.cronSchedule, dateRangeInputV1.cronSchedule) &&
        Objects.equals(this.description, dateRangeInputV1.description) &&
        Objects.equals(this.enabled, dateRangeInputV1.enabled) &&
        Objects.equals(this.formula, dateRangeInputV1.formula) &&
        Objects.equals(this.name, dateRangeInputV1.name) &&
        Objects.equals(this.reportId, dateRangeInputV1.reportId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(archived, background, conditionId, cronSchedule, description, enabled, formula, name, reportId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DateRangeInputV1 {\n");
    
    sb.append("    archived: ").append(toIndentedString(archived)).append("\n");
    sb.append("    background: ").append(toIndentedString(background)).append("\n");
    sb.append("    conditionId: ").append(toIndentedString(conditionId)).append("\n");
    sb.append("    cronSchedule: ").append(toIndentedString(cronSchedule)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    formula: ").append(toIndentedString(formula)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    reportId: ").append(toIndentedString(reportId)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy