package nm.joglog.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; 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.0.1-dev * User agent: apibuilder app.apibuilder.io/nicolai-moraru/joglog-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 * * User */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class User { @NotNull protected Integer id; @NotNull protected String username; @NotNull protected user.Role role; @NotNull protected Date createdAt; @NotNull protected Date updatedAt; public User(Integer id, String username, user.Role role, Date createdAt, Date updatedAt) { this.id = id; this.username = username; this.role = role; this.createdAt = createdAt; this.updatedAt = updatedAt; } public User() { } /** * Unique user id */ public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } /** * Username */ public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } /** * User Role */ public user.Role getRole() { return role; } public void setRole(user.Role role) { this.role = role; } /** * Creation date-time */ public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } /** * Last update date-time */ public Date getUpdatedAt() { return updatedAt; } public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; } }