com.seeq.model.FormulaParameterOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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.ItemSearchPreviewV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Formula Parameters used to create the formula
*/
@Schema(description = "Formula Parameters used to create the formula")
public class FormulaParameterOutputV1 {
@JsonProperty("formula")
private String formula = null;
@JsonProperty("item")
private ItemSearchPreviewV1 item = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("unbound")
private Boolean unbound = false;
public FormulaParameterOutputV1 formula(String formula) {
this.formula = formula;
return this;
}
/**
* The formula that defines this parameter if it is unbound or a formula parameter
* @return formula
**/
@Schema(description = "The formula that defines this parameter if it is unbound or a formula parameter")
public String getFormula() {
return formula;
}
public void setFormula(String formula) {
this.formula = formula;
}
public FormulaParameterOutputV1 item(ItemSearchPreviewV1 item) {
this.item = item;
return this;
}
/**
* Get item
* @return item
**/
@Schema(description = "")
public ItemSearchPreviewV1 getItem() {
return item;
}
public void setItem(ItemSearchPreviewV1 item) {
this.item = item;
}
public FormulaParameterOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the parameter as used in the formula without the '$' prefix.
* @return name
**/
@Schema(required = true, description = "The name of the parameter as used in the formula without the '$' prefix.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public FormulaParameterOutputV1 unbound(Boolean unbound) {
this.unbound = unbound;
return this;
}
/**
* Indicate the value of this parameter will be provided at runtime
* @return unbound
**/
@Schema(description = "Indicate the value of this parameter will be provided at runtime")
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;
}
FormulaParameterOutputV1 formulaParameterOutputV1 = (FormulaParameterOutputV1) o;
return Objects.equals(this.formula, formulaParameterOutputV1.formula) &&
Objects.equals(this.item, formulaParameterOutputV1.item) &&
Objects.equals(this.name, formulaParameterOutputV1.name) &&
Objects.equals(this.unbound, formulaParameterOutputV1.unbound);
}
@Override
public int hashCode() {
return Objects.hash(formula, item, name, unbound);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FormulaParameterOutputV1 {\n");
sb.append(" formula: ").append(toIndentedString(formula)).append("\n");
sb.append(" item: ").append(toIndentedString(item)).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 ");
}
}