SiLeBAT/FSK-Lab

View on GitHub
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/Exposure.java

Summary

Maintainability
A
3 hrs
Test Coverage
/*
 * 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Exposure
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class Exposure {
  @SerializedName("treatment")
  private List<String> treatment = null;

  @SerializedName("contamination")
  private List<String> contamination = null;

  @SerializedName("type")
  private String type = null;

  @SerializedName("scenario")
  private List<String> scenario = null;

  @SerializedName("uncertaintyEstimation")
  private String uncertaintyEstimation = null;

  public Exposure treatment(List<String> treatment) {
    this.treatment = treatment;
    return this;
  }

  public Exposure addTreatmentItem(String treatmentItem) {
    if (this.treatment == null) {
      this.treatment = new ArrayList<String>();
    }
    this.treatment.add(treatmentItem);
    return this;
  }

   /**
   * Methodological treatment of left-censored data
   * @return treatment
  **/
  @ApiModelProperty(value = "Methodological treatment of left-censored data")
  public List<String> getTreatment() {
    return treatment;
  }

  public void setTreatment(List<String> treatment) {
    this.treatment = treatment;
  }

  public Exposure contamination(List<String> contamination) {
    this.contamination = contamination;
    return this;
  }

  public Exposure addContaminationItem(String contaminationItem) {
    if (this.contamination == null) {
      this.contamination = new ArrayList<String>();
    }
    this.contamination.add(contaminationItem);
    return this;
  }

   /**
   * Level of contamination after left-censored data treatment
   * @return contamination
  **/
  @ApiModelProperty(value = "Level of contamination after left-censored data treatment")
  public List<String> getContamination() {
    return contamination;
  }

  public void setContamination(List<String> contamination) {
    this.contamination = contamination;
  }

  public Exposure type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Type of exposure
   * @return type
  **/
  @ApiModelProperty(required = true, value = "Type of exposure")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Exposure scenario(List<String> scenario) {
    this.scenario = scenario;
    return this;
  }

  public Exposure addScenarioItem(String scenarioItem) {
    if (this.scenario == null) {
      this.scenario = new ArrayList<String>();
    }
    this.scenario.add(scenarioItem);
    return this;
  }

   /**
   * Get scenario
   * @return scenario
  **/
  @ApiModelProperty(value = "")
  public List<String> getScenario() {
    return scenario;
  }

  public void setScenario(List<String> scenario) {
    this.scenario = scenario;
  }

  public Exposure uncertaintyEstimation(String uncertaintyEstimation) {
    this.uncertaintyEstimation = uncertaintyEstimation;
    return this;
  }

   /**
   * Uncertainty estimation
   * @return uncertaintyEstimation
  **/
  @ApiModelProperty(value = "Uncertainty estimation")
  public String getUncertaintyEstimation() {
    return uncertaintyEstimation;
  }

  public void setUncertaintyEstimation(String uncertaintyEstimation) {
    this.uncertaintyEstimation = uncertaintyEstimation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Exposure exposure = (Exposure) o;
    return Objects.equals(this.treatment, exposure.treatment) &&
        Objects.equals(this.contamination, exposure.contamination) &&
        Objects.equals(this.type, exposure.type) &&
        Objects.equals(this.scenario, exposure.scenario) &&
        Objects.equals(this.uncertaintyEstimation, exposure.uncertaintyEstimation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(treatment, contamination, type, scenario, uncertaintyEstimation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Exposure {\n");
    
    sb.append("    treatment: ").append(toIndentedString(treatment)).append("\n");
    sb.append("    contamination: ").append(toIndentedString(contamination)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    scenario: ").append(toIndentedString(scenario)).append("\n");
    sb.append("    uncertaintyEstimation: ").append(toIndentedString(uncertaintyEstimation)).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    ");
  }

}