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

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

package org.fiware.ngsi.model;

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

	public static final java.lang.String JSON_PROPERTY_AT_CONTEXT = "@context";
	public static final java.lang.String JSON_PROPERTY_INFORMATION = "information";
	public static final java.lang.String JSON_PROPERTY_OBSERVATION_INTERVAL = "observationInterval";
	public static final java.lang.String JSON_PROPERTY_MANAGEMENT_INTERVAL = "managementInterval";
	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_EXPIRES = "expires";
	public static final java.lang.String JSON_PROPERTY_NAME = "name";
	public static final java.lang.String JSON_PROPERTY_DESCRIPTION = "description";
	public static final java.lang.String JSON_PROPERTY_ENDPOINT = "endpoint";

	@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_INFORMATION)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.util.List information;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVATION_INTERVAL)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private TimeIntervalVO observationInterval;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_MANAGEMENT_INTERVAL)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private TimeIntervalVO managementInterval;

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

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

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

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

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

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

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

	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;
		}
		ContextSourceRegistrationFragmentVO other = (ContextSourceRegistrationFragmentVO) object;
		return java.util.Objects.equals(atContext, other.atContext)
				&& java.util.Objects.equals(information, other.information)
				&& java.util.Objects.equals(observationInterval, other.observationInterval)
				&& java.util.Objects.equals(managementInterval, other.managementInterval)
				&& 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(expires, other.expires)
				&& java.util.Objects.equals(name, other.name)
				&& java.util.Objects.equals(description, other.description)
				&& java.util.Objects.equals(endpoint, other.endpoint);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(atContext, information, observationInterval, managementInterval, location, observationSpace, operationSpace, expires, name, description, endpoint);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("ContextSourceRegistrationFragmentVO[")
				.append("atContext=").append(atContext).append(",")
				.append("information=").append(information).append(",")
				.append("observationInterval=").append(observationInterval).append(",")
				.append("managementInterval=").append(managementInterval).append(",")
				.append("location=").append(location).append(",")
				.append("observationSpace=").append(observationSpace).append(",")
				.append("operationSpace=").append(operationSpace).append(",")
				.append("expires=").append(expires).append(",")
				.append("name=").append(name).append(",")
				.append("description=").append(description).append(",")
				.append("endpoint=").append(endpoint)
				.append("]")
				.toString();
	}

	// fluent

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

	public ContextSourceRegistrationFragmentVO information(java.util.List newInformation) {
		this.information = newInformation;
		return this;
	}
	
	public ContextSourceRegistrationFragmentVO addInformationItem(RegistrationInfoVO informationItem) {
		if (this.information == null) {
			this.information = new java.util.ArrayList<>();
		}
		this.information.add(informationItem);
		return this;
	}

	public ContextSourceRegistrationFragmentVO removeInformationItem(RegistrationInfoVO informationItem) {
		if (this.information != null) {
			this.information.remove(informationItem);
		}
		return this;
	}

	public ContextSourceRegistrationFragmentVO observationInterval(TimeIntervalVO newObservationInterval) {
		this.observationInterval = newObservationInterval;
		return this;
	}

	public ContextSourceRegistrationFragmentVO managementInterval(TimeIntervalVO newManagementInterval) {
		this.managementInterval = newManagementInterval;
		return this;
	}

	public ContextSourceRegistrationFragmentVO location(GeometryVO newLocation) {
		this.location = newLocation;
		return this;
	}

	public ContextSourceRegistrationFragmentVO observationSpace(GeometryVO newObservationSpace) {
		this.observationSpace = newObservationSpace;
		return this;
	}

	public ContextSourceRegistrationFragmentVO operationSpace(GeometryVO newOperationSpace) {
		this.operationSpace = newOperationSpace;
		return this;
	}

	public ContextSourceRegistrationFragmentVO expires(java.time.Instant newExpires) {
		this.expires = newExpires;
		return this;
	}

	public ContextSourceRegistrationFragmentVO name(java.lang.String newName) {
		this.name = newName;
		return this;
	}

	public ContextSourceRegistrationFragmentVO description(java.lang.String newDescription) {
		this.description = newDescription;
		return this;
	}

	public ContextSourceRegistrationFragmentVO endpoint(java.net.URI newEndpoint) {
		this.endpoint = newEndpoint;
		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,java.lang.Object 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 java.util.List getInformation() {
		return information;
	}

	public void setInformation(java.util.List newInformation) {
		this.information = newInformation;
	}

	public TimeIntervalVO getObservationInterval() {
		return observationInterval;
	}

	public void setObservationInterval(TimeIntervalVO newObservationInterval) {
		this.observationInterval = newObservationInterval;
	}

	public TimeIntervalVO getManagementInterval() {
		return managementInterval;
	}

	public void setManagementInterval(TimeIntervalVO newManagementInterval) {
		this.managementInterval = newManagementInterval;
	}

	public GeometryVO getLocation() {
		return location;
	}

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

	public GeometryVO getObservationSpace() {
		return observationSpace;
	}

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

	public GeometryVO getOperationSpace() {
		return operationSpace;
	}

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

	public java.time.Instant getExpires() {
		return expires;
	}

	public void setExpires(java.time.Instant newExpires) {
		this.expires = newExpires;
	}

	public java.lang.String getName() {
		return name;
	}

	public void setName(java.lang.String newName) {
		this.name = newName;
	}

	public java.lang.String getDescription() {
		return description;
	}

	public void setDescription(java.lang.String newDescription) {
		this.description = newDescription;
	}

	public java.net.URI getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(java.net.URI newEndpoint) {
		this.endpoint = newEndpoint;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy