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

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

There is a newer version: 1.1.5
Show newest version
package org.fiware.ngsi.model;

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

	public static final java.lang.String JSON_PROPERTY_VALUE = "value";
	public static final java.lang.String JSON_PROPERTY_OBSERVED_AT = "observedAt";
	public static final java.lang.String JSON_PROPERTY_CREATED_AT = "createdAt";
	public static final java.lang.String JSON_PROPERTY_MODIFIED_AT = "modifiedAt";
	public static final java.lang.String JSON_PROPERTY_DATASET_ID = "datasetId";
	public static final java.lang.String JSON_PROPERTY_INSTANCE_ID = "instanceId";
	public static final java.lang.String JSON_PROPERTY_UNIT_CODE = "unitCode";

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_VALUE)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
	private java.lang.Object value;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVED_AT)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.time.Instant observedAt;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_CREATED_AT)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.time.Instant createdAt;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_MODIFIED_AT)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.time.Instant modifiedAt;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_DATASET_ID)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.net.URI datasetId;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_INSTANCE_ID)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.net.URI instanceId;

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

	private java.util.Map additionalProperties;

	@Override
	public PropertyTypeVO getType() {
		return PropertyTypeVO.GEOPROPERTY;
	}

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		GeoPropertyVO other = (GeoPropertyVO) object;
		return java.util.Objects.equals(value, other.value)
				&& java.util.Objects.equals(observedAt, other.observedAt)
				&& java.util.Objects.equals(createdAt, other.createdAt)
				&& java.util.Objects.equals(modifiedAt, other.modifiedAt)
				&& java.util.Objects.equals(datasetId, other.datasetId)
				&& java.util.Objects.equals(instanceId, other.instanceId)
				&& java.util.Objects.equals(unitCode, other.unitCode)
				&& super.equals(object);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(value, observedAt, createdAt, modifiedAt, datasetId, instanceId, unitCode, super.hashCode());
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("GeoPropertyVO[")
				.append("super").append(super.toString())
				.append("value=").append(value).append(",")
				.append("observedAt=").append(observedAt).append(",")
				.append("createdAt=").append(createdAt).append(",")
				.append("modifiedAt=").append(modifiedAt).append(",")
				.append("datasetId=").append(datasetId).append(",")
				.append("instanceId=").append(instanceId).append(",")
				.append("unitCode=").append(unitCode)
				.append("]")
				.toString();
	}

	// fluent

	public GeoPropertyVO value(java.lang.Object newValue) {
		this.value = newValue;
		return this;
	}

	public GeoPropertyVO observedAt(java.time.Instant newObservedAt) {
		this.observedAt = newObservedAt;
		return this;
	}

	public GeoPropertyVO createdAt(java.time.Instant newCreatedAt) {
		this.createdAt = newCreatedAt;
		return this;
	}

	public GeoPropertyVO modifiedAt(java.time.Instant newModifiedAt) {
		this.modifiedAt = newModifiedAt;
		return this;
	}

	public GeoPropertyVO datasetId(java.net.URI newDatasetId) {
		this.datasetId = newDatasetId;
		return this;
	}

	public GeoPropertyVO instanceId(java.net.URI newInstanceId) {
		this.instanceId = newInstanceId;
		return this;
	}

	public GeoPropertyVO unitCode(java.lang.String newUnitCode) {
		this.unitCode = newUnitCode;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonAnyGetter
	public java.util.Map getAdditionalProperties() {
		return additionalProperties;
	}

	@com.fasterxml.jackson.annotation.JsonAnySetter
	public void setAdditionalProperties(java.lang.String propertyKey,AdditionalPropertyVO value) {
		if (this.additionalProperties == null) {
					this.additionalProperties = new java.util.HashMap<>();
				}
		this.additionalProperties.put(propertyKey, value);
	}

	// getter/setter

	public java.lang.Object getValue() {
		return value;
	}

	public void setValue(java.lang.Object newValue) {
		this.value = newValue;
	}

	public java.time.Instant getObservedAt() {
		return observedAt;
	}

	public void setObservedAt(java.time.Instant newObservedAt) {
		this.observedAt = newObservedAt;
	}

	public java.time.Instant getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(java.time.Instant newCreatedAt) {
		this.createdAt = newCreatedAt;
	}

	public java.time.Instant getModifiedAt() {
		return modifiedAt;
	}

	public void setModifiedAt(java.time.Instant newModifiedAt) {
		this.modifiedAt = newModifiedAt;
	}

	public java.net.URI getDatasetId() {
		return datasetId;
	}

	public void setDatasetId(java.net.URI newDatasetId) {
		this.datasetId = newDatasetId;
	}

	public java.net.URI getInstanceId() {
		return instanceId;
	}

	public void setInstanceId(java.net.URI newInstanceId) {
		this.instanceId = newInstanceId;
	}

	public java.lang.String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(java.lang.String newUnitCode) {
		this.unitCode = newUnitCode;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy