Riepilogo.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.core.monitor.rs.server.model;

  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 Riepilogo  {
  26.  
  27.   @Schema(example = "2", required = true, description = "Il numero di api per cui il soggetto è referente")
  28.  /**
  29.    * Il numero di api per cui il soggetto è referente  
  30.   **/
  31.   private Integer api = null;
  32.  
  33.   @Schema(description = "")
  34.   private String soggetto = null;
  35.  
  36.   @Schema(example = "2", required = true, description = "Il numero di erogazioni del soggetto")
  37.  /**
  38.    * Il numero di erogazioni del soggetto  
  39.   **/
  40.   private Integer erogazioni = null;
  41.  
  42.   @Schema(example = "2", required = true, description = "Il numero di fruizioni del soggetto")
  43.  /**
  44.    * Il numero di fruizioni del soggetto  
  45.   **/
  46.   private Integer fruizioni = null;
  47.  
  48.   @Schema(required = true, description = "")
  49.   private Integer soggettiDominioInterno = null;
  50.  
  51.   @Schema(required = true, description = "")
  52.   private Integer soggettiDominioEsterno = null;
  53.  
  54.   @Schema(required = true, description = "")
  55.   private Integer applicativi = null;
  56.  /**
  57.    * Il numero di api per cui il soggetto è referente
  58.    * @return api
  59.   **/
  60.   @JsonProperty("api")
  61.   @NotNull
  62.   @Valid
  63.   public Integer getApi() {
  64.     return this.api;
  65.   }

  66.   public void setApi(Integer api) {
  67.     this.api = api;
  68.   }

  69.   public Riepilogo api(Integer api) {
  70.     this.api = api;
  71.     return this;
  72.   }

  73.  /**
  74.    * Get soggetto
  75.    * @return soggetto
  76.   **/
  77.   @JsonProperty("soggetto")
  78.   @Valid
  79.  @Pattern(regexp="^[0-9A-Za-z][\\-A-Za-z0-9]*$") @Size(max=255)  public String getSoggetto() {
  80.     return this.soggetto;
  81.   }

  82.   public void setSoggetto(String soggetto) {
  83.     this.soggetto = soggetto;
  84.   }

  85.   public Riepilogo soggetto(String soggetto) {
  86.     this.soggetto = soggetto;
  87.     return this;
  88.   }

  89.  /**
  90.    * Il numero di erogazioni del soggetto
  91.    * @return erogazioni
  92.   **/
  93.   @JsonProperty("erogazioni")
  94.   @NotNull
  95.   @Valid
  96.   public Integer getErogazioni() {
  97.     return this.erogazioni;
  98.   }

  99.   public void setErogazioni(Integer erogazioni) {
  100.     this.erogazioni = erogazioni;
  101.   }

  102.   public Riepilogo erogazioni(Integer erogazioni) {
  103.     this.erogazioni = erogazioni;
  104.     return this;
  105.   }

  106.  /**
  107.    * Il numero di fruizioni del soggetto
  108.    * @return fruizioni
  109.   **/
  110.   @JsonProperty("fruizioni")
  111.   @NotNull
  112.   @Valid
  113.   public Integer getFruizioni() {
  114.     return this.fruizioni;
  115.   }

  116.   public void setFruizioni(Integer fruizioni) {
  117.     this.fruizioni = fruizioni;
  118.   }

  119.   public Riepilogo fruizioni(Integer fruizioni) {
  120.     this.fruizioni = fruizioni;
  121.     return this;
  122.   }

  123.  /**
  124.    * Get soggettiDominioInterno
  125.    * @return soggettiDominioInterno
  126.   **/
  127.   @JsonProperty("soggetti_dominio_interno")
  128.   @NotNull
  129.   @Valid
  130.   public Integer getSoggettiDominioInterno() {
  131.     return this.soggettiDominioInterno;
  132.   }

  133.   public void setSoggettiDominioInterno(Integer soggettiDominioInterno) {
  134.     this.soggettiDominioInterno = soggettiDominioInterno;
  135.   }

  136.   public Riepilogo soggettiDominioInterno(Integer soggettiDominioInterno) {
  137.     this.soggettiDominioInterno = soggettiDominioInterno;
  138.     return this;
  139.   }

  140.  /**
  141.    * Get soggettiDominioEsterno
  142.    * @return soggettiDominioEsterno
  143.   **/
  144.   @JsonProperty("soggetti_dominio_esterno")
  145.   @NotNull
  146.   @Valid
  147.   public Integer getSoggettiDominioEsterno() {
  148.     return this.soggettiDominioEsterno;
  149.   }

  150.   public void setSoggettiDominioEsterno(Integer soggettiDominioEsterno) {
  151.     this.soggettiDominioEsterno = soggettiDominioEsterno;
  152.   }

  153.   public Riepilogo soggettiDominioEsterno(Integer soggettiDominioEsterno) {
  154.     this.soggettiDominioEsterno = soggettiDominioEsterno;
  155.     return this;
  156.   }

  157.  /**
  158.    * Get applicativi
  159.    * @return applicativi
  160.   **/
  161.   @JsonProperty("applicativi")
  162.   @NotNull
  163.   @Valid
  164.   public Integer getApplicativi() {
  165.     return this.applicativi;
  166.   }

  167.   public void setApplicativi(Integer applicativi) {
  168.     this.applicativi = applicativi;
  169.   }

  170.   public Riepilogo applicativi(Integer applicativi) {
  171.     this.applicativi = applicativi;
  172.     return this;
  173.   }


  174.   @Override
  175.   public String toString() {
  176.     StringBuilder sb = new StringBuilder();
  177.     sb.append("class Riepilogo {\n");
  178.    
  179.     sb.append("    api: ").append(Riepilogo.toIndentedString(this.api)).append("\n");
  180.     sb.append("    soggetto: ").append(Riepilogo.toIndentedString(this.soggetto)).append("\n");
  181.     sb.append("    erogazioni: ").append(Riepilogo.toIndentedString(this.erogazioni)).append("\n");
  182.     sb.append("    fruizioni: ").append(Riepilogo.toIndentedString(this.fruizioni)).append("\n");
  183.     sb.append("    soggettiDominioInterno: ").append(Riepilogo.toIndentedString(this.soggettiDominioInterno)).append("\n");
  184.     sb.append("    soggettiDominioEsterno: ").append(Riepilogo.toIndentedString(this.soggettiDominioEsterno)).append("\n");
  185.     sb.append("    applicativi: ").append(Riepilogo.toIndentedString(this.applicativi)).append("\n");
  186.     sb.append("}");
  187.     return sb.toString();
  188.   }

  189.   /**
  190.    * Convert the given object to string with each line indented by 4 spaces
  191.    * (except the first line).
  192.    */
  193.   private static String toIndentedString(java.lang.Object o) {
  194.     if (o == null) {
  195.       return "null";
  196.     }
  197.     return o.toString().replace("\n", "\n    ");
  198.   }
  199. }