package de.nccloud.common.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; 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 * * Form containing paging information. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class PagingForm { @NotNull protected Integer offset; @NotNull protected Integer limit; protected List sort; public PagingForm(Integer offset, Integer limit, List sort) { this.offset = offset; this.limit = limit; this.sort = sort; } public PagingForm() { } /** * Offset of the current page. The pages are 0-indexed, meaning the first page starts at 0. */ public Integer getOffset() { return offset; } public void setOffset(Integer offset) { this.offset = offset; } /** * The number of results to be returned by the api. */ public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } /** * Defines multiple properties for the results to be sorted by. The order of the definition defines the priority. If omitted, the service will use an implementation dependent default sort. */ public List getSort() { return sort; } public void setSort(List sort) { this.sort = sort; } }