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

com.seeq.model.FormulaCompileOutputV1 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: 64.3.0-v202405012032
 * 
 *
 * 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 com.seeq.model.FormulaCompilerErrorOutputV1;
import com.seeq.model.FormulaUpgradeOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * FormulaCompileOutputV1
 */
public class FormulaCompileOutputV1 {
  @JsonProperty("errors")
  private List errors = new ArrayList();

  @JsonProperty("metadata")
  private Map metadata = new HashMap();

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

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

  @JsonProperty("upgradeDetails")
  private FormulaUpgradeOutputV1 upgradeDetails = null;

  public FormulaCompileOutputV1 errors(List errors) {
    this.errors = errors;
    return this;
  }

  public FormulaCompileOutputV1 addErrorsItem(FormulaCompilerErrorOutputV1 errorsItem) {
    if (this.errors == null) {
      this.errors = new ArrayList();
    }
    this.errors.add(errorsItem);
    return this;
  }

   /**
   * Errors (if any) from the formula
   * @return errors
  **/
  @Schema(description = "Errors (if any) from the formula")
  public List getErrors() {
    return errors;
  }

  public void setErrors(List errors) {
    this.errors = errors;
  }

  public FormulaCompileOutputV1 metadata(Map metadata) {
    this.metadata = metadata;
    return this;
  }

  public FormulaCompileOutputV1 putMetadataItem(String key, String metadataItem) {
    if (this.metadata == null) {
      this.metadata = new HashMap();
    }
    this.metadata.put(key, metadataItem);
    return this;
  }

   /**
   * Metadata describing the compiled formula's result
   * @return metadata
  **/
  @Schema(description = "Metadata describing the compiled formula's result")
  public Map getMetadata() {
    return metadata;
  }

  public void setMetadata(Map metadata) {
    this.metadata = metadata;
  }

  public FormulaCompileOutputV1 returnType(String returnType) {
    this.returnType = returnType;
    return this;
  }

   /**
   * The data type of the compiled formula's result
   * @return returnType
  **/
  @Schema(description = "The data type of the compiled formula's result")
  public String getReturnType() {
    return returnType;
  }

  public void setReturnType(String returnType) {
    this.returnType = returnType;
  }

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

  public FormulaCompileOutputV1 upgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
    this.upgradeDetails = upgradeDetails;
    return this;
  }

   /**
   * Get upgradeDetails
   * @return upgradeDetails
  **/
  @Schema(description = "")
  public FormulaUpgradeOutputV1 getUpgradeDetails() {
    return upgradeDetails;
  }

  public void setUpgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
    this.upgradeDetails = upgradeDetails;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FormulaCompileOutputV1 formulaCompileOutputV1 = (FormulaCompileOutputV1) o;
    return Objects.equals(this.errors, formulaCompileOutputV1.errors) &&
        Objects.equals(this.metadata, formulaCompileOutputV1.metadata) &&
        Objects.equals(this.returnType, formulaCompileOutputV1.returnType) &&
        Objects.equals(this.statusMessage, formulaCompileOutputV1.statusMessage) &&
        Objects.equals(this.upgradeDetails, formulaCompileOutputV1.upgradeDetails);
  }

  @Override
  public int hashCode() {
    return Objects.hash(errors, metadata, returnType, statusMessage, upgradeDetails);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FormulaCompileOutputV1 {\n");
    
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    returnType: ").append(toIndentedString(returnType)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    upgradeDetails: ").append(toIndentedString(upgradeDetails)).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