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

openapitools.model.UICStop Maven / Gradle / Ivy

There is a newer version: 1.24.2
Show newest version
/*
 * Product Base Definitions
 * This component represents the Open API interface of the accounting service. 
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package openapitools.model;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import openapitools.model.LinkObject;
import openapitools.model.Stop;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import openapitools.JSON;


/**
 *  <br><br> Alternate Name: Haltestelle 
 */
@JsonPropertyOrder({
  UICStop.JSON_PROPERTY_UIC_CODE,
  UICStop.JSON_PROPERTY_PRIORITY,
  UICStop.JSON_PROPERTY_CODE,
  UICStop.JSON_PROPERTY_INDEX2
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
@JsonIgnoreProperties(
  value = "objectType", // ignore manually set objectType, it will be automatically generated by Jackson during serialization
  allowSetters = true // allows the objectType to be set during deserialization
)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType", visible = true)

public class UICStop extends Stop {
  public static final String JSON_PROPERTY_UIC_CODE = "uicCode";
  private String uicCode;

  public static final String JSON_PROPERTY_PRIORITY = "priority";
  private Integer priority;

  public static final String JSON_PROPERTY_CODE = "code";
  private Long code;

  public static final String JSON_PROPERTY_INDEX2 = "index2";
  private Integer index2;

  public UICStop() { 
  }

  public UICStop uicCode(String uicCode) {
    this.uicCode = uicCode;
    return this;
  }

  /**
   * Get uicCode
   * @return uicCode
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_UIC_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getUicCode() {
    return uicCode;
  }


  @JsonProperty(JSON_PROPERTY_UIC_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setUicCode(String uicCode) {
    this.uicCode = uicCode;
  }


  public UICStop priority(Integer priority) {
    this.priority = priority;
    return this;
  }

  /**
   * Get priority
   * minimum: 1
   * maximum: 32
   * @return priority
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_PRIORITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getPriority() {
    return priority;
  }


  @JsonProperty(JSON_PROPERTY_PRIORITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPriority(Integer priority) {
    this.priority = priority;
  }


  public UICStop code(Long code) {
    this.code = code;
    return this;
  }

  /**
   * Get code
   * minimum: 1000
   * maximum: 9999
   * @return code
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Long getCode() {
    return code;
  }


  @JsonProperty(JSON_PROPERTY_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCode(Long code) {
    this.code = code;
  }


  public UICStop index2(Integer index2) {
    this.index2 = index2;
    return this;
  }

  /**
   * Get index2
   * minimum: 0
   * @return index2
   */
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_INDEX2)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getIndex2() {
    return index2;
  }


  @JsonProperty(JSON_PROPERTY_INDEX2)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIndex2(Integer index2) {
    this.index2 = index2;
  }


  /**
   * Return true if this UICStop object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UICStop uiCStop = (UICStop) o;
    return Objects.equals(this.uicCode, uiCStop.uicCode) &&
        Objects.equals(this.priority, uiCStop.priority) &&
        Objects.equals(this.code, uiCStop.code) &&
        Objects.equals(this.index2, uiCStop.index2) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(uicCode, priority, code, index2, super.hashCode());
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UICStop {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    uicCode: ").append(toIndentedString(uicCode)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    index2: ").append(toIndentedString(index2)).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    ");
  }

  static {
    // Initialize and register the discriminator mappings.
    Map> mappings = new HashMap<>();
    mappings.put("UICStop", UICStop.class);
    JSON.registerDiscriminator(UICStop.class, "objectType", mappings);
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy