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

com.seeq.model.SchedulableAdminOutputV1 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;
/**
 * A list of scheduled items with statistical information added
 */
@Schema(description = "A list of scheduled items with statistical information added")
public class SchedulableAdminOutputV1 {
  @JsonProperty("averageRunTime")
  private Integer averageRunTime = null;

  @JsonProperty("contentCount")
  private Integer contentCount = null;

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

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

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

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

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

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

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

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

  /**
   * The type of the item
   */
  public enum SchedulableTypeEnum {
    SCHEDULED("Scheduled"),
    LIVE("Live"),
    STATIC("Static"),
    CONDITIONMONITOR("ConditionMonitor");

    private String value;

    SchedulableTypeEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static SchedulableTypeEnum fromValue(String input) {
      for (SchedulableTypeEnum b : SchedulableTypeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("schedulableType")
  private SchedulableTypeEnum schedulableType = null;

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

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

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

  @JsonProperty("totalRunTime")
  private Integer totalRunTime = null;

  public SchedulableAdminOutputV1 averageRunTime(Integer averageRunTime) {
    this.averageRunTime = averageRunTime;
    return this;
  }

   /**
   * Average run time when run
   * @return averageRunTime
  **/
  @Schema(required = true, description = "Average run time when run")
  public Integer getAverageRunTime() {
    return averageRunTime;
  }

  public void setAverageRunTime(Integer averageRunTime) {
    this.averageRunTime = averageRunTime;
  }

  public SchedulableAdminOutputV1 contentCount(Integer contentCount) {
    this.contentCount = contentCount;
    return this;
  }

   /**
   * The number of non-archived pieces of content if item is a report
   * @return contentCount
  **/
  @Schema(required = true, description = "The number of non-archived pieces of content if item is a report")
  public Integer getContentCount() {
    return contentCount;
  }

  public void setContentCount(Integer contentCount) {
    this.contentCount = contentCount;
  }

  public SchedulableAdminOutputV1 documentId(String documentId) {
    this.documentId = documentId;
    return this;
  }

   /**
   * The document's ID if item is a report
   * @return documentId
  **/
  @Schema(description = "The document's ID if item is a report")
  public String getDocumentId() {
    return documentId;
  }

  public void setDocumentId(String documentId) {
    this.documentId = documentId;
  }

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

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

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

  public SchedulableAdminOutputV1 lastRunTime(String lastRunTime) {
    this.lastRunTime = lastRunTime;
    return this;
  }

   /**
   * The last time the schedule ran
   * @return lastRunTime
  **/
  @Schema(description = "The last time the schedule ran")
  public String getLastRunTime() {
    return lastRunTime;
  }

  public void setLastRunTime(String lastRunTime) {
    this.lastRunTime = lastRunTime;
  }

  public SchedulableAdminOutputV1 lastUpdated(String lastUpdated) {
    this.lastUpdated = lastUpdated;
    return this;
  }

   /**
   * The last time the item was updated
   * @return lastUpdated
  **/
  @Schema(required = true, description = "The last time the item was updated")
  public String getLastUpdated() {
    return lastUpdated;
  }

  public void setLastUpdated(String lastUpdated) {
    this.lastUpdated = lastUpdated;
  }

  public SchedulableAdminOutputV1 lastViewedAt(String lastViewedAt) {
    this.lastViewedAt = lastViewedAt;
    return this;
  }

   /**
   * The last time the item was looked at
   * @return lastViewedAt
  **/
  @Schema(description = "The last time the item was looked at")
  public String getLastViewedAt() {
    return lastViewedAt;
  }

  public void setLastViewedAt(String lastViewedAt) {
    this.lastViewedAt = lastViewedAt;
  }

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

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

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

  public SchedulableAdminOutputV1 nextRunTime(String nextRunTime) {
    this.nextRunTime = nextRunTime;
    return this;
  }

   /**
   * The next time the schedule will run
   * @return nextRunTime
  **/
  @Schema(description = "The next time the schedule will run")
  public String getNextRunTime() {
    return nextRunTime;
  }

  public void setNextRunTime(String nextRunTime) {
    this.nextRunTime = nextRunTime;
  }

  public SchedulableAdminOutputV1 owner(String owner) {
    this.owner = owner;
    return this;
  }

   /**
   * The owner of the item
   * @return owner
  **/
  @Schema(description = "The owner of the item")
  public String getOwner() {
    return owner;
  }

  public void setOwner(String owner) {
    this.owner = owner;
  }

  public SchedulableAdminOutputV1 schedulableType(SchedulableTypeEnum schedulableType) {
    this.schedulableType = schedulableType;
    return this;
  }

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

  public void setSchedulableType(SchedulableTypeEnum schedulableType) {
    this.schedulableType = schedulableType;
  }

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

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

   /**
   * A human readable representation of the cron schedules
   * @return schedules
  **/
  @Schema(description = "A human readable representation of the cron schedules")
  public List getSchedules() {
    return schedules;
  }

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

  public SchedulableAdminOutputV1 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. Null if the status message has not been set.
   * @return statusMessage
  **/
  @Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation. Null if the status message has not been set.")
  public String getStatusMessage() {
    return statusMessage;
  }

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

  public SchedulableAdminOutputV1 topicId(String topicId) {
    this.topicId = topicId;
    return this;
  }

   /**
   * The topic's ID if item is a report
   * @return topicId
  **/
  @Schema(description = "The topic's ID if item is a report")
  public String getTopicId() {
    return topicId;
  }

  public void setTopicId(String topicId) {
    this.topicId = topicId;
  }

  public SchedulableAdminOutputV1 totalRunTime(Integer totalRunTime) {
    this.totalRunTime = totalRunTime;
    return this;
  }

   /**
   * Sum of the run times
   * @return totalRunTime
  **/
  @Schema(required = true, description = "Sum of the run times")
  public Integer getTotalRunTime() {
    return totalRunTime;
  }

  public void setTotalRunTime(Integer totalRunTime) {
    this.totalRunTime = totalRunTime;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SchedulableAdminOutputV1 schedulableAdminOutputV1 = (SchedulableAdminOutputV1) o;
    return Objects.equals(this.averageRunTime, schedulableAdminOutputV1.averageRunTime) &&
        Objects.equals(this.contentCount, schedulableAdminOutputV1.contentCount) &&
        Objects.equals(this.documentId, schedulableAdminOutputV1.documentId) &&
        Objects.equals(this.id, schedulableAdminOutputV1.id) &&
        Objects.equals(this.lastRunTime, schedulableAdminOutputV1.lastRunTime) &&
        Objects.equals(this.lastUpdated, schedulableAdminOutputV1.lastUpdated) &&
        Objects.equals(this.lastViewedAt, schedulableAdminOutputV1.lastViewedAt) &&
        Objects.equals(this.name, schedulableAdminOutputV1.name) &&
        Objects.equals(this.nextRunTime, schedulableAdminOutputV1.nextRunTime) &&
        Objects.equals(this.owner, schedulableAdminOutputV1.owner) &&
        Objects.equals(this.schedulableType, schedulableAdminOutputV1.schedulableType) &&
        Objects.equals(this.schedules, schedulableAdminOutputV1.schedules) &&
        Objects.equals(this.statusMessage, schedulableAdminOutputV1.statusMessage) &&
        Objects.equals(this.topicId, schedulableAdminOutputV1.topicId) &&
        Objects.equals(this.totalRunTime, schedulableAdminOutputV1.totalRunTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(averageRunTime, contentCount, documentId, id, lastRunTime, lastUpdated, lastViewedAt, name, nextRunTime, owner, schedulableType, schedules, statusMessage, topicId, totalRunTime);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SchedulableAdminOutputV1 {\n");
    
    sb.append("    averageRunTime: ").append(toIndentedString(averageRunTime)).append("\n");
    sb.append("    contentCount: ").append(toIndentedString(contentCount)).append("\n");
    sb.append("    documentId: ").append(toIndentedString(documentId)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    lastRunTime: ").append(toIndentedString(lastRunTime)).append("\n");
    sb.append("    lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n");
    sb.append("    lastViewedAt: ").append(toIndentedString(lastViewedAt)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    nextRunTime: ").append(toIndentedString(nextRunTime)).append("\n");
    sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
    sb.append("    schedulableType: ").append(toIndentedString(schedulableType)).append("\n");
    sb.append("    schedules: ").append(toIndentedString(schedules)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    topicId: ").append(toIndentedString(topicId)).append("\n");
    sb.append("    totalRunTime: ").append(toIndentedString(totalRunTime)).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