org.fiware.ngsi.model.KeyValuePairVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class KeyValuePairVO {
public static final java.lang.String JSON_PROPERTY_KEY = "key";
public static final java.lang.String JSON_PROPERTY_VALUE = "value";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_KEY)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.lang.String key;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_VALUE)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
private java.lang.String value;
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
KeyValuePairVO other = (KeyValuePairVO) object;
return java.util.Objects.equals(key, other.key)
&& java.util.Objects.equals(value, other.value);
}
@Override
public int hashCode() {
return java.util.Objects.hash(key, value);
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("KeyValuePairVO[")
.append("key=").append(key).append(",")
.append("value=").append(value)
.append("]")
.toString();
}
// fluent
public KeyValuePairVO key(java.lang.String newKey) {
this.key = newKey;
return this;
}
public KeyValuePairVO value(java.lang.String newValue) {
this.value = newValue;
return this;
}
// getter/setter
public java.lang.String getKey() {
return key;
}
public void setKey(java.lang.String newKey) {
this.key = newKey;
}
public java.lang.String getValue() {
return value;
}
public void setValue(java.lang.String newValue) {
this.value = newValue;
}
}