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-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 63.1.6-v202409101657
 * 
 *
 * 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("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("itemFinderId")
  private String itemFinderId = null;

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

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

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

  public ConditionMonitorInputV1 addConditionIdsItem(String conditionIdsItem) {
    this.conditionIds.add(conditionIdsItem);
    return this;
  }

   /**
   * The IDs of conditions to monitor
   * @return conditionIds
  **/
  @Schema(required = true, 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;
  }

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
  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 itemFinderId(String itemFinderId) {
    this.itemFinderId = itemFinderId;
    return this;
  }

   /**
   * The ID of an Item Finder to use to populate the list of conditions. If this is provided it will overwrite the list of conditionIds
   * @return itemFinderId
  **/
  @Schema(description = "The ID of an Item Finder to use to populate the list of conditions. If this is provided it will overwrite the list of conditionIds")
  public String getItemFinderId() {
    return itemFinderId;
  }

  public void setItemFinderId(String itemFinderId) {
    this.itemFinderId = itemFinderId;
  }

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

   /**
   * Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
   * @return name
  **/
  @Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
  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.conditionIds, conditionMonitorInputV1.conditionIds) &&
        Objects.equals(this.cronSchedule, conditionMonitorInputV1.cronSchedule) &&
        Objects.equals(this.description, conditionMonitorInputV1.description) &&
        Objects.equals(this.enabled, conditionMonitorInputV1.enabled) &&
        Objects.equals(this.itemFinderId, conditionMonitorInputV1.itemFinderId) &&
        Objects.equals(this.name, conditionMonitorInputV1.name) &&
        Objects.equals(this.queryRangeLookAhead, conditionMonitorInputV1.queryRangeLookAhead);
  }

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


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