
com.khipu.api.model.ValidationError Maven / Gradle / Ivy
The newest version!
/*
* khipu API
* khipu API
*
* OpenAPI spec version: 2.9.1-resteasy
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.khipu.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.khipu.api.model.ErrorItem;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
/**
* ValidationError
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen")
public class ValidationError {
@JsonProperty("status")
private Integer status = null;
@JsonProperty("message")
private String message = null;
@JsonProperty("errors")
private List errors = null;
public ValidationError status(Integer status) {
this.status = status;
return this;
}
/**
* Código del error
* @return status
**/
@Schema(description = "Código del error")
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public ValidationError message(String message) {
this.message = message;
return this;
}
/**
* Mensaje del error
* @return message
**/
@Schema(description = "Mensaje del error")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public ValidationError errors(List errors) {
this.errors = errors;
return this;
}
public ValidationError addErrorsItem(ErrorItem errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@Schema(description = "")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ValidationError validationError = (ValidationError) o;
return Objects.equals(this.status, validationError.status) &&
Objects.equals(this.message, validationError.message) &&
Objects.equals(this.errors, validationError.errors);
}
@Override
public int hashCode() {
return Objects.hash(status, message, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ValidationError {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy