org.fiware.ngsi.model.EntityInfoVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class EntityInfoVO {
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_ID_PATTERN = "idPattern";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ID)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.lang.Object id;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_TYPE)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.lang.String type;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ID_PATTERN)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.lang.String idPattern;
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
EntityInfoVO other = (EntityInfoVO) object;
return java.util.Objects.equals(id, other.id)
&& java.util.Objects.equals(type, other.type)
&& java.util.Objects.equals(idPattern, other.idPattern);
}
@Override
public int hashCode() {
return java.util.Objects.hash(id, type, idPattern);
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("EntityInfoVO[")
.append("id=").append(id).append(",")
.append("type=").append(type).append(",")
.append("idPattern=").append(idPattern)
.append("]")
.toString();
}
// fluent
public EntityInfoVO id(java.lang.Object newId) {
this.id = newId;
return this;
}
public EntityInfoVO type(java.lang.String newType) {
this.type = newType;
return this;
}
public EntityInfoVO idPattern(java.lang.String newIdPattern) {
this.idPattern = newIdPattern;
return this;
}
// getter/setter
public java.lang.Object getId() {
return id;
}
public void setId(java.lang.Object newId) {
this.id = newId;
}
public java.lang.String getType() {
return type;
}
public void setType(java.lang.String newType) {
this.type = newType;
}
public java.lang.String getIdPattern() {
return idPattern;
}
public void setIdPattern(java.lang.String newIdPattern) {
this.idPattern = newIdPattern;
}
}