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

com.seeq.model.FormulaPackageImportInputV1 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: 63.1.6-v202409101657
 * 
 *
 * 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.FormulaDocInputV1;
import com.seeq.model.FormulaPackageInputV1;
import com.seeq.model.FunctionInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * FormulaPackageImportInputV1
 */
public class FormulaPackageImportInputV1 {
  @JsonProperty("docs")
  private List docs = new ArrayList();

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

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

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

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

  public FormulaPackageImportInputV1 addDocsItem(FormulaDocInputV1 docsItem) {
    this.docs.add(docsItem);
    return this;
  }

   /**
   * The list of docs to be added or modified
   * @return docs
  **/
  @Schema(required = true, description = "The list of docs to be added or modified")
  public List getDocs() {
    return docs;
  }

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

  public FormulaPackageImportInputV1 formulaPackage(FormulaPackageInputV1 formulaPackage) {
    this.formulaPackage = formulaPackage;
    return this;
  }

   /**
   * Get formulaPackage
   * @return formulaPackage
  **/
  @Schema(required = true, description = "")
  public FormulaPackageInputV1 getFormulaPackage() {
    return formulaPackage;
  }

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

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

  public FormulaPackageImportInputV1 addFunctionsItem(FunctionInputV1 functionsItem) {
    this.functions.add(functionsItem);
    return this;
  }

   /**
   * The list of functions to be added or modified
   * @return functions
  **/
  @Schema(required = true, description = "The list of functions to be added or modified")
  public List getFunctions() {
    return functions;
  }

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

  public FormulaPackageImportInputV1 syncToken(String syncToken) {
    this.syncToken = syncToken;
    return this;
  }

   /**
   * An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API. This token will be applied to the package, function, and doc items in this import overriding any token value that may have been set in those.
   * @return syncToken
  **/
  @Schema(description = "An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API. This token will be applied to the package, function, and doc items in this import overriding any token value that may have been set in those.")
  public String getSyncToken() {
    return syncToken;
  }

  public void setSyncToken(String syncToken) {
    this.syncToken = syncToken;
  }


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

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


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