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

com.seeq.model.FormulaErrorOutputV1 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;
/**
 * FormulaErrorOutputV1
 */
public class FormulaErrorOutputV1 {
  @JsonProperty("column")
  private Integer column = null;

  /**
   * The category of the formula error, i.e. when it was encountered
   */
  public enum ErrorCategoryEnum {
    SYNTAX("SYNTAX"),
    METADATA("METADATA"),
    RUNTIME("RUNTIME"),
    UPSTREAM("UPSTREAM");

    private String value;

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

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

  }  @JsonProperty("errorCategory")
  private ErrorCategoryEnum errorCategory = null;

  /**
   * The type of formula error that occurred
   */
  public enum ErrorTypeEnum {
    SYNTAX_ERROR("SYNTAX_ERROR"),
    METADATA_ERROR("METADATA_ERROR"),
    DATA_SPEC_ERROR("DATA_SPEC_ERROR"),
    RUNTIME_ERROR("RUNTIME_ERROR"),
    INCOMPATIBLE_UNITS("INCOMPATIBLE_UNITS"),
    MAX_DURATION_REQUIRED("MAX_DURATION_REQUIRED"),
    MAX_DURATION_PROHIBITED("MAX_DURATION_PROHIBITED"),
    CONTINUOUS_REQUIRED("CONTINUOUS_REQUIRED"),
    PROPERTY_ERROR("PROPERTY_ERROR"),
    LOCALLY_CONSTANT("LOCALLY_CONSTANT"),
    ILLEGAL_VALUE("ILLEGAL_VALUE"),
    ILLEGAL_PARAMETER("ILLEGAL_PARAMETER"),
    UPSTREAM_ERROR("UPSTREAM_ERROR");

    private String value;

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

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

  }  @JsonProperty("errorType")
  private ErrorTypeEnum errorType = null;

  @JsonProperty("line")
  private Integer line = null;

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

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

  public FormulaErrorOutputV1 column(Integer column) {
    this.column = column;
    return this;
  }

   /**
   * The column of the formula that resulted in an error
   * @return column
  **/
  @Schema(description = "The column of the formula that resulted in an error")
  public Integer getColumn() {
    return column;
  }

  public void setColumn(Integer column) {
    this.column = column;
  }

  public FormulaErrorOutputV1 errorCategory(ErrorCategoryEnum errorCategory) {
    this.errorCategory = errorCategory;
    return this;
  }

   /**
   * The category of the formula error, i.e. when it was encountered
   * @return errorCategory
  **/
  @Schema(description = "The category of the formula error, i.e. when it was encountered")
  public ErrorCategoryEnum getErrorCategory() {
    return errorCategory;
  }

  public void setErrorCategory(ErrorCategoryEnum errorCategory) {
    this.errorCategory = errorCategory;
  }

  public FormulaErrorOutputV1 errorType(ErrorTypeEnum errorType) {
    this.errorType = errorType;
    return this;
  }

   /**
   * The type of formula error that occurred
   * @return errorType
  **/
  @Schema(description = "The type of formula error that occurred")
  public ErrorTypeEnum getErrorType() {
    return errorType;
  }

  public void setErrorType(ErrorTypeEnum errorType) {
    this.errorType = errorType;
  }

  public FormulaErrorOutputV1 line(Integer line) {
    this.line = line;
    return this;
  }

   /**
   * The line of the formula that resulted in an error
   * @return line
  **/
  @Schema(description = "The line of the formula that resulted in an error")
  public Integer getLine() {
    return line;
  }

  public void setLine(Integer line) {
    this.line = line;
  }

  public FormulaErrorOutputV1 message(String message) {
    this.message = message;
    return this;
  }

   /**
   * An error message for the compiled formula
   * @return message
  **/
  @Schema(description = "An error message for the compiled formula")
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public FormulaErrorOutputV1 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;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FormulaErrorOutputV1 formulaErrorOutputV1 = (FormulaErrorOutputV1) o;
    return Objects.equals(this.column, formulaErrorOutputV1.column) &&
        Objects.equals(this.errorCategory, formulaErrorOutputV1.errorCategory) &&
        Objects.equals(this.errorType, formulaErrorOutputV1.errorType) &&
        Objects.equals(this.line, formulaErrorOutputV1.line) &&
        Objects.equals(this.message, formulaErrorOutputV1.message) &&
        Objects.equals(this.statusMessage, formulaErrorOutputV1.statusMessage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(column, errorCategory, errorType, line, message, statusMessage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FormulaErrorOutputV1 {\n");
    
    sb.append("    column: ").append(toIndentedString(column)).append("\n");
    sb.append("    errorCategory: ").append(toIndentedString(errorCategory)).append("\n");
    sb.append("    errorType: ").append(toIndentedString(errorType)).append("\n");
    sb.append("    line: ").append(toIndentedString(line)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).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