package io.gimbalabs.hilltop.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Double; import java.lang.Long; import java.lang.String; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-SNAPSHOT * User agent: apibuilder app.apibuilder.io/gimbalabs/hilltop-api/0.0.1-SNAPSHOT/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 * */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Stakepool { @NotNull protected String id; @NotNull protected String poolIdBech32; protected StakepoolMetadata metadata; @NotNull protected Long cost; @NotNull protected Double margin; @NotNull protected Long pledge; @NotNull protected Long activeStake; @NotNull protected Double saturation; protected Long retiringAtEpoch; public Stakepool(String id, String poolIdBech32, StakepoolMetadata metadata, Long cost, Double margin, Long pledge, Long activeStake, Double saturation, Long retiringAtEpoch) { this.id = id; this.poolIdBech32 = poolIdBech32; this.metadata = metadata; this.cost = cost; this.margin = margin; this.pledge = pledge; this.activeStake = activeStake; this.saturation = saturation; this.retiringAtEpoch = retiringAtEpoch; } public Stakepool() { } /** * the id of the pool */ public String getId() { return id; } public void setId(String id) { this.id = id; } /** * the id in bech32 format of the pool */ public String getPoolIdBech32() { return poolIdBech32; } public void setPoolIdBech32(String poolIdBech32) { this.poolIdBech32 = poolIdBech32; } public StakepoolMetadata getMetadata() { return metadata; } public void setMetadata(StakepoolMetadata metadata) { this.metadata = metadata; } /** * operational costs per epoch in lovelaces */ public Long getCost() { return cost; } public void setCost(Long cost) { this.cost = cost; } /** * operator margin, percentage (from 0 to 1) */ public Double getMargin() { return margin; } public void setMargin(Double margin) { this.margin = margin; } /** * pledge amount, in lovelaces */ public Long getPledge() { return pledge; } public void setPledge(Long pledge) { this.pledge = pledge; } /** * active stake for current epoch in lovelaces */ public Long getActiveStake() { return activeStake; } public void setActiveStake(Long activeStake) { this.activeStake = activeStake; } /** * pool saturation as percentage (0 to 1) */ public Double getSaturation() { return saturation; } public void setSaturation(Double saturation) { this.saturation = saturation; } /** * if defined, is the epoch at which the pool will retire */ public Long getRetiringAtEpoch() { return retiringAtEpoch; } public void setRetiringAtEpoch(Long retiringAtEpoch) { this.retiringAtEpoch = retiringAtEpoch; } }