package de.nccloud.common.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; import java.lang.Long; import java.util.List; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1 * User agent: apibuilder app.apibuilder.io/nccloud/common/0.0.1/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 * * Paging information returned from a paged request. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class PageResponse { @NotNull protected Integer offset; @NotNull protected Integer limit; @NotNull protected List sort; @NotNull protected Long totalResults; @NotNull protected Long totalPages; public PageResponse(Integer offset, Integer limit, List sort, Long totalResults, Long totalPages) { this.offset = offset; this.limit = limit; this.sort = sort; this.totalResults = totalResults; this.totalPages = totalPages; } public PageResponse() { } public Integer getOffset() { return offset; } public void setOffset(Integer offset) { this.offset = offset; } public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } public List getSort() { return sort; } public void setSort(List sort) { this.sort = sort; } /** * Total number of results that can potentially be returned. */ public Long getTotalResults() { return totalResults; } public void setTotalResults(Long totalResults) { this.totalResults = totalResults; } /** * Total number of pages that can potentially be returned. */ public Long getTotalPages() { return totalPages; } public void setTotalPages(Long totalPages) { this.totalPages = totalPages; } }