de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModelModelMath.java
/*
* RAKIP Generic model
* TODO
*
* OpenAPI spec version: 1.0.4
*
*
* 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 de.bund.bfr.metadata.swagger;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import de.bund.bfr.metadata.swagger.Exposure;
import de.bund.bfr.metadata.swagger.ModelEquation;
import de.bund.bfr.metadata.swagger.Parameter;
import de.bund.bfr.metadata.swagger.QualityMeasures;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* GenericModelModelMath
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class GenericModelModelMath {
@SerializedName("parameter")
private List<Parameter> parameter = new ArrayList<Parameter>();
@SerializedName("qualityMeasures")
private List<QualityMeasures> qualityMeasures = null;
@SerializedName("modelEquation")
private List<ModelEquation> modelEquation = null;
@SerializedName("fittingProcedure")
private String fittingProcedure = null;
@SerializedName("exposure")
private List<Exposure> exposure = null;
@SerializedName("event")
private List<String> event = null;
public GenericModelModelMath parameter(List<Parameter> parameter) {
this.parameter = parameter;
return this;
}
public GenericModelModelMath addParameterItem(Parameter parameterItem) {
this.parameter.add(parameterItem);
return this;
}
/**
* Get parameter
* @return parameter
**/
@ApiModelProperty(required = true, value = "")
public List<Parameter> getParameter() {
return parameter;
}
public void setParameter(List<Parameter> parameter) {
this.parameter = parameter;
}
public GenericModelModelMath qualityMeasures(List<QualityMeasures> qualityMeasures) {
this.qualityMeasures = qualityMeasures;
return this;
}
public GenericModelModelMath addQualityMeasuresItem(QualityMeasures qualityMeasuresItem) {
if (this.qualityMeasures == null) {
this.qualityMeasures = new ArrayList<QualityMeasures>();
}
this.qualityMeasures.add(qualityMeasuresItem);
return this;
}
/**
* Get qualityMeasures
* @return qualityMeasures
**/
@ApiModelProperty(value = "")
public List<QualityMeasures> getQualityMeasures() {
return qualityMeasures;
}
public void setQualityMeasures(List<QualityMeasures> qualityMeasures) {
this.qualityMeasures = qualityMeasures;
}
public GenericModelModelMath modelEquation(List<ModelEquation> modelEquation) {
this.modelEquation = modelEquation;
return this;
}
public GenericModelModelMath addModelEquationItem(ModelEquation modelEquationItem) {
if (this.modelEquation == null) {
this.modelEquation = new ArrayList<ModelEquation>();
}
this.modelEquation.add(modelEquationItem);
return this;
}
/**
* Get modelEquation
* @return modelEquation
**/
@ApiModelProperty(value = "")
public List<ModelEquation> getModelEquation() {
return modelEquation;
}
public void setModelEquation(List<ModelEquation> modelEquation) {
this.modelEquation = modelEquation;
}
public GenericModelModelMath fittingProcedure(String fittingProcedure) {
this.fittingProcedure = fittingProcedure;
return this;
}
/**
* Get fittingProcedure
* @return fittingProcedure
**/
@ApiModelProperty(value = "")
public String getFittingProcedure() {
return fittingProcedure;
}
public void setFittingProcedure(String fittingProcedure) {
this.fittingProcedure = fittingProcedure;
}
public GenericModelModelMath exposure(List<Exposure> exposure) {
this.exposure = exposure;
return this;
}
public GenericModelModelMath addExposureItem(Exposure exposureItem) {
if (this.exposure == null) {
this.exposure = new ArrayList<Exposure>();
}
this.exposure.add(exposureItem);
return this;
}
/**
* Get exposure
* @return exposure
**/
@ApiModelProperty(value = "")
public List<Exposure> getExposure() {
return exposure;
}
public void setExposure(List<Exposure> exposure) {
this.exposure = exposure;
}
public GenericModelModelMath event(List<String> event) {
this.event = event;
return this;
}
public GenericModelModelMath addEventItem(String eventItem) {
if (this.event == null) {
this.event = new ArrayList<String>();
}
this.event.add(eventItem);
return this;
}
/**
* Get event
* @return event
**/
@ApiModelProperty(value = "")
public List<String> getEvent() {
return event;
}
public void setEvent(List<String> event) {
this.event = event;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GenericModelModelMath genericModelModelMath = (GenericModelModelMath) o;
return Objects.equals(this.parameter, genericModelModelMath.parameter) &&
Objects.equals(this.qualityMeasures, genericModelModelMath.qualityMeasures) &&
Objects.equals(this.modelEquation, genericModelModelMath.modelEquation) &&
Objects.equals(this.fittingProcedure, genericModelModelMath.fittingProcedure) &&
Objects.equals(this.exposure, genericModelModelMath.exposure) &&
Objects.equals(this.event, genericModelModelMath.event);
}
@Override
public int hashCode() {
return Objects.hash(parameter, qualityMeasures, modelEquation, fittingProcedure, exposure, event);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GenericModelModelMath {\n");
sb.append(" parameter: ").append(toIndentedString(parameter)).append("\n");
sb.append(" qualityMeasures: ").append(toIndentedString(qualityMeasures)).append("\n");
sb.append(" modelEquation: ").append(toIndentedString(modelEquation)).append("\n");
sb.append(" fittingProcedure: ").append(toIndentedString(fittingProcedure)).append("\n");
sb.append(" exposure: ").append(toIndentedString(exposure)).append("\n");
sb.append(" event: ").append(toIndentedString(event)).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 ");
}
}