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

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

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

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

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

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

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

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

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

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespace is equivalent to a null input
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespace is equivalent to a null input")
  public String getDescription() {
    return description;
  }

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

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

   /**
   * Whether the schedule should be enabled to run jobs
   * @return enabled
  **/
  @Schema(description = "Whether the schedule should be enabled to run jobs")
  public Boolean getEnabled() {
    return enabled;
  }

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

  public ScheduledNotebookInputV1 filePath(String filePath) {
    this.filePath = filePath;
    return this;
  }

   /**
   * The path to the ipynb file to be run (case-sensitive). May not be altered after initial creation
   * @return filePath
  **/
  @Schema(required = true, description = "The path to the ipynb file to be run (case-sensitive). May not be altered after initial creation")
  public String getFilePath() {
    return filePath;
  }

  public void setFilePath(String filePath) {
    this.filePath = filePath;
  }

  public ScheduledNotebookInputV1 label(String label) {
    this.label = label;
    return this;
  }

   /**
   * An optional label that differentiates this schedule (case-sensitive), allowing the samefilePath to be run by multiple users. May not be altered after initial creation
   * @return label
  **/
  @Schema(description = "An optional label that differentiates this schedule (case-sensitive), allowing the samefilePath to be run by multiple users. May not be altered after initial creation")
  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public ScheduledNotebookInputV1 schedules(List schedules) {
    this.schedules = schedules;
    return this;
  }

  public ScheduledNotebookInputV1 addSchedulesItem(ScheduleInputV1 schedulesItem) {
    if (this.schedules == null) {
      this.schedules = new ArrayList();
    }
    this.schedules.add(schedulesItem);
    return this;
  }

   /**
   * The Notebook's run schedule.  Any entries for which a key is not provided will be supplied with a key from a 0-based list of integers
   * @return schedules
  **/
  @Schema(description = "The Notebook's run schedule.  Any entries for which a key is not provided will be supplied with a key from a 0-based list of integers")
  public List getSchedules() {
    return schedules;
  }

  public void setSchedules(List schedules) {
    this.schedules = schedules;
  }

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

   /**
   * The timezone in which the scheduled times will be run, defaults to UTC
   * @return timezone
  **/
  @Schema(description = "The 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;
  }

  public ScheduledNotebookInputV1 userId(String userId) {
    this.userId = userId;
    return this;
  }

   /**
   * The user ID to run the Notebook as, defaults to the current user if not specified. Only an admin user is allowed to specify a user ID
   * @return userId
  **/
  @Schema(description = "The user ID to run the Notebook as, defaults to the current user if not specified. Only an admin user is allowed to specify a user ID")
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ScheduledNotebookInputV1 scheduledNotebookInputV1 = (ScheduledNotebookInputV1) o;
    return Objects.equals(this.description, scheduledNotebookInputV1.description) &&
        Objects.equals(this.enabled, scheduledNotebookInputV1.enabled) &&
        Objects.equals(this.filePath, scheduledNotebookInputV1.filePath) &&
        Objects.equals(this.label, scheduledNotebookInputV1.label) &&
        Objects.equals(this.schedules, scheduledNotebookInputV1.schedules) &&
        Objects.equals(this.timezone, scheduledNotebookInputV1.timezone) &&
        Objects.equals(this.userId, scheduledNotebookInputV1.userId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(description, enabled, filePath, label, schedules, timezone, userId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ScheduledNotebookInputV1 {\n");
    
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    filePath: ").append(toIndentedString(filePath)).append("\n");
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
    sb.append("    schedules: ").append(toIndentedString(schedules)).append("\n");
    sb.append("    timezone: ").append(toIndentedString(timezone)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).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