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

com.seeq.model.JobOutputV1 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 io.swagger.v3.oas.annotations.media.Schema;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
 * A list of jobs
 */
@Schema(description = "A list of jobs")
public class JobOutputV1 {
  @JsonProperty("configuration")
  private Map _configuration = new HashMap();

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

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

  @JsonProperty("duration")
  private Long duration = null;

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

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

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

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

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

  /**
   * The status (Queued, Running, Errored, Finished) of the job's last execution
   */
  public enum StatusEnum {
    QUEUED("Queued"),
    RUNNING("Running"),
    ERRORED("Errored"),
    FINISHED("Finished");

    private String value;

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

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

  }  @JsonProperty("status")
  private StatusEnum status = null;

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

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

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

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

  public JobOutputV1 _configuration(Map _configuration) {
    this._configuration = _configuration;
    return this;
  }

  public JobOutputV1 putConfigurationItem(String key, Object _configurationItem) {
    if (this._configuration == null) {
      this._configuration = new HashMap();
    }
    this._configuration.put(key, _configurationItem);
    return this;
  }

   /**
   * The configuration for the job
   * @return _configuration
  **/
  @Schema(description = "The configuration for the job")
  public Map getConfiguration() {
    return _configuration;
  }

  public void setConfiguration(Map _configuration) {
    this._configuration = _configuration;
  }

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

   /**
   * The ID of the topic document, if supplied, that requested this job
   * @return documentId
  **/
  @Schema(description = "The ID of the topic document, if supplied, that requested this job")
  public String getDocumentId() {
    return documentId;
  }

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

  public JobOutputV1 documentName(String documentName) {
    this.documentName = documentName;
    return this;
  }

   /**
   * The name of the topic document, if supplied, which requested this job
   * @return documentName
  **/
  @Schema(description = "The name of the topic document, if supplied, which requested this job")
  public String getDocumentName() {
    return documentName;
  }

  public void setDocumentName(String documentName) {
    this.documentName = documentName;
  }

  public JobOutputV1 duration(Long duration) {
    this.duration = duration;
    return this;
  }

   /**
   * The amount of time, in nanoseconds, that the job took for its last execution
   * @return duration
  **/
  @Schema(description = "The amount of time, in nanoseconds, that the job took for its last execution")
  public Long getDuration() {
    return duration;
  }

  public void setDuration(Long duration) {
    this.duration = duration;
  }

  public JobOutputV1 group(String group) {
    this.group = group;
    return this;
  }

   /**
   * The group to which the job belongs
   * @return group
  **/
  @Schema(description = "The group to which the job belongs")
  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }

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

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

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

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

   /**
   * The next time, as an ISO timestamp, the job is scheduled to run. Empty if it is not scheduled
   * @return nextRunTime
  **/
  @Schema(description = "The next time, as an ISO timestamp, the job is scheduled to run. Empty if it is not scheduled")
  public String getNextRunTime() {
    return nextRunTime;
  }

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

  public JobOutputV1 previousRunTime(String previousRunTime) {
    this.previousRunTime = previousRunTime;
    return this;
  }

   /**
   * The previous time, as an ISO timestamp, at which the job was run. Empty if it has not been run
   * @return previousRunTime
  **/
  @Schema(description = "The previous time, as an ISO timestamp, at which the job was run. Empty if it has not been run")
  public String getPreviousRunTime() {
    return previousRunTime;
  }

  public void setPreviousRunTime(String previousRunTime) {
    this.previousRunTime = previousRunTime;
  }

  public JobOutputV1 result(String result) {
    this.result = result;
    return this;
  }

   /**
   * A JSON representation of the result (if any) of the job's last execution
   * @return result
  **/
  @Schema(description = "A JSON representation of the result (if any) of the job's last execution")
  public String getResult() {
    return result;
  }

  public void setResult(String result) {
    this.result = result;
  }

  public JobOutputV1 status(StatusEnum status) {
    this.status = status;
    return this;
  }

   /**
   * The status (Queued, Running, Errored, Finished) of the job's last execution
   * @return status
  **/
  @Schema(description = "The status (Queued, Running, Errored, Finished) of the job's last execution")
  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }

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

   /**
   * The ID of the Topic, if supplied, that requested this job
   * @return topicId
  **/
  @Schema(description = "The ID of the Topic, if supplied, that requested this job")
  public String getTopicId() {
    return topicId;
  }

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

  public JobOutputV1 topicName(String topicName) {
    this.topicName = topicName;
    return this;
  }

   /**
   * The name of the topic, if supplied, that requested this job
   * @return topicName
  **/
  @Schema(description = "The name of the topic, if supplied, that requested this job")
  public String getTopicName() {
    return topicName;
  }

  public void setTopicName(String topicName) {
    this.topicName = topicName;
  }

  public JobOutputV1 userId(UUID userId) {
    this.userId = userId;
    return this;
  }

   /**
   * The ID of the user that created this job
   * @return userId
  **/
  @Schema(description = "The ID of the user that created this job")
  public UUID getUserId() {
    return userId;
  }

  public void setUserId(UUID 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;
    }
    JobOutputV1 jobOutputV1 = (JobOutputV1) o;
    return Objects.equals(this._configuration, jobOutputV1._configuration) &&
        Objects.equals(this.documentId, jobOutputV1.documentId) &&
        Objects.equals(this.documentName, jobOutputV1.documentName) &&
        Objects.equals(this.duration, jobOutputV1.duration) &&
        Objects.equals(this.group, jobOutputV1.group) &&
        Objects.equals(this.id, jobOutputV1.id) &&
        Objects.equals(this.nextRunTime, jobOutputV1.nextRunTime) &&
        Objects.equals(this.previousRunTime, jobOutputV1.previousRunTime) &&
        Objects.equals(this.result, jobOutputV1.result) &&
        Objects.equals(this.status, jobOutputV1.status) &&
        Objects.equals(this.statusMessage, jobOutputV1.statusMessage) &&
        Objects.equals(this.topicId, jobOutputV1.topicId) &&
        Objects.equals(this.topicName, jobOutputV1.topicName) &&
        Objects.equals(this.userId, jobOutputV1.userId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(_configuration, documentId, documentName, duration, group, id, nextRunTime, previousRunTime, result, status, statusMessage, topicId, topicName, userId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobOutputV1 {\n");
    
    sb.append("    _configuration: ").append(toIndentedString(_configuration)).append("\n");
    sb.append("    documentId: ").append(toIndentedString(documentId)).append("\n");
    sb.append("    documentName: ").append(toIndentedString(documentName)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    group: ").append(toIndentedString(group)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    nextRunTime: ").append(toIndentedString(nextRunTime)).append("\n");
    sb.append("    previousRunTime: ").append(toIndentedString(previousRunTime)).append("\n");
    sb.append("    result: ").append(toIndentedString(result)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    topicId: ").append(toIndentedString(topicId)).append("\n");
    sb.append("    topicName: ").append(toIndentedString(topicName)).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