org.fiware.ngsi.model.RelationshipVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class RelationshipVO implements AdditionalPropertyObjectVO {
public static final java.lang.String JSON_PROPERTY_OBJECT = "object";
public static final java.lang.String JSON_PROPERTY_OBSERVED_AT = "observedAt";
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_DATASET_ID = "datasetId";
public static final java.lang.String JSON_PROPERTY_INSTANCE_ID = "instanceId";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBJECT)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.net.URI _object;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVED_AT)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.time.Instant observedAt;
@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_DATASET_ID)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.net.URI datasetId;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_INSTANCE_ID)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.net.URI instanceId;
private java.util.Map additionalProperties;
@Override
public PropertyTypeVO getType() {
return PropertyTypeVO.RELATIONSHIP;
}
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
RelationshipVO other = (RelationshipVO) object;
return java.util.Objects.equals(_object, other._object)
&& java.util.Objects.equals(observedAt, other.observedAt)
&& java.util.Objects.equals(createdAt, other.createdAt)
&& java.util.Objects.equals(modifiedAt, other.modifiedAt)
&& java.util.Objects.equals(datasetId, other.datasetId)
&& java.util.Objects.equals(instanceId, other.instanceId)
&& super.equals(object);
}
@Override
public int hashCode() {
return java.util.Objects.hash(_object, observedAt, createdAt, modifiedAt, datasetId, instanceId, super.hashCode());
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("RelationshipVO[")
.append("super").append(super.toString())
.append("_object=").append(_object).append(",")
.append("observedAt=").append(observedAt).append(",")
.append("createdAt=").append(createdAt).append(",")
.append("modifiedAt=").append(modifiedAt).append(",")
.append("datasetId=").append(datasetId).append(",")
.append("instanceId=").append(instanceId)
.append("]")
.toString();
}
// fluent
public RelationshipVO _object(java.net.URI newObject) {
this._object = newObject;
return this;
}
public RelationshipVO observedAt(java.time.Instant newObservedAt) {
this.observedAt = newObservedAt;
return this;
}
public RelationshipVO createdAt(java.time.Instant newCreatedAt) {
this.createdAt = newCreatedAt;
return this;
}
public RelationshipVO modifiedAt(java.time.Instant newModifiedAt) {
this.modifiedAt = newModifiedAt;
return this;
}
public RelationshipVO datasetId(java.net.URI newDatasetId) {
this.datasetId = newDatasetId;
return this;
}
public RelationshipVO instanceId(java.net.URI newInstanceId) {
this.instanceId = newInstanceId;
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.net.URI getObject() {
return _object;
}
public void setObject(java.net.URI newObject) {
this._object = newObject;
}
public java.time.Instant getObservedAt() {
return observedAt;
}
public void setObservedAt(java.time.Instant newObservedAt) {
this.observedAt = newObservedAt;
}
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.net.URI getDatasetId() {
return datasetId;
}
public void setDatasetId(java.net.URI newDatasetId) {
this.datasetId = newDatasetId;
}
public java.net.URI getInstanceId() {
return instanceId;
}
public void setInstanceId(java.net.URI newInstanceId) {
this.instanceId = newInstanceId;
}
}