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

com.seeq.model.FormulaParameterInputV1 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * Any parameters that should be placed in the context of the executing formula. At least one unbound parameter is required.
 */
@Schema(description = "Any parameters that should be placed in the context of the executing formula. At least one unbound parameter is required.")
public class FormulaParameterInputV1 {
  @JsonProperty("formula")
  private String formula = null;

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

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

  @JsonProperty("unbound")
  private Boolean unbound = false;

  public FormulaParameterInputV1 formula(String formula) {
    this.formula = formula;
    return this;
  }

   /**
   * The formula that defines this parameter. This is required if 'unbound' is true. This field or 'id' must be specified
   * @return formula
  **/
  @Schema(description = "The formula that defines this parameter. This is required if 'unbound' is true. This field or 'id' must be specified")
  public String getFormula() {
    return formula;
  }

  public void setFormula(String formula) {
    this.formula = formula;
  }

  public FormulaParameterInputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID of the item that is the value of this parameter. This can't be specified if 'unbound' is true. This field or 'formula' must be specified
   * @return id
  **/
  @Schema(description = "The ID of the item that is the value of this parameter. This can't be specified if 'unbound' is true. This field or 'formula' must be specified")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public FormulaParameterInputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The name of the parameter as used in the formula. It should not include the '$' prefix
   * @return name
  **/
  @Schema(required = true, description = "The name of the parameter as used in the formula. It should not include the '$' prefix")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public FormulaParameterInputV1 unbound(Boolean unbound) {
    this.unbound = unbound;
    return this;
  }

   /**
   * Indicate the value of this parameter will be provided at runtime. When true, it requires a sample formula to be specified in the 'formula' field so that the validity of the entire function can be validated. Default is false
   * @return unbound
  **/
  @Schema(description = "Indicate the value of this parameter will be provided at runtime. When true, it requires a sample formula to be specified in the 'formula' field so that the validity of the entire function can be validated. Default is false")
  public Boolean getUnbound() {
    return unbound;
  }

  public void setUnbound(Boolean unbound) {
    this.unbound = unbound;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FormulaParameterInputV1 formulaParameterInputV1 = (FormulaParameterInputV1) o;
    return Objects.equals(this.formula, formulaParameterInputV1.formula) &&
        Objects.equals(this.id, formulaParameterInputV1.id) &&
        Objects.equals(this.name, formulaParameterInputV1.name) &&
        Objects.equals(this.unbound, formulaParameterInputV1.unbound);
  }

  @Override
  public int hashCode() {
    return Objects.hash(formula, id, name, unbound);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FormulaParameterInputV1 {\n");
    
    sb.append("    formula: ").append(toIndentedString(formula)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    unbound: ").append(toIndentedString(unbound)).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