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

fi.metatavu.restfulptv.client.model.FintoItem 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.LanguageItem;
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)
/**
 * FintoItem
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-10T20:24:26.046+03:00")
public class FintoItem   {
  @JsonProperty("names")
  private List names = new ArrayList();

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

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

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

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

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

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

  public FintoItem addNamesItem(LanguageItem 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 FintoItem code(String code) {
    this.code = code;
    return this;
  }

   /**
   * Get code
   * @return code
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public FintoItem ontologyType(String ontologyType) {
    this.ontologyType = ontologyType;
    return this;
  }

   /**
   * Get ontologyType
   * @return ontologyType
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getOntologyType() {
    return ontologyType;
  }

  public void setOntologyType(String ontologyType) {
    this.ontologyType = ontologyType;
  }

  public FintoItem uri(String uri) {
    this.uri = uri;
    return this;
  }

   /**
   * Get uri
   * @return uri
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getUri() {
    return uri;
  }

  public void setUri(String uri) {
    this.uri = uri;
  }

  public FintoItem parentId(String parentId) {
    this.parentId = parentId;
    return this;
  }

   /**
   * Get parentId
   * @return parentId
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getParentId() {
    return parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId;
  }

  public FintoItem parentUri(String parentUri) {
    this.parentUri = parentUri;
    return this;
  }

   /**
   * Get parentUri
   * @return parentUri
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getParentUri() {
    return parentUri;
  }

  public void setParentUri(String parentUri) {
    this.parentUri = parentUri;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FintoItem fintoItem = (FintoItem) o;
    return Objects.equals(this.names, fintoItem.names) &&
        Objects.equals(this.code, fintoItem.code) &&
        Objects.equals(this.ontologyType, fintoItem.ontologyType) &&
        Objects.equals(this.uri, fintoItem.uri) &&
        Objects.equals(this.parentId, fintoItem.parentId) &&
        Objects.equals(this.parentUri, fintoItem.parentUri);
  }

  @Override
  public int hashCode() {
    return Objects.hash(names, code, ontologyType, uri, parentId, parentUri);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FintoItem {\n");
    
    sb.append("    names: ").append(toIndentedString(names)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    ontologyType: ").append(toIndentedString(ontologyType)).append("\n");
    sb.append("    uri: ").append(toIndentedString(uri)).append("\n");
    sb.append("    parentId: ").append(toIndentedString(parentId)).append("\n");
    sb.append("    parentUri: ").append(toIndentedString(parentUri)).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