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

fi.otavanopisto.restfulptv.server.rest.model.StatutoryDescription Maven / Gradle / Ivy

package fi.otavanopisto.restfulptv.server.rest.model;

import fi.otavanopisto.restfulptv.server.rest.model.FintoItem;
import fi.otavanopisto.restfulptv.server.rest.model.LocalizedListItem;
import java.util.ArrayList;
import java.util.List;



import io.swagger.annotations.*;
import java.util.Objects;


public class StatutoryDescription   {
  
  private String id = null;
  private List names = new ArrayList();
  private List descriptions = new ArrayList();
  private List languages = new ArrayList();
  private List serviceClasses = new ArrayList();
  private List ontologyTerms = new ArrayList();
  private List targetGroups = new ArrayList();
  private List lifeEvents = new ArrayList();

  /**
   **/
  public StatutoryDescription id(String id) {
    this.id = id;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }

  /**
   **/
  public StatutoryDescription names(List names) {
    this.names = names;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getNames() {
    return names;
  }
  public void setNames(List names) {
    this.names = names;
  }

  /**
   **/
  public StatutoryDescription descriptions(List descriptions) {
    this.descriptions = descriptions;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getDescriptions() {
    return descriptions;
  }
  public void setDescriptions(List descriptions) {
    this.descriptions = descriptions;
  }

  /**
   **/
  public StatutoryDescription languages(List languages) {
    this.languages = languages;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getLanguages() {
    return languages;
  }
  public void setLanguages(List languages) {
    this.languages = languages;
  }

  /**
   **/
  public StatutoryDescription serviceClasses(List serviceClasses) {
    this.serviceClasses = serviceClasses;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getServiceClasses() {
    return serviceClasses;
  }
  public void setServiceClasses(List serviceClasses) {
    this.serviceClasses = serviceClasses;
  }

  /**
   **/
  public StatutoryDescription ontologyTerms(List ontologyTerms) {
    this.ontologyTerms = ontologyTerms;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getOntologyTerms() {
    return ontologyTerms;
  }
  public void setOntologyTerms(List ontologyTerms) {
    this.ontologyTerms = ontologyTerms;
  }

  /**
   **/
  public StatutoryDescription targetGroups(List targetGroups) {
    this.targetGroups = targetGroups;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getTargetGroups() {
    return targetGroups;
  }
  public void setTargetGroups(List targetGroups) {
    this.targetGroups = targetGroups;
  }

  /**
   **/
  public StatutoryDescription lifeEvents(List lifeEvents) {
    this.lifeEvents = lifeEvents;
    return this;
  }

  
  @ApiModelProperty(example = "null", value = "")
  public List getLifeEvents() {
    return lifeEvents;
  }
  public void setLifeEvents(List lifeEvents) {
    this.lifeEvents = lifeEvents;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatutoryDescription statutoryDescription = (StatutoryDescription) o;
    return Objects.equals(id, statutoryDescription.id) &&
        Objects.equals(names, statutoryDescription.names) &&
        Objects.equals(descriptions, statutoryDescription.descriptions) &&
        Objects.equals(languages, statutoryDescription.languages) &&
        Objects.equals(serviceClasses, statutoryDescription.serviceClasses) &&
        Objects.equals(ontologyTerms, statutoryDescription.ontologyTerms) &&
        Objects.equals(targetGroups, statutoryDescription.targetGroups) &&
        Objects.equals(lifeEvents, statutoryDescription.lifeEvents);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, names, descriptions, languages, serviceClasses, ontologyTerms, targetGroups, lifeEvents);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatutoryDescription {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    names: ").append(toIndentedString(names)).append("\n");
    sb.append("    descriptions: ").append(toIndentedString(descriptions)).append("\n");
    sb.append("    languages: ").append(toIndentedString(languages)).append("\n");
    sb.append("    serviceClasses: ").append(toIndentedString(serviceClasses)).append("\n");
    sb.append("    ontologyTerms: ").append(toIndentedString(ontologyTerms)).append("\n");
    sb.append("    targetGroups: ").append(toIndentedString(targetGroups)).append("\n");
    sb.append("    lifeEvents: ").append(toIndentedString(lifeEvents)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy