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

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

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

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

  @JsonProperty("effectivePermissions")
  private PermissionsV1 effectivePermissions = null;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  public ItemFinderOutputV1 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 (see https://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 (see https://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 ItemFinderOutputV1 cronScheduleDescription(String cronScheduleDescription) {
    this.cronScheduleDescription = cronScheduleDescription;
    return this;
  }

   /**
   * A human readable description of the cron schedule
   * @return cronScheduleDescription
  **/
  @Schema(description = "A human readable description of the cron schedule")
  public String getCronScheduleDescription() {
    return cronScheduleDescription;
  }

  public void setCronScheduleDescription(String cronScheduleDescription) {
    this.cronScheduleDescription = cronScheduleDescription;
  }

  public ItemFinderOutputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item")
  public String getDescription() {
    return description;
  }

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

  public ItemFinderOutputV1 effectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
    return this;
  }

   /**
   * Get effectivePermissions
   * @return effectivePermissions
  **/
  @Schema(description = "")
  public PermissionsV1 getEffectivePermissions() {
    return effectivePermissions;
  }

  public void setEffectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
  }

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

   /**
   * Whether this item finder is enabled or not
   * @return enabled
  **/
  @Schema(required = true, description = "Whether this item finder is enabled or not")
  public Boolean getEnabled() {
    return enabled;
  }

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

  public ItemFinderOutputV1 executorId(String executorId) {
    this.executorId = executorId;
    return this;
  }

   /**
   * The ID of the user that runs the job of finding the items. The permissions of this user will be used to determine what items can be read.
   * @return executorId
  **/
  @Schema(required = true, description = "The ID of the user that runs the job of finding the items. The permissions of this user will be used to determine what items can be read.")
  public String getExecutorId() {
    return executorId;
  }

  public void setExecutorId(String executorId) {
    this.executorId = executorId;
  }

  public ItemFinderOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID that can be used to interact with the item
   * @return id
  **/
  @Schema(required = true, description = "The ID that can be used to interact with the item")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public ItemFinderOutputV1 isArchived(Boolean isArchived) {
    this.isArchived = isArchived;
    return this;
  }

   /**
   * Whether item is archived
   * @return isArchived
  **/
  @Schema(description = "Whether item is archived")
  public Boolean getIsArchived() {
    return isArchived;
  }

  public void setIsArchived(Boolean isArchived) {
    this.isArchived = isArchived;
  }

  public ItemFinderOutputV1 isRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
    return this;
  }

   /**
   * Whether item is redacted
   * @return isRedacted
  **/
  @Schema(description = "Whether item is redacted")
  public Boolean getIsRedacted() {
    return isRedacted;
  }

  public void setIsRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
  }

  public ItemFinderOutputV1 lastRunWarnings(List lastRunWarnings) {
    this.lastRunWarnings = lastRunWarnings;
    return this;
  }

  public ItemFinderOutputV1 addLastRunWarningsItem(String lastRunWarningsItem) {
    this.lastRunWarnings.add(lastRunWarningsItem);
    return this;
  }

   /**
   * The most recent list of warnings or errors that resulted from evaluating any of the finder configurations, such as items that failed to swap
   * @return lastRunWarnings
  **/
  @Schema(required = true, description = "The most recent list of warnings or errors that resulted from evaluating any of the finder configurations, such as items that failed to swap")
  public List getLastRunWarnings() {
    return lastRunWarnings;
  }

  public void setLastRunWarnings(List lastRunWarnings) {
    this.lastRunWarnings = lastRunWarnings;
  }

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

   /**
   * The human readable name
   * @return name
  **/
  @Schema(required = true, description = "The human readable name")
  public String getName() {
    return name;
  }

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

  public ItemFinderOutputV1 scopedTo(UUID scopedTo) {
    this.scopedTo = scopedTo;
    return this;
  }

   /**
   * The ID of the workbook to which this item is scoped or null if it is in the global scope.
   * @return scopedTo
  **/
  @Schema(description = "The ID of the workbook to which this item is scoped or null if it is in the global scope.")
  public UUID getScopedTo() {
    return scopedTo;
  }

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

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

  public ItemFinderOutputV1 addSearchesItem(Object searchesItem) {
    this.searches.add(searchesItem);
    return this;
  }

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

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

  public ItemFinderOutputV1 statusMessage(String statusMessage) {
    this.statusMessage = statusMessage;
    return this;
  }

   /**
   * A plain language status message with information about any issues that may have been encountered during an operation
   * @return statusMessage
  **/
  @Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation")
  public String getStatusMessage() {
    return statusMessage;
  }

  public void setStatusMessage(String statusMessage) {
    this.statusMessage = statusMessage;
  }

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

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

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

  public ItemFinderOutputV1 translationKey(String translationKey) {
    this.translationKey = translationKey;
    return this;
  }

   /**
   * The item's translation key, if any
   * @return translationKey
  **/
  @Schema(description = "The item's translation key, if any")
  public String getTranslationKey() {
    return translationKey;
  }

  public void setTranslationKey(String translationKey) {
    this.translationKey = translationKey;
  }

  public ItemFinderOutputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of the item
   * @return type
  **/
  @Schema(required = true, description = "The type of the item")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemFinderOutputV1 itemFinderOutputV1 = (ItemFinderOutputV1) o;
    return Objects.equals(this.cronSchedule, itemFinderOutputV1.cronSchedule) &&
        Objects.equals(this.cronScheduleDescription, itemFinderOutputV1.cronScheduleDescription) &&
        Objects.equals(this.description, itemFinderOutputV1.description) &&
        Objects.equals(this.effectivePermissions, itemFinderOutputV1.effectivePermissions) &&
        Objects.equals(this.enabled, itemFinderOutputV1.enabled) &&
        Objects.equals(this.executorId, itemFinderOutputV1.executorId) &&
        Objects.equals(this.id, itemFinderOutputV1.id) &&
        Objects.equals(this.isArchived, itemFinderOutputV1.isArchived) &&
        Objects.equals(this.isRedacted, itemFinderOutputV1.isRedacted) &&
        Objects.equals(this.lastRunWarnings, itemFinderOutputV1.lastRunWarnings) &&
        Objects.equals(this.name, itemFinderOutputV1.name) &&
        Objects.equals(this.scopedTo, itemFinderOutputV1.scopedTo) &&
        Objects.equals(this.searches, itemFinderOutputV1.searches) &&
        Objects.equals(this.statusMessage, itemFinderOutputV1.statusMessage) &&
        Objects.equals(this.timezone, itemFinderOutputV1.timezone) &&
        Objects.equals(this.translationKey, itemFinderOutputV1.translationKey) &&
        Objects.equals(this.type, itemFinderOutputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cronSchedule, cronScheduleDescription, description, effectivePermissions, enabled, executorId, id, isArchived, isRedacted, lastRunWarnings, name, scopedTo, searches, statusMessage, timezone, translationKey, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ItemFinderOutputV1 {\n");
    
    sb.append("    cronSchedule: ").append(toIndentedString(cronSchedule)).append("\n");
    sb.append("    cronScheduleDescription: ").append(toIndentedString(cronScheduleDescription)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    effectivePermissions: ").append(toIndentedString(effectivePermissions)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    executorId: ").append(toIndentedString(executorId)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    isRedacted: ").append(toIndentedString(isRedacted)).append("\n");
    sb.append("    lastRunWarnings: ").append(toIndentedString(lastRunWarnings)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
    sb.append("    searches: ").append(toIndentedString(searches)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    timezone: ").append(toIndentedString(timezone)).append("\n");
    sb.append("    translationKey: ").append(toIndentedString(translationKey)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }
  
}