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

com.dominodatalab.pub.model.EnvironmentRevisionBuildStatusV1 Maven / Gradle / Ivy

Go to download

Domino Data Lab API Client to connect to Domino web services using Java HTTP Client.

There is a newer version: 6.0.1.0
Show newest version
/*
 * Domino Public API
 * Domino Public API Endpoints
 *
 * The version of the OpenAPI document: 0.0.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.dominodatalab.pub.model;

import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


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

/**
 * Status of the build for an Environment Revision.
 */
public enum EnvironmentRevisionBuildStatusV1 {
  
  QUEUED("queued"),
  
  STARTING("starting"),
  
  PULLING("pulling"),
  
  BUILDING("building"),
  
  PUSHING("pushing"),
  
  SUCCEEDED("succeeded"),
  
  FAILED("failed"),
  
  KILLED("killed");

  private String value;

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

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

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

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

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    if (prefix == null) {
      prefix = "";
    }

    return String.format("%s=%s", prefix, this.toString());
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy