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

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

	public static final java.lang.String JSON_PROPERTY_TYPE = "type";
	public static final java.lang.String JSON_PROPERTY_TITLE = "title";
	public static final java.lang.String JSON_PROPERTY_DETAIL = "detail";

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_TYPE)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
	private java.net.URI type;

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

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

	// methods

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

	@Override
	public int hashCode() {
		return java.util.Objects.hash(type, title, detail);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("ProblemDetailsVO[")
				.append("type=").append(type).append(",")
				.append("title=").append(title).append(",")
				.append("detail=").append(detail)
				.append("]")
				.toString();
	}

	// fluent

	public ProblemDetailsVO type(java.net.URI newType) {
		this.type = newType;
		return this;
	}

	public ProblemDetailsVO title(java.lang.String newTitle) {
		this.title = newTitle;
		return this;
	}

	public ProblemDetailsVO detail(java.lang.String newDetail) {
		this.detail = newDetail;
		return this;
	}

	// getter/setter

	public java.net.URI getType() {
		return type;
	}

	public void setType(java.net.URI newType) {
		this.type = newType;
	}

	public java.lang.String getTitle() {
		return title;
	}

	public void setTitle(java.lang.String newTitle) {
		this.title = newTitle;
	}

	public java.lang.String getDetail() {
		return detail;
	}

	public void setDetail(java.lang.String newDetail) {
		this.detail = newDetail;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy