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

com.dominodatalab.api.model.DominoWorkspaceApiWorkspaceSessionStatusInfo Maven / Gradle / Ivy

/*
 * Domino Data Lab API v4
 * This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key. 
 *
 * The version of the OpenAPI document: 4.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.api.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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.time.OffsetDateTime;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * DominoWorkspaceApiWorkspaceSessionStatusInfo
 */
@JsonPropertyOrder({
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS_UPDATED_AT,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_LOADING,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_RUNNING,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_STOPPABLE,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_COMPLETING,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_FAILED,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_SUCCESSFUL,
  DominoWorkspaceApiWorkspaceSessionStatusInfo.JSON_PROPERTY_IS_COMPLETED
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoWorkspaceApiWorkspaceSessionStatusInfo {
  public static final String JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS = "rawExecutionDisplayStatus";
  private String rawExecutionDisplayStatus;

  public static final String JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS_UPDATED_AT = "rawExecutionDisplayStatusUpdatedAt";
  private OffsetDateTime rawExecutionDisplayStatusUpdatedAt;

  public static final String JSON_PROPERTY_IS_LOADING = "isLoading";
  private Boolean isLoading;

  public static final String JSON_PROPERTY_IS_RUNNING = "isRunning";
  private Boolean isRunning;

  public static final String JSON_PROPERTY_IS_STOPPABLE = "isStoppable";
  private Boolean isStoppable;

  public static final String JSON_PROPERTY_IS_COMPLETING = "isCompleting";
  private Boolean isCompleting;

  public static final String JSON_PROPERTY_IS_FAILED = "isFailed";
  private Boolean isFailed;

  public static final String JSON_PROPERTY_IS_SUCCESSFUL = "isSuccessful";
  private Boolean isSuccessful;

  public static final String JSON_PROPERTY_IS_COMPLETED = "isCompleted";
  private Boolean isCompleted;

  public DominoWorkspaceApiWorkspaceSessionStatusInfo() { 
  }

  public DominoWorkspaceApiWorkspaceSessionStatusInfo rawExecutionDisplayStatus(String rawExecutionDisplayStatus) {
    this.rawExecutionDisplayStatus = rawExecutionDisplayStatus;
    return this;
  }

   /**
   * Get rawExecutionDisplayStatus
   * @return rawExecutionDisplayStatus
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getRawExecutionDisplayStatus() {
    return rawExecutionDisplayStatus;
  }


  @JsonProperty(JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRawExecutionDisplayStatus(String rawExecutionDisplayStatus) {
    this.rawExecutionDisplayStatus = rawExecutionDisplayStatus;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo rawExecutionDisplayStatusUpdatedAt(OffsetDateTime rawExecutionDisplayStatusUpdatedAt) {
    this.rawExecutionDisplayStatusUpdatedAt = rawExecutionDisplayStatusUpdatedAt;
    return this;
  }

   /**
   * Get rawExecutionDisplayStatusUpdatedAt
   * @return rawExecutionDisplayStatusUpdatedAt
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public OffsetDateTime getRawExecutionDisplayStatusUpdatedAt() {
    return rawExecutionDisplayStatusUpdatedAt;
  }


  @JsonProperty(JSON_PROPERTY_RAW_EXECUTION_DISPLAY_STATUS_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRawExecutionDisplayStatusUpdatedAt(OffsetDateTime rawExecutionDisplayStatusUpdatedAt) {
    this.rawExecutionDisplayStatusUpdatedAt = rawExecutionDisplayStatusUpdatedAt;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isLoading(Boolean isLoading) {
    this.isLoading = isLoading;
    return this;
  }

   /**
   * Get isLoading
   * @return isLoading
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_LOADING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsLoading() {
    return isLoading;
  }


  @JsonProperty(JSON_PROPERTY_IS_LOADING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsLoading(Boolean isLoading) {
    this.isLoading = isLoading;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isRunning(Boolean isRunning) {
    this.isRunning = isRunning;
    return this;
  }

   /**
   * Get isRunning
   * @return isRunning
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_RUNNING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsRunning() {
    return isRunning;
  }


  @JsonProperty(JSON_PROPERTY_IS_RUNNING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsRunning(Boolean isRunning) {
    this.isRunning = isRunning;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isStoppable(Boolean isStoppable) {
    this.isStoppable = isStoppable;
    return this;
  }

   /**
   * Get isStoppable
   * @return isStoppable
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_STOPPABLE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsStoppable() {
    return isStoppable;
  }


  @JsonProperty(JSON_PROPERTY_IS_STOPPABLE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsStoppable(Boolean isStoppable) {
    this.isStoppable = isStoppable;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isCompleting(Boolean isCompleting) {
    this.isCompleting = isCompleting;
    return this;
  }

   /**
   * Get isCompleting
   * @return isCompleting
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_COMPLETING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsCompleting() {
    return isCompleting;
  }


  @JsonProperty(JSON_PROPERTY_IS_COMPLETING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsCompleting(Boolean isCompleting) {
    this.isCompleting = isCompleting;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isFailed(Boolean isFailed) {
    this.isFailed = isFailed;
    return this;
  }

   /**
   * Get isFailed
   * @return isFailed
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_FAILED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsFailed() {
    return isFailed;
  }


  @JsonProperty(JSON_PROPERTY_IS_FAILED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsFailed(Boolean isFailed) {
    this.isFailed = isFailed;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isSuccessful(Boolean isSuccessful) {
    this.isSuccessful = isSuccessful;
    return this;
  }

   /**
   * Get isSuccessful
   * @return isSuccessful
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_SUCCESSFUL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsSuccessful() {
    return isSuccessful;
  }


  @JsonProperty(JSON_PROPERTY_IS_SUCCESSFUL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsSuccessful(Boolean isSuccessful) {
    this.isSuccessful = isSuccessful;
  }


  public DominoWorkspaceApiWorkspaceSessionStatusInfo isCompleted(Boolean isCompleted) {
    this.isCompleted = isCompleted;
    return this;
  }

   /**
   * Get isCompleted
   * @return isCompleted
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_IS_COMPLETED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getIsCompleted() {
    return isCompleted;
  }


  @JsonProperty(JSON_PROPERTY_IS_COMPLETED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIsCompleted(Boolean isCompleted) {
    this.isCompleted = isCompleted;
  }


  /**
   * Return true if this domino.workspace.api.WorkspaceSessionStatusInfo object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DominoWorkspaceApiWorkspaceSessionStatusInfo dominoWorkspaceApiWorkspaceSessionStatusInfo = (DominoWorkspaceApiWorkspaceSessionStatusInfo) o;
    return Objects.equals(this.rawExecutionDisplayStatus, dominoWorkspaceApiWorkspaceSessionStatusInfo.rawExecutionDisplayStatus) &&
        Objects.equals(this.rawExecutionDisplayStatusUpdatedAt, dominoWorkspaceApiWorkspaceSessionStatusInfo.rawExecutionDisplayStatusUpdatedAt) &&
        Objects.equals(this.isLoading, dominoWorkspaceApiWorkspaceSessionStatusInfo.isLoading) &&
        Objects.equals(this.isRunning, dominoWorkspaceApiWorkspaceSessionStatusInfo.isRunning) &&
        Objects.equals(this.isStoppable, dominoWorkspaceApiWorkspaceSessionStatusInfo.isStoppable) &&
        Objects.equals(this.isCompleting, dominoWorkspaceApiWorkspaceSessionStatusInfo.isCompleting) &&
        Objects.equals(this.isFailed, dominoWorkspaceApiWorkspaceSessionStatusInfo.isFailed) &&
        Objects.equals(this.isSuccessful, dominoWorkspaceApiWorkspaceSessionStatusInfo.isSuccessful) &&
        Objects.equals(this.isCompleted, dominoWorkspaceApiWorkspaceSessionStatusInfo.isCompleted);
  }

  @Override
  public int hashCode() {
    return Objects.hash(rawExecutionDisplayStatus, rawExecutionDisplayStatusUpdatedAt, isLoading, isRunning, isStoppable, isCompleting, isFailed, isSuccessful, isCompleted);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DominoWorkspaceApiWorkspaceSessionStatusInfo {\n");
    sb.append("    rawExecutionDisplayStatus: ").append(toIndentedString(rawExecutionDisplayStatus)).append("\n");
    sb.append("    rawExecutionDisplayStatusUpdatedAt: ").append(toIndentedString(rawExecutionDisplayStatusUpdatedAt)).append("\n");
    sb.append("    isLoading: ").append(toIndentedString(isLoading)).append("\n");
    sb.append("    isRunning: ").append(toIndentedString(isRunning)).append("\n");
    sb.append("    isStoppable: ").append(toIndentedString(isStoppable)).append("\n");
    sb.append("    isCompleting: ").append(toIndentedString(isCompleting)).append("\n");
    sb.append("    isFailed: ").append(toIndentedString(isFailed)).append("\n");
    sb.append("    isSuccessful: ").append(toIndentedString(isSuccessful)).append("\n");
    sb.append("    isCompleted: ").append(toIndentedString(isCompleted)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  /**
   * Convert the instance into URL query string.
   *
   * @return URL query string
   */
  public String toUrlQueryString() {
    return toUrlQueryString(null);
  }

  /**
   * Convert the instance into URL query string.
   *
   * @param prefix prefix of the query string
   * @return URL query string
   */
  public String toUrlQueryString(String prefix) {
    String suffix = "";
    String containerSuffix = "";
    String containerPrefix = "";
    if (prefix == null) {
      // style=form, explode=true, e.g. /pet?name=cat&type=manx
      prefix = "";
    } else {
      // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
      prefix = prefix + "[";
      suffix = "]";
      containerSuffix = "]";
      containerPrefix = "[";
    }

    StringJoiner joiner = new StringJoiner("&");

    // add `rawExecutionDisplayStatus` to the URL query string
    if (getRawExecutionDisplayStatus() != null) {
      joiner.add(String.format("%srawExecutionDisplayStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRawExecutionDisplayStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `rawExecutionDisplayStatusUpdatedAt` to the URL query string
    if (getRawExecutionDisplayStatusUpdatedAt() != null) {
      joiner.add(String.format("%srawExecutionDisplayStatusUpdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRawExecutionDisplayStatusUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isLoading` to the URL query string
    if (getIsLoading() != null) {
      joiner.add(String.format("%sisLoading%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsLoading()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isRunning` to the URL query string
    if (getIsRunning() != null) {
      joiner.add(String.format("%sisRunning%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsRunning()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isStoppable` to the URL query string
    if (getIsStoppable() != null) {
      joiner.add(String.format("%sisStoppable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsStoppable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isCompleting` to the URL query string
    if (getIsCompleting() != null) {
      joiner.add(String.format("%sisCompleting%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsCompleting()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isFailed` to the URL query string
    if (getIsFailed() != null) {
      joiner.add(String.format("%sisFailed%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsFailed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isSuccessful` to the URL query string
    if (getIsSuccessful() != null) {
      joiner.add(String.format("%sisSuccessful%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsSuccessful()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `isCompleted` to the URL query string
    if (getIsCompleted() != null) {
      joiner.add(String.format("%sisCompleted%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsCompleted()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    return joiner.toString();
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy