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 Union { @NotNull protected String name; @NotNull protected String plural; protected String discriminator; protected String description; protected Deprecation deprecation; @NotNull protected List types; @NotNull protected List attributes; public Union(String name, String plural, String discriminator, String description, Deprecation deprecation, List types, List attributes) { this.name = name; this.plural = plural; this.discriminator = discriminator; this.description = description; this.deprecation = deprecation; this.types = types; this.attributes = attributes; } public Union() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPlural() { return plural; } public void setPlural(String plural) { this.plural = plural; } /** * If a type discriminator is provided, serialization of these union types will always contain a field named with the value of the discriminator that will contain the name of the type. This provides a simpler (for many use cases) JSON serialization/deserialization mechanism. When specified, apibuilder itself will verify that none of the types in the union type itself contain a field with the same name as the discriminator */ public String getDiscriminator() { return discriminator; } public void setDiscriminator(String discriminator) { this.discriminator = discriminator; } 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; } /** * The names of the types that make up this union type */ public List getTypes() { return types; } public void setTypes(List types) { this.types = types; } public List getAttributes() { return attributes; } public void setAttributes(List attributes) { this.attributes = attributes; } }