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

com.seeq.model.ConditionMonitorInputV1 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: 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;
/**
 * ConditionMonitorInputV1
 */
public class ConditionMonitorInputV1 {
  @JsonProperty("archived")
  private Boolean archived = false;

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

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

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

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

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

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

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

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

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

  public ConditionMonitorInputV1 conditionIds(List conditionIds) {
    this.conditionIds = conditionIds;
    return this;
  }

  public ConditionMonitorInputV1 addConditionIdsItem(String conditionIdsItem) {
    if (this.conditionIds == null) {
      this.conditionIds = new ArrayList();
    }
    this.conditionIds.add(conditionIdsItem);
    return this;
  }

   /**
   * The IDs of conditions to monitor
   * @return conditionIds
  **/
  @Schema(description = "The IDs of conditions to monitor")
  public List getConditionIds() {
    return conditionIds;
  }

  public void setConditionIds(List conditionIds) {
    this.conditionIds = conditionIds;
  }

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

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

   /**
   * The condition monitor's check interval(s) as a list of cron expressions. If the list is empty, the system wide default check schedule is used. For more information about cron expressions, see  http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html
   * @return cronSchedule
  **/
  @Schema(description = "The condition monitor's check interval(s) as a list of cron expressions. If the list is empty, the system wide default check schedule is used. For more information about cron expressions, 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 ConditionMonitorInputV1 description(String description) {
    this.description = description;
    return this;
  }

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

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

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

   /**
   * Whether the condition monitor is enabled
   * @return enabled
  **/
  @Schema(description = "Whether the condition monitor is enabled")
  public Boolean getEnabled() {
    return enabled;
  }

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

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

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

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

  public ConditionMonitorInputV1 queryRangeLookAhead(String queryRangeLookAhead) {
    this.queryRangeLookAhead = queryRangeLookAhead;
    return this;
  }

   /**
   * Query range look ahead in seconds
   * @return queryRangeLookAhead
  **/
  @Schema(description = "Query range look ahead in seconds")
  public String getQueryRangeLookAhead() {
    return queryRangeLookAhead;
  }

  public void setQueryRangeLookAhead(String queryRangeLookAhead) {
    this.queryRangeLookAhead = queryRangeLookAhead;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConditionMonitorInputV1 conditionMonitorInputV1 = (ConditionMonitorInputV1) o;
    return Objects.equals(this.archived, conditionMonitorInputV1.archived) &&
        Objects.equals(this.conditionIds, conditionMonitorInputV1.conditionIds) &&
        Objects.equals(this.cronSchedule, conditionMonitorInputV1.cronSchedule) &&
        Objects.equals(this.description, conditionMonitorInputV1.description) &&
        Objects.equals(this.enabled, conditionMonitorInputV1.enabled) &&
        Objects.equals(this.name, conditionMonitorInputV1.name) &&
        Objects.equals(this.queryRangeLookAhead, conditionMonitorInputV1.queryRangeLookAhead);
  }

  @Override
  public int hashCode() {
    return Objects.hash(archived, conditionIds, cronSchedule, description, enabled, name, queryRangeLookAhead);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConditionMonitorInputV1 {\n");
    
    sb.append("    archived: ").append(toIndentedString(archived)).append("\n");
    sb.append("    conditionIds: ").append(toIndentedString(conditionIds)).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("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    queryRangeLookAhead: ").append(toIndentedString(queryRangeLookAhead)).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