package DaniTest.competition.api.from.swagger.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; 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-swagger-public * User agent: apibuilder app.apibuilder.io/danitest/competition-api-from-swagger/0.0.1-swagger-public/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 * * The vote is created by voter and it concern for a competition_participant */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Vote { @NotNull protected UUID guid; @NotNull protected UUID competitionParticipantId; @NotNull protected UUID voterId; @NotNull protected String type; @NotNull protected Integer points; public Vote(UUID guid, UUID competitionParticipantId, UUID voterId, String type, Integer points) { this.guid = guid; this.competitionParticipantId = competitionParticipantId; this.voterId = voterId; this.type = type; this.points = points; } public Vote() { } /** * Internal unique identifier for this voter. */ public UUID getGuid() { return guid; } public void setGuid(UUID guid) { this.guid = guid; } public UUID getCompetitionParticipantId() { return competitionParticipantId; } public void setCompetitionParticipantId(UUID competitionParticipantId) { this.competitionParticipantId = competitionParticipantId; } public UUID getVoterId() { return voterId; } public void setVoterId(UUID voterId) { this.voterId = voterId; } public String getType() { return type; } public void setType(String type) { this.type = type; } public Integer getPoints() { return points; } public void setPoints(Integer points) { this.points = points; } }