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

com.github.jobservice.client.model.JobStatus Maven / Gradle / Ivy

The newest version!
/*
 * Job Service
 * Allows background operations to be sent to the workers, and for the operations to be tracked and controlled.  You can check the progress of operations, and request to cancel, pause, or resume them.  The primary use of this functionality is batch document processing.  The service can send work to the Batch Worker, and then track the progress of that work. 
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.github.jobservice.client.model;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.jobservice.job.client.JSON;


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * The status of the job.
 */
public enum JobStatus {
  
  ACTIVE("Active"),
  
  CANCELLED("Cancelled"),
  
  COMPLETED("Completed"),
  
  FAILED("Failed"),
  
  PAUSED("Paused"),
  
  WAITING("Waiting");

  private String value;

  JobStatus(String value) {
    this.value = value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static JobStatus fromValue(String value) {
    for (JobStatus b : JobStatus.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy