package io.cheng.flowerate.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Double; import java.lang.Long; 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/chenggit/flowerate/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 * * flowerate response for exchange rate between two currencies */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class RateBetweenResponse { @NotNull protected Currency base; @NotNull protected Currency target; @NotNull protected Double rate; @NotNull protected Long timestamp; public RateBetweenResponse(Currency base, Currency target, Double rate, Long timestamp) { this.base = base; this.target = target; this.rate = rate; this.timestamp = timestamp; } public RateBetweenResponse() { } /** * base currency */ public Currency getBase() { return base; } public void setBase(Currency base) { this.base = base; } /** * targey currency */ public Currency getTarget() { return target; } public void setTarget(Currency target) { this.target = target; } /** * exchange rate, target currency to base currency */ public Double getRate() { return rate; } public void setRate(Double rate) { this.rate = rate; } /** * epoch timestamp of returned exchange rate */ public Long getTimestamp() { return timestamp; } public void setTimestamp(Long timestamp) { this.timestamp = timestamp; } }