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

fi.metatavu.restfulptv.client.model.StatutoryDescription Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
/**
 * RESTful PTV
 * Restful way to use Palvelutietovaranto.
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package fi.metatavu.restfulptv.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import fi.metatavu.restfulptv.client.model.FintoItem;
import fi.metatavu.restfulptv.client.model.LanguageItem;
import fi.metatavu.restfulptv.client.model.Law;
import fi.metatavu.restfulptv.client.model.LocalizedListItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;


@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
/**
 * StatutoryDescription
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-11T07:17:18.637+03:00")
public class StatutoryDescription   {
  @JsonProperty("id")
  private String id = null;

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

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

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

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

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

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

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

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

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

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

  @JsonProperty("serviceChargeType")
  private String serviceChargeType = null;

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

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

   /**
   * Entity Guid identifier.
   * @return id
  **/
  @ApiModelProperty(example = "null", value = "Entity Guid identifier.")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

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

  public StatutoryDescription addNamesItem(LocalizedListItem namesItem) {
    this.names.add(namesItem);
    return this;
  }

   /**
   * List of localized names.
   * @return names
  **/
  @ApiModelProperty(example = "null", value = "List of localized names.")
  public List getNames() {
    return names;
  }

  public void setNames(List names) {
    this.names = names;
  }

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

  public StatutoryDescription addDescriptionsItem(LocalizedListItem descriptionsItem) {
    this.descriptions.add(descriptionsItem);
    return this;
  }

   /**
   * List of localized descriptions.
   * @return descriptions
  **/
  @ApiModelProperty(example = "null", value = "List of localized descriptions.")
  public List getDescriptions() {
    return descriptions;
  }

  public void setDescriptions(List descriptions) {
    this.descriptions = descriptions;
  }

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

  public StatutoryDescription addLanguagesItem(String languagesItem) {
    this.languages.add(languagesItem);
    return this;
  }

   /**
   * List of statutory service general description languages.
   * @return languages
  **/
  @ApiModelProperty(example = "null", value = "List of statutory service general description languages.")
  public List getLanguages() {
    return languages;
  }

  public void setLanguages(List languages) {
    this.languages = languages;
  }

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

  public StatutoryDescription addServiceClassesItem(FintoItem serviceClassesItem) {
    this.serviceClasses.add(serviceClassesItem);
    return this;
  }

   /**
   * List of service classes.
   * @return serviceClasses
  **/
  @ApiModelProperty(example = "null", value = "List of service classes.")
  public List getServiceClasses() {
    return serviceClasses;
  }

  public void setServiceClasses(List serviceClasses) {
    this.serviceClasses = serviceClasses;
  }

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

  public StatutoryDescription addOntologyTermsItem(FintoItem ontologyTermsItem) {
    this.ontologyTerms.add(ontologyTermsItem);
    return this;
  }

   /**
   * List of ontology terms.
   * @return ontologyTerms
  **/
  @ApiModelProperty(example = "null", value = "List of ontology terms.")
  public List getOntologyTerms() {
    return ontologyTerms;
  }

  public void setOntologyTerms(List ontologyTerms) {
    this.ontologyTerms = ontologyTerms;
  }

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

  public StatutoryDescription addTargetGroupsItem(FintoItem targetGroupsItem) {
    this.targetGroups.add(targetGroupsItem);
    return this;
  }

   /**
   * List of target groups.
   * @return targetGroups
  **/
  @ApiModelProperty(example = "null", value = "List of target groups.")
  public List getTargetGroups() {
    return targetGroups;
  }

  public void setTargetGroups(List targetGroups) {
    this.targetGroups = targetGroups;
  }

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

  public StatutoryDescription addLifeEventsItem(FintoItem lifeEventsItem) {
    this.lifeEvents.add(lifeEventsItem);
    return this;
  }

   /**
   * List of life events.
   * @return lifeEvents
  **/
  @ApiModelProperty(example = "null", value = "List of life events.")
  public List getLifeEvents() {
    return lifeEvents;
  }

  public void setLifeEvents(List lifeEvents) {
    this.lifeEvents = lifeEvents;
  }

  public StatutoryDescription industrialClasses(List industrialClasses) {
    this.industrialClasses = industrialClasses;
    return this;
  }

  public StatutoryDescription addIndustrialClassesItem(FintoItem industrialClassesItem) {
    this.industrialClasses.add(industrialClassesItem);
    return this;
  }

   /**
   * List of industrial classes.
   * @return industrialClasses
  **/
  @ApiModelProperty(example = "null", value = "List of industrial classes.")
  public List getIndustrialClasses() {
    return industrialClasses;
  }

  public void setIndustrialClasses(List industrialClasses) {
    this.industrialClasses = industrialClasses;
  }

  public StatutoryDescription requirements(List requirements) {
    this.requirements = requirements;
    return this;
  }

  public StatutoryDescription addRequirementsItem(LanguageItem requirementsItem) {
    this.requirements.add(requirementsItem);
    return this;
  }

   /**
   * Localized service usage requirements (description of requirement).
   * @return requirements
  **/
  @ApiModelProperty(example = "null", value = "Localized service usage requirements (description of requirement).")
  public List getRequirements() {
    return requirements;
  }

  public void setRequirements(List requirements) {
    this.requirements = requirements;
  }

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

   /**
   * Service type. Possible values are: Service, Notice, Registration or Permission.
   * @return type
  **/
  @ApiModelProperty(example = "null", value = "Service type. Possible values are: Service, Notice, Registration or Permission.")
  public String getType() {
    return type;
  }

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

  public StatutoryDescription serviceChargeType(String serviceChargeType) {
    this.serviceChargeType = serviceChargeType;
    return this;
  }

   /**
   * Service charge type. Possible values are: Charged, Free or Other
   * @return serviceChargeType
  **/
  @ApiModelProperty(example = "null", value = "Service charge type. Possible values are: Charged, Free or Other")
  public String getServiceChargeType() {
    return serviceChargeType;
  }

  public void setServiceChargeType(String serviceChargeType) {
    this.serviceChargeType = serviceChargeType;
  }

  public StatutoryDescription legislation(List legislation) {
    this.legislation = legislation;
    return this;
  }

  public StatutoryDescription addLegislationItem(Law legislationItem) {
    this.legislation.add(legislationItem);
    return this;
  }

   /**
   * Laws that a general description is based on.
   * @return legislation
  **/
  @ApiModelProperty(example = "null", value = "Laws that a general description is based on.")
  public List getLegislation() {
    return legislation;
  }

  public void setLegislation(List legislation) {
    this.legislation = legislation;
  }


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

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

  @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("    industrialClasses: ").append(toIndentedString(industrialClasses)).append("\n");
    sb.append("    requirements: ").append(toIndentedString(requirements)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    serviceChargeType: ").append(toIndentedString(serviceChargeType)).append("\n");
    sb.append("    legislation: ").append(toIndentedString(legislation)).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 - 2024 Weber Informatics LLC | Privacy Policy