org.fiware.ngsi.model.UpdateResultVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class UpdateResultVO {
public static final java.lang.String JSON_PROPERTY_UPDATED = "updated";
public static final java.lang.String JSON_PROPERTY_NOT_UPDATED = "notUpdated";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_UPDATED)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.util.List updated;
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_NOT_UPDATED)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.util.List notUpdated;
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
UpdateResultVO other = (UpdateResultVO) object;
return java.util.Objects.equals(updated, other.updated)
&& java.util.Objects.equals(notUpdated, other.notUpdated);
}
@Override
public int hashCode() {
return java.util.Objects.hash(updated, notUpdated);
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("UpdateResultVO[")
.append("updated=").append(updated).append(",")
.append("notUpdated=").append(notUpdated)
.append("]")
.toString();
}
// fluent
public UpdateResultVO updated(java.util.List newUpdated) {
this.updated = newUpdated;
return this;
}
public UpdateResultVO addUpdatedItem(java.lang.String updatedItem) {
if (this.updated == null) {
this.updated = new java.util.ArrayList<>();
}
this.updated.add(updatedItem);
return this;
}
public UpdateResultVO removeUpdatedItem(java.lang.String updatedItem) {
if (this.updated != null) {
this.updated.remove(updatedItem);
}
return this;
}
public UpdateResultVO notUpdated(java.util.List newNotUpdated) {
this.notUpdated = newNotUpdated;
return this;
}
public UpdateResultVO addNotUpdatedItem(NotUpdatedDetailsVO notUpdatedItem) {
if (this.notUpdated == null) {
this.notUpdated = new java.util.ArrayList<>();
}
this.notUpdated.add(notUpdatedItem);
return this;
}
public UpdateResultVO removeNotUpdatedItem(NotUpdatedDetailsVO notUpdatedItem) {
if (this.notUpdated != null) {
this.notUpdated.remove(notUpdatedItem);
}
return this;
}
// getter/setter
public java.util.List getUpdated() {
return updated;
}
public void setUpdated(java.util.List newUpdated) {
this.updated = newUpdated;
}
public java.util.List getNotUpdated() {
return notUpdated;
}
public void setNotUpdated(java.util.List newNotUpdated) {
this.notUpdated = newNotUpdated;
}
}