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

org.fiware.ngsi.model.BatchEntityErrorVO 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 BatchEntityErrorVO {

	public static final java.lang.String JSON_PROPERTY_ENTITY_ID = "entityId";
	public static final java.lang.String JSON_PROPERTY_ERROR = "error";

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

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ERROR)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private ProblemDetailsVO error;

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		BatchEntityErrorVO other = (BatchEntityErrorVO) object;
		return java.util.Objects.equals(entityId, other.entityId)
				&& java.util.Objects.equals(error, other.error);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(entityId, error);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("BatchEntityErrorVO[")
				.append("entityId=").append(entityId).append(",")
				.append("error=").append(error)
				.append("]")
				.toString();
	}

	// fluent

	public BatchEntityErrorVO entityId(java.net.URI newEntityId) {
		this.entityId = newEntityId;
		return this;
	}

	public BatchEntityErrorVO error(ProblemDetailsVO newError) {
		this.error = newError;
		return this;
	}

	// getter/setter

	public java.net.URI getEntityId() {
		return entityId;
	}

	public void setEntityId(java.net.URI newEntityId) {
		this.entityId = newEntityId;
	}

	public ProblemDetailsVO getError() {
		return error;
	}

	public void setError(ProblemDetailsVO newError) {
		this.error = newError;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy