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

org.fiware.ngsi.model.GeoQueryVO Maven / Gradle / Ivy

package org.fiware.ngsi.model;

@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class GeoQueryVO {

	public static final java.lang.String JSON_PROPERTY_GEOREL = "georel";
	public static final java.lang.String JSON_PROPERTY_COORDINATES = "coordinates";
	public static final java.lang.String JSON_PROPERTY_GEOMETRY = "geometry";
	public static final java.lang.String JSON_PROPERTY_GEOPROPERTY = "geoproperty";

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_GEOREL)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
	private java.lang.String georel;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_COORDINATES)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
	private java.util.List coordinates = new java.util.ArrayList<>();

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_GEOMETRY)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
	private java.lang.String geometry;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_GEOPROPERTY)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.lang.String geoproperty;

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		GeoQueryVO other = (GeoQueryVO) object;
		return java.util.Objects.equals(georel, other.georel)
				&& java.util.Objects.equals(coordinates, other.coordinates)
				&& java.util.Objects.equals(geometry, other.geometry)
				&& java.util.Objects.equals(geoproperty, other.geoproperty);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(georel, coordinates, geometry, geoproperty);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("GeoQueryVO[")
				.append("georel=").append(georel).append(",")
				.append("coordinates=").append(coordinates).append(",")
				.append("geometry=").append(geometry).append(",")
				.append("geoproperty=").append(geoproperty)
				.append("]")
				.toString();
	}

	// fluent

	public GeoQueryVO georel(java.lang.String newGeorel) {
		this.georel = newGeorel;
		return this;
	}

	public GeoQueryVO coordinates(java.util.List newCoordinates) {
		this.coordinates = newCoordinates;
		return this;
	}
	
	public GeoQueryVO addCoordinatesItem(GeoQueryCoordinatesInnerVO coordinatesItem) {
		if (this.coordinates == null) {
			this.coordinates = new java.util.ArrayList<>();
		}
		this.coordinates.add(coordinatesItem);
		return this;
	}

	public GeoQueryVO removeCoordinatesItem(GeoQueryCoordinatesInnerVO coordinatesItem) {
		if (this.coordinates != null) {
			this.coordinates.remove(coordinatesItem);
		}
		return this;
	}

	public GeoQueryVO geometry(java.lang.String newGeometry) {
		this.geometry = newGeometry;
		return this;
	}

	public GeoQueryVO geoproperty(java.lang.String newGeoproperty) {
		this.geoproperty = newGeoproperty;
		return this;
	}

	// getter/setter

	public java.lang.String getGeorel() {
		return georel;
	}

	public void setGeorel(java.lang.String newGeorel) {
		this.georel = newGeorel;
	}

	public java.util.List getCoordinates() {
		return coordinates;
	}

	public void setCoordinates(java.util.List newCoordinates) {
		this.coordinates = newCoordinates;
	}

	public java.lang.String getGeometry() {
		return geometry;
	}

	public void setGeometry(java.lang.String newGeometry) {
		this.geometry = newGeometry;
	}

	public java.lang.String getGeoproperty() {
		return geoproperty;
	}

	public void setGeoproperty(java.lang.String newGeoproperty) {
		this.geoproperty = newGeoproperty;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy