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

net.leanix.api.models.SurveyResponseData Maven / Gradle / Ivy

There is a newer version: 3.9.32
Show newest version
/*
 * LeanIX Pathfinder REST API
 * Core application for storage and analysis of IT landscape data
 *
 * OpenAPI spec version: 4.0.217
 * 
 *
 * 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 net.leanix.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import net.leanix.api.models.FactSheetReference;
import net.leanix.api.models.PollReference;
import net.leanix.api.models.PollRunReference;
import net.leanix.api.models.UserReference;

/**
 * SurveyResponseData
 */

public class SurveyResponseData {
  @JsonProperty("poll")
  private PollReference poll = null;

  @JsonProperty("pollRun")
  private PollRunReference pollRun = null;

  @JsonProperty("creator")
  private UserReference creator = null;

  @JsonProperty("factSheets")
  private List factSheets = new ArrayList();

  public SurveyResponseData poll(PollReference poll) {
    this.poll = poll;
    return this;
  }

   /**
   * Get poll
   * @return poll
  **/
  @ApiModelProperty(example = "null", value = "")
  public PollReference getPoll() {
    return poll;
  }

  public void setPoll(PollReference poll) {
    this.poll = poll;
  }

  public SurveyResponseData pollRun(PollRunReference pollRun) {
    this.pollRun = pollRun;
    return this;
  }

   /**
   * Get pollRun
   * @return pollRun
  **/
  @ApiModelProperty(example = "null", value = "")
  public PollRunReference getPollRun() {
    return pollRun;
  }

  public void setPollRun(PollRunReference pollRun) {
    this.pollRun = pollRun;
  }

  public SurveyResponseData creator(UserReference creator) {
    this.creator = creator;
    return this;
  }

   /**
   * Get creator
   * @return creator
  **/
  @ApiModelProperty(example = "null", value = "")
  public UserReference getCreator() {
    return creator;
  }

  public void setCreator(UserReference creator) {
    this.creator = creator;
  }

  public SurveyResponseData factSheets(List factSheets) {
    this.factSheets = factSheets;
    return this;
  }

  public SurveyResponseData addFactSheetsItem(FactSheetReference factSheetsItem) {
    this.factSheets.add(factSheetsItem);
    return this;
  }

   /**
   * Get factSheets
   * @return factSheets
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getFactSheets() {
    return factSheets;
  }

  public void setFactSheets(List factSheets) {
    this.factSheets = factSheets;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SurveyResponseData surveyResponseData = (SurveyResponseData) o;
    return Objects.equals(this.poll, surveyResponseData.poll) &&
        Objects.equals(this.pollRun, surveyResponseData.pollRun) &&
        Objects.equals(this.creator, surveyResponseData.creator) &&
        Objects.equals(this.factSheets, surveyResponseData.factSheets);
  }

  @Override
  public int hashCode() {
    return Objects.hash(poll, pollRun, creator, factSheets);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SurveyResponseData {\n");
    
    sb.append("    poll: ").append(toIndentedString(poll)).append("\n");
    sb.append("    pollRun: ").append(toIndentedString(pollRun)).append("\n");
    sb.append("    creator: ").append(toIndentedString(creator)).append("\n");
    sb.append("    factSheets: ").append(toIndentedString(factSheets)).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 - 2025 Weber Informatics LLC | Privacy Policy