org.fiware.ngsi.model.TimeIntervalVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class TimeIntervalVO {
public static final java.lang.String JSON_PROPERTY_START = "start";
public static final java.lang.String JSON_PROPERTY_END = "end";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_START)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.time.Instant start;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_END)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.time.Instant end;
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
TimeIntervalVO other = (TimeIntervalVO) object;
return java.util.Objects.equals(start, other.start)
&& java.util.Objects.equals(end, other.end);
}
@Override
public int hashCode() {
return java.util.Objects.hash(start, end);
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("TimeIntervalVO[")
.append("start=").append(start).append(",")
.append("end=").append(end)
.append("]")
.toString();
}
// fluent
public TimeIntervalVO start(java.time.Instant newStart) {
this.start = newStart;
return this;
}
public TimeIntervalVO end(java.time.Instant newEnd) {
this.end = newEnd;
return this;
}
// getter/setter
public java.time.Instant getStart() {
return start;
}
public void setStart(java.time.Instant newStart) {
this.start = newStart;
}
public java.time.Instant getEnd() {
return end;
}
public void setEnd(java.time.Instant newEnd) {
this.end = newEnd;
}
}