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

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

package org.fiware.ngsi.model;

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

	public static final java.lang.String JSON_PROPERTY_AT_CONTEXT = "@context";
	public static final java.lang.String JSON_PROPERTY_LOCATION = "location";
	public static final java.lang.String JSON_PROPERTY_OBSERVATION_SPACE = "observationSpace";
	public static final java.lang.String JSON_PROPERTY_OPERATION_SPACE = "operationSpace";
	public static final java.lang.String JSON_PROPERTY_ID = "id";
	public static final java.lang.String JSON_PROPERTY_TYPE = "type";
	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_DELETED_AT = "deletedAt";

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_AT_CONTEXT)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.lang.Object atContext;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_LOCATION)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private GeoPropertyVO location;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVATION_SPACE)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private GeoPropertyVO observationSpace;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OPERATION_SPACE)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private GeoPropertyVO operationSpace;

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

	/** NGSI-LD Name */
	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_TYPE)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.lang.String type;

	@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_DELETED_AT)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.time.Instant deletedAt;

	private java.util.Map additionalProperties;

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		EntityFragmentVO other = (EntityFragmentVO) object;
		return java.util.Objects.equals(atContext, other.atContext)
				&& java.util.Objects.equals(location, other.location)
				&& java.util.Objects.equals(observationSpace, other.observationSpace)
				&& java.util.Objects.equals(operationSpace, other.operationSpace)
				&& java.util.Objects.equals(id, other.id)
				&& java.util.Objects.equals(type, other.type)
				&& java.util.Objects.equals(createdAt, other.createdAt)
				&& java.util.Objects.equals(modifiedAt, other.modifiedAt)
				&& java.util.Objects.equals(deletedAt, other.deletedAt);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(atContext, location, observationSpace, operationSpace, id, type, createdAt, modifiedAt, deletedAt);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("EntityFragmentVO[")
				.append("atContext=").append(atContext).append(",")
				.append("location=").append(location).append(",")
				.append("observationSpace=").append(observationSpace).append(",")
				.append("operationSpace=").append(operationSpace).append(",")
				.append("id=").append(id).append(",")
				.append("type=").append(type).append(",")
				.append("createdAt=").append(createdAt).append(",")
				.append("modifiedAt=").append(modifiedAt).append(",")
				.append("deletedAt=").append(deletedAt)
				.append("]")
				.toString();
	}

	// fluent

	public EntityFragmentVO atContext(java.lang.Object newAtContext) {
		this.atContext = newAtContext;
		return this;
	}

	public EntityFragmentVO location(GeoPropertyVO newLocation) {
		this.location = newLocation;
		return this;
	}

	public EntityFragmentVO observationSpace(GeoPropertyVO newObservationSpace) {
		this.observationSpace = newObservationSpace;
		return this;
	}

	public EntityFragmentVO operationSpace(GeoPropertyVO newOperationSpace) {
		this.operationSpace = newOperationSpace;
		return this;
	}

	public EntityFragmentVO id(java.net.URI newId) {
		this.id = newId;
		return this;
	}

	public EntityFragmentVO type(java.lang.String newType) {
		this.type = newType;
		return this;
	}

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

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

	public EntityFragmentVO deletedAt(java.time.Instant newDeletedAt) {
		this.deletedAt = newDeletedAt;
		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 getAtContext() {
		return atContext;
	}

	public void setAtContext(java.lang.Object newAtContext) {
		this.atContext = newAtContext;
	}

	public GeoPropertyVO getLocation() {
		return location;
	}

	public void setLocation(GeoPropertyVO newLocation) {
		this.location = newLocation;
	}

	public GeoPropertyVO getObservationSpace() {
		return observationSpace;
	}

	public void setObservationSpace(GeoPropertyVO newObservationSpace) {
		this.observationSpace = newObservationSpace;
	}

	public GeoPropertyVO getOperationSpace() {
		return operationSpace;
	}

	public void setOperationSpace(GeoPropertyVO newOperationSpace) {
		this.operationSpace = newOperationSpace;
	}

	public java.net.URI getId() {
		return id;
	}

	public void setId(java.net.URI newId) {
		this.id = newId;
	}

	public java.lang.String getType() {
		return type;
	}

	public void setType(java.lang.String newType) {
		this.type = newType;
	}

	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.time.Instant getDeletedAt() {
		return deletedAt;
	}

	public void setDeletedAt(java.time.Instant newDeletedAt) {
		this.deletedAt = newDeletedAt;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy