package io.apibuilder.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import java.util.Date; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.16.74 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-api/0.16.74/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 user sessions (e.g. user logged into site) */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Session { @NotNull protected String id; @NotNull protected Date expiresAt; public Session(String id, Date expiresAt) { this.id = id; this.expiresAt = expiresAt; } public Session() { } /** * Cryptographically secure session id */ public String getId() { return id; } public void setId(String id) { this.id = id; } public Date getExpiresAt() { return expiresAt; } public void setExpiresAt(Date expiresAt) { this.expiresAt = expiresAt; } }