package io.apibuilder.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Boolean; import java.lang.String; import java.util.List; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.14.3-46-g35788525 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-api/0.14.3-46-g35788525/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * Used only to validate json files - used as a resource where http status code defines success */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Validation { @NotNull protected Boolean valid; @NotNull protected List errors; public Validation(Boolean valid, List errors) { this.valid = valid; this.errors = errors; } public Validation() { } /** * If true, the json schema is valid. If false, there is at least one validation error. */ public Boolean getValid() { return valid; } public void setValid(Boolean valid) { this.valid = valid; } /** * Contains any validation errors that result from parsing the json document. If empty, the document is valid. */ public List getErrors() { return errors; } public void setErrors(List errors) { this.errors = errors; } }