package com.hbc.api.fraud.v0.models; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable; 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.2 * User agent: apibuilder app.apibuilder.io/hbc/api-fraud/0.0.2/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 * * Response model to OMS containing the transaction they've sent and the decision we've made */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) @DynamoDBTable( tableName = "fraud_service_orders_dev" ) public class DBRecord { @NotNull protected String transactionId; protected Date lastModifiedDate; protected Date createdDate; @NotNull protected Transaction transaction; @NotNull protected Decision decision; public DBRecord(String transactionId, Date lastModifiedDate, Date createdDate, Transaction transaction, Decision decision) { this.transactionId = transactionId; this.lastModifiedDate = lastModifiedDate; this.createdDate = createdDate; this.transaction = transaction; this.decision = decision; } public DBRecord() { } @DynamoDBHashKey( attributeName = "transactionId" ) public String getTransactionId() { return transactionId; } public void setTransactionId(String transactionId) { this.transactionId = transactionId; } @DynamoDBRangeKey( attributeName = "lastModifiedDate" ) public Date getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** * Date this record was first created within the database */ @DynamoDBAttribute public Date getCreatedDate() { return createdDate; } public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } @DynamoDBAttribute public Transaction getTransaction() { return transaction; } public void setTransaction(Transaction transaction) { this.transaction = transaction; } @DynamoDBAttribute public Decision getDecision() { return decision; } public void setDecision(Decision decision) { this.decision = decision; } }