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

org.mobilitydata.gbfs.v3_0.manifest.GBFSDataset Maven / Gradle / Ivy

The newest version!

package org.mobilitydata.gbfs.v3_0.manifest;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "system_id",
    "versions"
})
@Generated("jsonschema2pojo")
public class GBFSDataset implements Serializable
{

    /**
     * The system_id from system_information.json for the corresponding data set(s).
     * (Required)
     * 
     */
    @JsonProperty("system_id")
    @JsonPropertyDescription("The system_id from system_information.json for the corresponding data set(s).")
    private String systemId;
    /**
     * Contains one object, as defined below, for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.
     * (Required)
     * 
     */
    @JsonProperty("versions")
    @JsonPropertyDescription("Contains one object, as defined below, for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.")
    private List versions;
    @JsonIgnore
    private Map additionalProperties = new LinkedHashMap();
    private final static long serialVersionUID = 2801054505126688974L;

    /**
     * The system_id from system_information.json for the corresponding data set(s).
     * (Required)
     * 
     */
    @JsonProperty("system_id")
    public String getSystemId() {
        return systemId;
    }

    /**
     * The system_id from system_information.json for the corresponding data set(s).
     * (Required)
     * 
     */
    @JsonProperty("system_id")
    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public GBFSDataset withSystemId(String systemId) {
        this.systemId = systemId;
        return this;
    }

    /**
     * Contains one object, as defined below, for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.
     * (Required)
     * 
     */
    @JsonProperty("versions")
    public List getVersions() {
        return versions;
    }

    /**
     * Contains one object, as defined below, for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.
     * (Required)
     * 
     */
    @JsonProperty("versions")
    public void setVersions(List versions) {
        this.versions = versions;
    }

    public GBFSDataset withVersions(List versions) {
        this.versions = versions;
        return this;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public GBFSDataset withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(GBFSDataset.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("systemId");
        sb.append('=');
        sb.append(((this.systemId == null)?"":this.systemId));
        sb.append(',');
        sb.append("versions");
        sb.append('=');
        sb.append(((this.versions == null)?"":this.versions));
        sb.append(',');
        sb.append("additionalProperties");
        sb.append('=');
        sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
        sb.append(',');
        if (sb.charAt((sb.length()- 1)) == ',') {
            sb.setCharAt((sb.length()- 1), ']');
        } else {
            sb.append(']');
        }
        return sb.toString();
    }

    @Override
    public int hashCode() {
        int result = 1;
        result = ((result* 31)+((this.systemId == null)? 0 :this.systemId.hashCode()));
        result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
        result = ((result* 31)+((this.versions == null)? 0 :this.versions.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof GBFSDataset) == false) {
            return false;
        }
        GBFSDataset rhs = ((GBFSDataset) other);
        return ((((this.systemId == rhs.systemId)||((this.systemId!= null)&&this.systemId.equals(rhs.systemId)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.versions == rhs.versions)||((this.versions!= null)&&this.versions.equals(rhs.versions))));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy