ListaSenzaTotale.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.utils.service.beans;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. public class ListaSenzaTotale  {
  26.  
  27.   @Schema(required = true, description = "The zero-ary offset index into the results")
  28.  /**
  29.    * The zero-ary offset index into the results  
  30.   **/
  31.   private Long offset = null;
  32.  
  33.   @Schema(required = true, description = "How many items to return at one time")
  34.  /**
  35.    * How many items to return at one time  
  36.   **/
  37.   private Integer limit = null;
  38.  
  39.   @Schema(description = "Link to first result page. Null if you are already on first page.")
  40.  /**
  41.    * Link to first result page. Null if you are already on first page.  
  42.   **/
  43.   private String first = null;
  44.  
  45.   @Schema(description = "Link to next result page. Null if you are on last page.")
  46.  /**
  47.    * Link to next result page. Null if you are on last page.  
  48.   **/
  49.   private String next = null;
  50.  
  51.   @Schema(description = "Link to previous result page. Null if you are on first page.")
  52.  /**
  53.    * Link to previous result page. Null if you are on first page.  
  54.   **/
  55.   private String prev = null;
  56.  /**
  57.    * The zero-ary offset index into the results
  58.    * @return offset
  59.   **/
  60.   @JsonProperty("offset")
  61.   @NotNull
  62.   @Valid
  63.   public Long getOffset() {
  64.     return this.offset;
  65.   }

  66.   public void setOffset(Long offset) {
  67.     this.offset = offset;
  68.   }

  69.   public ListaSenzaTotale offset(Long offset) {
  70.     this.offset = offset;
  71.     return this;
  72.   }

  73.  /**
  74.    * How many items to return at one time
  75.    * @return limit
  76.   **/
  77.   @JsonProperty("limit")
  78.   @NotNull
  79.   @Valid
  80.   public Integer getLimit() {
  81.     return this.limit;
  82.   }

  83.   public void setLimit(Integer limit) {
  84.     this.limit = limit;
  85.   }

  86.   public ListaSenzaTotale limit(Integer limit) {
  87.     this.limit = limit;
  88.     return this;
  89.   }

  90.  /**
  91.    * Link to first result page. Null if you are already on first page.
  92.    * @return first
  93.   **/
  94.   @JsonProperty("first")
  95.   @Valid
  96.   public String getFirst() {
  97.     return this.first;
  98.   }

  99.   public void setFirst(String first) {
  100.     this.first = first;
  101.   }

  102.   public ListaSenzaTotale first(String first) {
  103.     this.first = first;
  104.     return this;
  105.   }

  106.  /**
  107.    * Link to next result page. Null if you are on last page.
  108.    * @return next
  109.   **/
  110.   @JsonProperty("next")
  111.   @Valid
  112.   public String getNext() {
  113.     return this.next;
  114.   }

  115.   public void setNext(String next) {
  116.     this.next = next;
  117.   }

  118.   public ListaSenzaTotale next(String next) {
  119.     this.next = next;
  120.     return this;
  121.   }

  122.  /**
  123.    * Link to previous result page. Null if you are on first page.
  124.    * @return prev
  125.   **/
  126.   @JsonProperty("prev")
  127.   @Valid
  128.   public String getPrev() {
  129.     return this.prev;
  130.   }

  131.   public void setPrev(String prev) {
  132.     this.prev = prev;
  133.   }

  134.   public ListaSenzaTotale prev(String prev) {
  135.     this.prev = prev;
  136.     return this;
  137.   }


  138.   @Override
  139.   public String toString() {
  140.     StringBuilder sb = new StringBuilder();
  141.     sb.append("class ListaSenzaTotale {\n");
  142.    
  143.     sb.append("    offset: ").append(ListaSenzaTotale.toIndentedString(this.offset)).append("\n");
  144.     sb.append("    limit: ").append(ListaSenzaTotale.toIndentedString(this.limit)).append("\n");
  145.     sb.append("    first: ").append(ListaSenzaTotale.toIndentedString(this.first)).append("\n");
  146.     sb.append("    next: ").append(ListaSenzaTotale.toIndentedString(this.next)).append("\n");
  147.     sb.append("    prev: ").append(ListaSenzaTotale.toIndentedString(this.prev)).append("\n");
  148.     sb.append("}");
  149.     return sb.toString();
  150.   }

  151.   /**
  152.    * Convert the given object to string with each line indented by 4 spaces
  153.    * (except the first line).
  154.    */
  155.   private static String toIndentedString(java.lang.Object o) {
  156.     if (o == null) {
  157.       return "null";
  158.     }
  159.     return o.toString().replace("\n", "\n    ");
  160.   }
  161. }