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-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 io.swagger.v3.oas.annotations.media.Schema;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * 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("statusMessage")
  private String statusMessage = null;

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

  @JsonProperty("topicName")
  private String topicName = 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 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;
  }


  @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.statusMessage, jobOutputV1.statusMessage) &&
        Objects.equals(this.topicId, jobOutputV1.topicId) &&
        Objects.equals(this.topicName, jobOutputV1.topicName);
  }

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


  @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("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    topicId: ").append(toIndentedString(topicId)).append("\n");
    sb.append("    topicName: ").append(toIndentedString(topicName)).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