package com.gilt.public_.api.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.util.Date; import java.util.List; import java.util.Map; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.1 * User agent: apibuilder app.apibuilder.io/gilt/gilt-public-api/1.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 * */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class SaleDetail { @NotNull protected String name; @NotNull protected String sale; @NotNull protected String saleKey; @NotNull protected Store store; protected String description; @NotNull protected String saleUrl; @NotNull protected Date begins; protected Date ends; @NotNull protected Map imageUrls; protected List products; public SaleDetail(String name, String sale, String saleKey, Store store, String description, String saleUrl, Date begins, Date ends, Map imageUrls, List products) { this.name = name; this.sale = sale; this.saleKey = saleKey; this.store = store; this.description = description; this.saleUrl = saleUrl; this.begins = begins; this.ends = ends; this.imageUrls = imageUrls; this.products = products; } public SaleDetail() { } /** * Sale name */ public String getName() { return name; } public void setName(String name) { this.name = name; } /** * URL to single sale object */ public String getSale() { return sale; } public void setSale(String sale) { this.sale = sale; } /** * unique identifier for sale */ public String getSaleKey() { return saleKey; } public void setSaleKey(String saleKey) { this.saleKey = saleKey; } /** * Store key */ public Store getStore() { return store; } public void setStore(Store store) { this.store = store; } /** * A description of the sale's theme or brand */ public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } /** * Permalink to sale website */ public String getSaleUrl() { return saleUrl; } public void setSaleUrl(String saleUrl) { this.saleUrl = saleUrl; } /** * ISO8601-formatted time for beginning of sale */ public Date getBegins() { return begins; } public void setBegins(Date begins) { this.begins = begins; } /** * ISO-8601-formatted time for end of sale */ public Date getEnds() { return ends; } public void setEnds(Date ends) { this.ends = ends; } /** * A map of key/value pairs with the key being the image resolution WIDTHxHEIGHT and the value being an array of image objects. */ public Map getImageUrls() { return imageUrls; } public void setImageUrls(Map imageUrls) { this.imageUrls = imageUrls; } /** * List of URLs to individual product objects (not available if sale is upcoming or sold out) */ public List getProducts() { return products; } public void setProducts(List products) { this.products = products; } }