com.seeq.model.FormulaUpdateInputV1 Maven / Gradle / Ivy
/*
* 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 io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* FormulaUpdateInputV1
*/
public class FormulaUpdateInputV1 {
@JsonProperty("formula")
private String formula = null;
@JsonProperty("parameters")
private List parameters = new ArrayList();
public FormulaUpdateInputV1 formula(String formula) {
this.formula = formula;
return this;
}
/**
* The formula to be applied
* @return formula
**/
@Schema(required = true, description = "The formula to be applied")
public String getFormula() {
return formula;
}
public void setFormula(String formula) {
this.formula = formula;
}
public FormulaUpdateInputV1 parameters(List parameters) {
this.parameters = parameters;
return this;
}
public FormulaUpdateInputV1 addParametersItem(String parametersItem) {
this.parameters.add(parametersItem);
return this;
}
/**
* Get parameters
* @return parameters
**/
@Schema(required = true, description = "")
public List getParameters() {
return parameters;
}
public void setParameters(List parameters) {
this.parameters = parameters;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FormulaUpdateInputV1 formulaUpdateInputV1 = (FormulaUpdateInputV1) o;
return Objects.equals(this.formula, formulaUpdateInputV1.formula) &&
Objects.equals(this.parameters, formulaUpdateInputV1.parameters);
}
@Override
public int hashCode() {
return Objects.hash(formula, parameters);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FormulaUpdateInputV1 {\n");
sb.append(" formula: ").append(toIndentedString(formula)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).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 ");
}
}