All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.fiware.ngsi.model.ContextSourceRegistrationVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class ContextSourceRegistrationVO {
public static final java.lang.String JSON_PROPERTY_AT_CONTEXT = "@context";
public static final java.lang.String JSON_PROPERTY_INFORMATION = "information";
public static final java.lang.String JSON_PROPERTY_OBSERVATION_INTERVAL = "observationInterval";
public static final java.lang.String JSON_PROPERTY_MANAGEMENT_INTERVAL = "managementInterval";
public static final java.lang.String JSON_PROPERTY_LOCATION = "location";
public static final java.lang.String JSON_PROPERTY_OBSERVATION_SPACE = "observationSpace";
public static final java.lang.String JSON_PROPERTY_OPERATION_SPACE = "operationSpace";
public static final java.lang.String JSON_PROPERTY_EXPIRES = "expires";
public static final java.lang.String JSON_PROPERTY_NAME = "name";
public static final java.lang.String JSON_PROPERTY_DESCRIPTION = "description";
public static final java.lang.String JSON_PROPERTY_ENDPOINT = "endpoint";
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_CREATED_AT = "createdAt";
public static final java.lang.String JSON_PROPERTY_MODIFIED_AT = "modifiedAt";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_AT_CONTEXT)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.lang.Object atContext;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_INFORMATION)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.util.List information = new java.util.ArrayList<>();
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVATION_INTERVAL)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private TimeIntervalVO observationInterval;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_MANAGEMENT_INTERVAL)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private TimeIntervalVO managementInterval;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_LOCATION)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private GeometryVO location;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OBSERVATION_SPACE)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private GeometryVO observationSpace;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_OPERATION_SPACE)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private GeometryVO operationSpace;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_EXPIRES)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.time.Instant expires;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_NAME)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.lang.String name;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_DESCRIPTION)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.lang.String description;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ENDPOINT)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.net.URI endpoint;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ID)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.net.URI id;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_TYPE)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private Type type;
@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;
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
ContextSourceRegistrationVO other = (ContextSourceRegistrationVO) object;
return java.util.Objects.equals(atContext, other.atContext)
&& java.util.Objects.equals(information, other.information)
&& java.util.Objects.equals(observationInterval, other.observationInterval)
&& java.util.Objects.equals(managementInterval, other.managementInterval)
&& java.util.Objects.equals(location, other.location)
&& java.util.Objects.equals(observationSpace, other.observationSpace)
&& java.util.Objects.equals(operationSpace, other.operationSpace)
&& java.util.Objects.equals(expires, other.expires)
&& java.util.Objects.equals(name, other.name)
&& java.util.Objects.equals(description, other.description)
&& java.util.Objects.equals(endpoint, other.endpoint)
&& java.util.Objects.equals(id, other.id)
&& java.util.Objects.equals(type, other.type)
&& java.util.Objects.equals(createdAt, other.createdAt)
&& java.util.Objects.equals(modifiedAt, other.modifiedAt);
}
@Override
public int hashCode() {
return java.util.Objects.hash(atContext, information, observationInterval, managementInterval, location, observationSpace, operationSpace, expires, name, description, endpoint, id, type, createdAt, modifiedAt);
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("ContextSourceRegistrationVO[")
.append("atContext=").append(atContext).append(",")
.append("information=").append(information).append(",")
.append("observationInterval=").append(observationInterval).append(",")
.append("managementInterval=").append(managementInterval).append(",")
.append("location=").append(location).append(",")
.append("observationSpace=").append(observationSpace).append(",")
.append("operationSpace=").append(operationSpace).append(",")
.append("expires=").append(expires).append(",")
.append("name=").append(name).append(",")
.append("description=").append(description).append(",")
.append("endpoint=").append(endpoint).append(",")
.append("id=").append(id).append(",")
.append("type=").append(type).append(",")
.append("createdAt=").append(createdAt).append(",")
.append("modifiedAt=").append(modifiedAt)
.append("]")
.toString();
}
// fluent
public ContextSourceRegistrationVO atContext(java.lang.Object newAtContext) {
this.atContext = newAtContext;
return this;
}
public ContextSourceRegistrationVO information(java.util.List newInformation) {
this.information = newInformation;
return this;
}
public ContextSourceRegistrationVO addInformationItem(RegistrationInfoVO informationItem) {
if (this.information == null) {
this.information = new java.util.ArrayList<>();
}
this.information.add(informationItem);
return this;
}
public ContextSourceRegistrationVO removeInformationItem(RegistrationInfoVO informationItem) {
if (this.information != null) {
this.information.remove(informationItem);
}
return this;
}
public ContextSourceRegistrationVO observationInterval(TimeIntervalVO newObservationInterval) {
this.observationInterval = newObservationInterval;
return this;
}
public ContextSourceRegistrationVO managementInterval(TimeIntervalVO newManagementInterval) {
this.managementInterval = newManagementInterval;
return this;
}
public ContextSourceRegistrationVO location(GeometryVO newLocation) {
this.location = newLocation;
return this;
}
public ContextSourceRegistrationVO observationSpace(GeometryVO newObservationSpace) {
this.observationSpace = newObservationSpace;
return this;
}
public ContextSourceRegistrationVO operationSpace(GeometryVO newOperationSpace) {
this.operationSpace = newOperationSpace;
return this;
}
public ContextSourceRegistrationVO expires(java.time.Instant newExpires) {
this.expires = newExpires;
return this;
}
public ContextSourceRegistrationVO name(java.lang.String newName) {
this.name = newName;
return this;
}
public ContextSourceRegistrationVO description(java.lang.String newDescription) {
this.description = newDescription;
return this;
}
public ContextSourceRegistrationVO endpoint(java.net.URI newEndpoint) {
this.endpoint = newEndpoint;
return this;
}
public ContextSourceRegistrationVO id(java.net.URI newId) {
this.id = newId;
return this;
}
public ContextSourceRegistrationVO type(Type newType) {
this.type = newType;
return this;
}
public ContextSourceRegistrationVO createdAt(java.time.Instant newCreatedAt) {
this.createdAt = newCreatedAt;
return this;
}
public ContextSourceRegistrationVO modifiedAt(java.time.Instant newModifiedAt) {
this.modifiedAt = newModifiedAt;
return this;
}
// getter/setter
public java.lang.Object getAtContext() {
return atContext;
}
public void setAtContext(java.lang.Object newAtContext) {
this.atContext = newAtContext;
}
public java.util.List getInformation() {
return information;
}
public void setInformation(java.util.List newInformation) {
this.information = newInformation;
}
public TimeIntervalVO getObservationInterval() {
return observationInterval;
}
public void setObservationInterval(TimeIntervalVO newObservationInterval) {
this.observationInterval = newObservationInterval;
}
public TimeIntervalVO getManagementInterval() {
return managementInterval;
}
public void setManagementInterval(TimeIntervalVO newManagementInterval) {
this.managementInterval = newManagementInterval;
}
public GeometryVO getLocation() {
return location;
}
public void setLocation(GeometryVO newLocation) {
this.location = newLocation;
}
public GeometryVO getObservationSpace() {
return observationSpace;
}
public void setObservationSpace(GeometryVO newObservationSpace) {
this.observationSpace = newObservationSpace;
}
public GeometryVO getOperationSpace() {
return operationSpace;
}
public void setOperationSpace(GeometryVO newOperationSpace) {
this.operationSpace = newOperationSpace;
}
public java.time.Instant getExpires() {
return expires;
}
public void setExpires(java.time.Instant newExpires) {
this.expires = newExpires;
}
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String newName) {
this.name = newName;
}
public java.lang.String getDescription() {
return description;
}
public void setDescription(java.lang.String newDescription) {
this.description = newDescription;
}
public java.net.URI getEndpoint() {
return endpoint;
}
public void setEndpoint(java.net.URI newEndpoint) {
this.endpoint = newEndpoint;
}
public java.net.URI getId() {
return id;
}
public void setId(java.net.URI newId) {
this.id = newId;
}
public Type getType() {
return type;
}
public void setType(Type newType) {
this.type = newType;
}
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;
}
@io.micronaut.core.annotation.Introspected
public enum Type {
CONTEXTSOURCEREGISTRATION("ContextSourceRegistration");
public static final java.lang.String CONTEXTSOURCEREGISTRATION_VALUE = "ContextSourceRegistration";
private final java.lang.String value;
private Type(java.lang.String value) {
this.value = value;
}
@com.fasterxml.jackson.annotation.JsonCreator
public static Type toEnum(java.lang.String value) {
return toOptional(value).orElseThrow(() -> new IllegalArgumentException("Unknown value '" + value + "'."));
}
public static java.util.Optional toOptional(java.lang.String value) {
return java.util.Arrays
.stream(values())
.filter(e -> e.value.equals(value))
.findAny();
}
@com.fasterxml.jackson.annotation.JsonValue
public java.lang.String getValue() {
return value;
}
}
}