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

com.seeq.model.ItemFinderInputV1 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 com.seeq.model.ItemFinderConfigurationV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * ItemFinderInputV1
 */
public class ItemFinderInputV1 {
  @JsonProperty("cronSchedule")
  private List cronSchedule = new ArrayList();

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

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

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

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

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

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

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

   /**
   * The item finder'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 item finder'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 ItemFinderInputV1 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 ItemFinderInputV1 enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

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

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

  public ItemFinderInputV1 finderConfigurations(List finderConfigurations) {
    this.finderConfigurations = finderConfigurations;
    return this;
  }

  public ItemFinderInputV1 addFinderConfigurationsItem(ItemFinderConfigurationV1 finderConfigurationsItem) {
    this.finderConfigurations.add(finderConfigurationsItem);
    return this;
  }

   /**
   * The list of configurations for finding items
   * @return finderConfigurations
  **/
  @Schema(required = true, description = "The list of configurations for finding items")
  public List getFinderConfigurations() {
    return finderConfigurations;
  }

  public void setFinderConfigurations(List finderConfigurations) {
    this.finderConfigurations = finderConfigurations;
  }

  public ItemFinderInputV1 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 ItemFinderInputV1 scopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
    return this;
  }

   /**
   * The ID of the workbook to which the item finder will be scoped. If not provided, it will have a global scope
   * @return scopedTo
  **/
  @Schema(description = "The ID of the workbook to which the item finder will be scoped. If not provided, it will have a global scope")
  public String getScopedTo() {
    return scopedTo;
  }

  public void setScopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemFinderInputV1 itemFinderInputV1 = (ItemFinderInputV1) o;
    return Objects.equals(this.cronSchedule, itemFinderInputV1.cronSchedule) &&
        Objects.equals(this.description, itemFinderInputV1.description) &&
        Objects.equals(this.enabled, itemFinderInputV1.enabled) &&
        Objects.equals(this.finderConfigurations, itemFinderInputV1.finderConfigurations) &&
        Objects.equals(this.name, itemFinderInputV1.name) &&
        Objects.equals(this.scopedTo, itemFinderInputV1.scopedTo);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cronSchedule, description, enabled, finderConfigurations, name, scopedTo);
  }


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