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

com.seeq.model.FormulaPackageImportOutputV1 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: 65.1.3-v202408082312
 * 
 *
 * 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.CalculatedItemOutputV1;
import com.seeq.model.FormulaDocOutputV1;
import com.seeq.model.FormulaPackageOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * FormulaPackageImportOutputV1
 */
public class FormulaPackageImportOutputV1 {
  @JsonProperty("docs")
  private List docs = new ArrayList();

  @JsonProperty("errors")
  private List errors = new ArrayList();

  @JsonProperty("formulaPackage")
  private FormulaPackageOutputV1 formulaPackage = null;

  @JsonProperty("functions")
  private List functions = new ArrayList();

  public FormulaPackageImportOutputV1 docs(List docs) {
    this.docs = docs;
    return this;
  }

  public FormulaPackageImportOutputV1 addDocsItem(FormulaDocOutputV1 docsItem) {
    if (this.docs == null) {
      this.docs = new ArrayList();
    }
    this.docs.add(docsItem);
    return this;
  }

   /**
   * The list of results from doc updates. The Nth output corresponds to the Nth input.
   * @return docs
  **/
  @Schema(description = "The list of results from doc updates. The Nth output corresponds to the Nth input.")
  public List getDocs() {
    return docs;
  }

  public void setDocs(List docs) {
    this.docs = docs;
  }

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

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

   /**
   * If there were any errors during sync, they will be listed here and the other objects will be empty.
   * @return errors
  **/
  @Schema(description = "If there were any errors during sync, they will be listed here and the other objects will be empty.")
  public List getErrors() {
    return errors;
  }

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

  public FormulaPackageImportOutputV1 formulaPackage(FormulaPackageOutputV1 formulaPackage) {
    this.formulaPackage = formulaPackage;
    return this;
  }

   /**
   * Get formulaPackage
   * @return formulaPackage
  **/
  @Schema(description = "")
  public FormulaPackageOutputV1 getFormulaPackage() {
    return formulaPackage;
  }

  public void setFormulaPackage(FormulaPackageOutputV1 formulaPackage) {
    this.formulaPackage = formulaPackage;
  }

  public FormulaPackageImportOutputV1 functions(List functions) {
    this.functions = functions;
    return this;
  }

  public FormulaPackageImportOutputV1 addFunctionsItem(CalculatedItemOutputV1 functionsItem) {
    if (this.functions == null) {
      this.functions = new ArrayList();
    }
    this.functions.add(functionsItem);
    return this;
  }

   /**
   * The list of results from the function updates. The Nth output corresponds to the Nth input.
   * @return functions
  **/
  @Schema(description = "The list of results from the function updates. The Nth output corresponds to the Nth input.")
  public List getFunctions() {
    return functions;
  }

  public void setFunctions(List functions) {
    this.functions = functions;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FormulaPackageImportOutputV1 formulaPackageImportOutputV1 = (FormulaPackageImportOutputV1) o;
    return Objects.equals(this.docs, formulaPackageImportOutputV1.docs) &&
        Objects.equals(this.errors, formulaPackageImportOutputV1.errors) &&
        Objects.equals(this.formulaPackage, formulaPackageImportOutputV1.formulaPackage) &&
        Objects.equals(this.functions, formulaPackageImportOutputV1.functions);
  }

  @Override
  public int hashCode() {
    return Objects.hash(docs, errors, formulaPackage, functions);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FormulaPackageImportOutputV1 {\n");
    
    sb.append("    docs: ").append(toIndentedString(docs)).append("\n");
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
    sb.append("    formulaPackage: ").append(toIndentedString(formulaPackage)).append("\n");
    sb.append("    functions: ").append(toIndentedString(functions)).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