package io.apibuilder.spec.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 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.12.14 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-spec/0.12.14/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 * */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Resource { @NotNull protected String type; @NotNull protected String plural; protected String path; protected String description; protected Deprecation deprecation; @NotNull protected List operations; @NotNull protected List attributes; public Resource(String type, String plural, String path, String description, Deprecation deprecation, List operations, List attributes) { this.type = type; this.plural = plural; this.path = path; this.description = description; this.deprecation = deprecation; this.operations = operations; this.attributes = attributes; } public Resource() { } /** * The type of this resource will map to a defined model, enum, or union type */ public String getType() { return type; } public void setType(String type) { this.type = type; } public String getPlural() { return plural; } public void setPlural(String plural) { this.plural = plural; } /** * The path to this specific resource. This was added in 2016 to help us differentiate between the resource path and the operation path which can be helpful when, for example, generating method names for operations. This field is optional as some of our input formats (e.g. swagger) do not explicitly differentiate resoure paths. */ public String getPath() { return path; } public void setPath(String path) { this.path = path; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Deprecation getDeprecation() { return deprecation; } public void setDeprecation(Deprecation deprecation) { this.deprecation = deprecation; } public List getOperations() { return operations; } public void setOperations(List operations) { this.operations = operations; } public List getAttributes() { return attributes; } public void setAttributes(List attributes) { this.attributes = attributes; } }