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

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

	public static final java.lang.String JSON_PROPERTY_ENTITIES = "entities";
	public static final java.lang.String JSON_PROPERTY_PROPERTIES = "properties";
	public static final java.lang.String JSON_PROPERTY_RELATIONSHIPS = "relationships";

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_ENTITIES)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.util.List entities;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_PROPERTIES)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.util.Set properties;

	@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_RELATIONSHIPS)
	@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
	private java.util.Set relationships;

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		RegistrationInfoVO other = (RegistrationInfoVO) object;
		return java.util.Objects.equals(entities, other.entities)
				&& java.util.Objects.equals(properties, other.properties)
				&& java.util.Objects.equals(relationships, other.relationships);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(entities, properties, relationships);
	}

	@Override
	public java.lang.String toString() {
		return new java.lang.StringBuilder()
				.append("RegistrationInfoVO[")
				.append("entities=").append(entities).append(",")
				.append("properties=").append(properties).append(",")
				.append("relationships=").append(relationships)
				.append("]")
				.toString();
	}

	// fluent

	public RegistrationInfoVO entities(java.util.List newEntities) {
		this.entities = newEntities;
		return this;
	}
	
	public RegistrationInfoVO addEntitiesItem(EntityInfoVO entitiesItem) {
		if (this.entities == null) {
			this.entities = new java.util.ArrayList<>();
		}
		this.entities.add(entitiesItem);
		return this;
	}

	public RegistrationInfoVO removeEntitiesItem(EntityInfoVO entitiesItem) {
		if (this.entities != null) {
			this.entities.remove(entitiesItem);
		}
		return this;
	}

	public RegistrationInfoVO properties(java.util.Set newProperties) {
		this.properties = newProperties;
		return this;
	}
	
	public RegistrationInfoVO addPropertiesItem(java.lang.String propertiesItem) {
		if (this.properties == null) {
			this.properties = new java.util.LinkedHashSet<>();
		}
		this.properties.add(propertiesItem);
		return this;
	}

	public RegistrationInfoVO removePropertiesItem(java.lang.String propertiesItem) {
		if (this.properties != null) {
			this.properties.remove(propertiesItem);
		}
		return this;
	}

	public RegistrationInfoVO relationships(java.util.Set newRelationships) {
		this.relationships = newRelationships;
		return this;
	}
	
	public RegistrationInfoVO addRelationshipsItem(java.lang.String relationshipsItem) {
		if (this.relationships == null) {
			this.relationships = new java.util.LinkedHashSet<>();
		}
		this.relationships.add(relationshipsItem);
		return this;
	}

	public RegistrationInfoVO removeRelationshipsItem(java.lang.String relationshipsItem) {
		if (this.relationships != null) {
			this.relationships.remove(relationshipsItem);
		}
		return this;
	}

	// getter/setter

	public java.util.List getEntities() {
		return entities;
	}

	public void setEntities(java.util.List newEntities) {
		this.entities = newEntities;
	}

	public java.util.Set getProperties() {
		return properties;
	}

	public void setProperties(java.util.Set newProperties) {
		this.properties = newProperties;
	}

	public java.util.Set getRelationships() {
		return relationships;
	}

	public void setRelationships(java.util.Set newRelationships) {
		this.relationships = newRelationships;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy