package de.nccloud.common.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 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 * 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 * * Single property to sort by. */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Sort { @NotNull protected String property; @NotNull protected SortDirection direction; public Sort(String property, SortDirection direction) { this.property = property; this.direction = direction; } public Sort() { } /** * The property by which the results should be sorted. */ public String getProperty() { return property; } public void setProperty(String property) { this.property = property; } /** * The direction in which the results should be sorted. */ public SortDirection getDirection() { return direction; } public void setDirection(SortDirection direction) { this.direction = direction; } }