package com.hbc.api.fraud.v0.models; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDocument; 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.0.0-slava * User agent: apibuilder app.apibuilder.io/hbc/api-fraud/0.0.0-slava/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 * * Customer model */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) @DynamoDBDocument public class Customer { @NotNull protected CustomerType customerType; @NotNull protected String accountId; @NotNull protected Date creationDate; @NotNull protected String firstName; @NotNull protected String lastName; @NotNull protected String emailAddress; public Customer(CustomerType customerType, String accountId, Date creationDate, String firstName, String lastName, String emailAddress) { this.customerType = customerType; this.accountId = accountId; this.creationDate = creationDate; this.firstName = firstName; this.lastName = lastName; this.emailAddress = emailAddress; } public Customer() { } @DynamoDBAttribute public CustomerType getCustomerType() { return customerType; } public void setCustomerType(CustomerType customerType) { this.customerType = customerType; } @DynamoDBAttribute public String getAccountId() { return accountId; } public void setAccountId(String accountId) { this.accountId = accountId; } @DynamoDBAttribute public Date getCreationDate() { return creationDate; } public void setCreationDate(Date creationDate) { this.creationDate = creationDate; } @DynamoDBAttribute public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } @DynamoDBAttribute public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @DynamoDBAttribute public String getEmailAddress() { return emailAddress; } public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } }