package de.nccloud.common.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.util.Map; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1 * User agent: apibuilder app.apibuilder.io/nccloud/common/0.0.1/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 * * An error returned on failed API requests. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class GenericError { protected ErrorLinks links; @NotNull protected String code; @NotNull protected String title; @NotNull protected String detail; protected ErrorSource source; protected Map meta; public GenericError(ErrorLinks links, String code, String title, String detail, ErrorSource source, Map meta) { this.links = links; this.code = code; this.title = title; this.detail = detail; this.source = source; this.meta = meta; } public GenericError() { } public ErrorLinks getLinks() { return links; } public void setLinks(ErrorLinks links) { this.links = links; } /** * An app specific error code. */ public String getCode() { return code; } public void setCode(String code) { this.code = code; } /** * A short human readable summary of the problem. */ public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } /** * A human readable explanation of the problem. */ public String getDetail() { return detail; } public void setDetail(String detail) { this.detail = detail; } public ErrorSource getSource() { return source; } public void setSource(ErrorSource source) { this.source = source; } /** * Non-standard meta-information about the error. */ public Map getMeta() { return meta; } public void setMeta(Map meta) { this.meta = meta; } }