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: 65.1.3-v202408082312
 * 
 *
 * 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.FixedListSearchV1;
import com.seeq.model.PropertySearchV1;
import com.seeq.model.SwapAcrossAssetsSearchV1;
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("fixedListSearches")
  private List fixedListSearches = new ArrayList();

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

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

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

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

  @JsonProperty("timezone")
  private String timezone = 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 fixedListSearches(List fixedListSearches) {
    this.fixedListSearches = fixedListSearches;
    return this;
  }

  public ItemFinderInputV1 addFixedListSearchesItem(FixedListSearchV1 fixedListSearchesItem) {
    if (this.fixedListSearches == null) {
      this.fixedListSearches = new ArrayList();
    }
    this.fixedListSearches.add(fixedListSearchesItem);
    return this;
  }

   /**
   * The list of searches containing a list of item IDs to always include or exclude in the output
   * @return fixedListSearches
  **/
  @Schema(description = "The list of searches containing a list of item IDs to always include or exclude in the output")
  public List getFixedListSearches() {
    return fixedListSearches;
  }

  public void setFixedListSearches(List fixedListSearches) {
    this.fixedListSearches = fixedListSearches;
  }

  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 propertySearches(List propertySearches) {
    this.propertySearches = propertySearches;
    return this;
  }

  public ItemFinderInputV1 addPropertySearchesItem(PropertySearchV1 propertySearchesItem) {
    if (this.propertySearches == null) {
      this.propertySearches = new ArrayList();
    }
    this.propertySearches.add(propertySearchesItem);
    return this;
  }

   /**
   * The list of searches based on properties
   * @return propertySearches
  **/
  @Schema(description = "The list of searches based on properties")
  public List getPropertySearches() {
    return propertySearches;
  }

  public void setPropertySearches(List propertySearches) {
    this.propertySearches = propertySearches;
  }

  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;
  }

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

  public ItemFinderInputV1 addSearchesItem(SwapAcrossAssetsSearchV1 searchesItem) {
    if (this.searches == null) {
      this.searches = new ArrayList();
    }
    this.searches.add(searchesItem);
    return this;
  }

   /**
   * The list of searches for swapping across assets to find items
   * @return searches
  **/
  @Schema(description = "The list of searches for swapping across assets to find items")
  public List getSearches() {
    return searches;
  }

  public void setSearches(List searches) {
    this.searches = searches;
  }

  public ItemFinderInputV1 timezone(String timezone) {
    this.timezone = timezone;
    return this;
  }

   /**
   * The IANA timezone in which the scheduled times will be run, defaults to UTC
   * @return timezone
  **/
  @Schema(description = "The IANA timezone in which the scheduled times will be run, defaults to UTC")
  public String getTimezone() {
    return timezone;
  }

  public void setTimezone(String timezone) {
    this.timezone = timezone;
  }


  @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.fixedListSearches, itemFinderInputV1.fixedListSearches) &&
        Objects.equals(this.name, itemFinderInputV1.name) &&
        Objects.equals(this.propertySearches, itemFinderInputV1.propertySearches) &&
        Objects.equals(this.scopedTo, itemFinderInputV1.scopedTo) &&
        Objects.equals(this.searches, itemFinderInputV1.searches) &&
        Objects.equals(this.timezone, itemFinderInputV1.timezone);
  }

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


  @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("    fixedListSearches: ").append(toIndentedString(fixedListSearches)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    propertySearches: ").append(toIndentedString(propertySearches)).append("\n");
    sb.append("    scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
    sb.append("    searches: ").append(toIndentedString(searches)).append("\n");
    sb.append("    timezone: ").append(toIndentedString(timezone)).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