package com.afrosoft.apibuilder.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.util.UUID; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/secret/apibuilder-api/0.0.1-dev/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 * * Represents a unique version of the application. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Version { @NotNull protected UUID guid; @NotNull protected io.apibuilder.common.v0.models.Reference organization; @NotNull protected io.apibuilder.common.v0.models.Reference application; @NotNull protected String version; protected Original original; @NotNull protected io.apibuilder.spec.v0.models.Service service; @NotNull protected io.apibuilder.common.v0.models.Audit audit; public Version(UUID guid, io.apibuilder.common.v0.models.Reference organization, io.apibuilder.common.v0.models.Reference application, String version, Original original, io.apibuilder.spec.v0.models.Service service, io.apibuilder.common.v0.models.Audit audit) { this.guid = guid; this.organization = organization; this.application = application; this.version = version; this.original = original; this.service = service; this.audit = audit; } public Version() { } /** * Internal unique identifier for this version. */ public UUID getGuid() { return guid; } public void setGuid(UUID guid) { this.guid = guid; } public io.apibuilder.common.v0.models.Reference getOrganization() { return organization; } public void setOrganization(io.apibuilder.common.v0.models.Reference organization) { this.organization = organization; } public io.apibuilder.common.v0.models.Reference getApplication() { return application; } public void setApplication(io.apibuilder.common.v0.models.Reference application) { this.application = application; } /** * The tag for this version. Can be anything, but if semver style version number is used, we automatically correctly sort by version number to find latest. Otherwise latest version is considered to be the most recently created. */ public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } /** * The original uploaded file describing this version, if available */ public Original getOriginal() { return original; } public void setOriginal(Original original) { this.original = original; } /** * spec/spec.json description of this API */ public io.apibuilder.spec.v0.models.Service getService() { return service; } public void setService(io.apibuilder.spec.v0.models.Service service) { this.service = service; } public io.apibuilder.common.v0.models.Audit getAudit() { return audit; } public void setAudit(io.apibuilder.common.v0.models.Audit audit) { this.audit = audit; } }