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

com.seeq.model.FormulaCompilerErrorOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.4.1-v202409112255
 * 
 *
 * 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;
/**
 * Errors (if any) from the formula
 */
@Schema(description = "Errors (if any) from the formula")
public class FormulaCompilerErrorOutputV1 {
  @JsonProperty("column")
  private Integer column = null;

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

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

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

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

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

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

  public FormulaCompilerErrorOutputV1 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 FormulaCompilerErrorOutputV1 errorCategory(String 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 String getErrorCategory() {
    return errorCategory;
  }

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

  public FormulaCompilerErrorOutputV1 errorType(String 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 String getErrorType() {
    return errorType;
  }

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

  public FormulaCompilerErrorOutputV1 functionId(String functionId) {
    this.functionId = functionId;
    return this;
  }

   /**
   * The function where the error occurred
   * @return functionId
  **/
  @Schema(description = "The function where the error occurred")
  public String getFunctionId() {
    return functionId;
  }

  public void setFunctionId(String functionId) {
    this.functionId = functionId;
  }

  public FormulaCompilerErrorOutputV1 itemId(String itemId) {
    this.itemId = itemId;
    return this;
  }

   /**
   * The itemId that is the cause of the error
   * @return itemId
  **/
  @Schema(description = "The itemId that is the cause of the error")
  public String getItemId() {
    return itemId;
  }

  public void setItemId(String itemId) {
    this.itemId = itemId;
  }

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


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

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FormulaCompilerErrorOutputV1 {\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("    functionId: ").append(toIndentedString(functionId)).append("\n");
    sb.append("    itemId: ").append(toIndentedString(itemId)).append("\n");
    sb.append("    line: ").append(toIndentedString(line)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).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