fi.metatavu.restfulptv.client.model.StatutoryDescription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restful-ptv-rest-client Show documentation
Show all versions of restful-ptv-rest-client Show documentation
Restful way to use Palvelutietovaranto.
/**
* 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.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-10T19:00:37.540+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();
public StatutoryDescription id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@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;
}
public StatutoryDescription addNamesItem(LocalizedListItem namesItem) {
this.names.add(namesItem);
return this;
}
/**
* Get names
* @return names
**/
@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;
}
public StatutoryDescription addDescriptionsItem(LocalizedListItem descriptionsItem) {
this.descriptions.add(descriptionsItem);
return this;
}
/**
* Get descriptions
* @return descriptions
**/
@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;
}
public StatutoryDescription addLanguagesItem(String languagesItem) {
this.languages.add(languagesItem);
return this;
}
/**
* Get languages
* @return languages
**/
@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;
}
public StatutoryDescription addServiceClassesItem(FintoItem serviceClassesItem) {
this.serviceClasses.add(serviceClassesItem);
return this;
}
/**
* Get serviceClasses
* @return serviceClasses
**/
@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;
}
public StatutoryDescription addOntologyTermsItem(FintoItem ontologyTermsItem) {
this.ontologyTerms.add(ontologyTermsItem);
return this;
}
/**
* Get ontologyTerms
* @return ontologyTerms
**/
@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;
}
public StatutoryDescription addTargetGroupsItem(FintoItem targetGroupsItem) {
this.targetGroups.add(targetGroupsItem);
return this;
}
/**
* Get targetGroups
* @return targetGroups
**/
@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;
}
public StatutoryDescription addLifeEventsItem(FintoItem lifeEventsItem) {
this.lifeEvents.add(lifeEventsItem);
return this;
}
/**
* Get lifeEvents
* @return lifeEvents
**/
@ApiModelProperty(example = "null", value = "")
public List getLifeEvents() {
return lifeEvents;
}
public void setLifeEvents(List lifeEvents) {
this.lifeEvents = lifeEvents;
}
@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);
}
@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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}