InfoImplementazioneApi.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 InfoImplementazioneApi  {
  26.  
  27.   @Schema(description = "")
  28.   private String nome = null;
  29.  
  30.   @Schema(description = "")
  31.   private String tipo = null;
  32.  
  33.   @Schema(description = "")
  34.   private Integer versione = null;
  35.  
  36.   @Schema(description = "")
  37.   private String soggetto = null;
  38.  
  39.   @Schema(example = "20", description = "Il numero di azioni\\risorse della api")
  40.  /**
  41.    * Il numero di azioni\\risorse della api  
  42.   **/
  43.   private Integer azioni = null;
  44.  
  45.   @Schema(example = "2", description = "Il numero di erogazioni che implementano la api")
  46.  /**
  47.    * Il numero di erogazioni che implementano la api  
  48.   **/
  49.   private Integer erogazioni = null;
  50.  
  51.   @Schema(example = "2", description = "Il numero di fruizioni che implementano la api")
  52.  /**
  53.    * Il numero di fruizioni che implementano la api  
  54.   **/
  55.   private Integer fruizioni = null;
  56.  /**
  57.    * Get nome
  58.    * @return nome
  59.   **/
  60.   @JsonProperty("nome")
  61.   @Valid
  62.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  63.     return this.nome;
  64.   }

  65.   public void setNome(String nome) {
  66.     this.nome = nome;
  67.   }

  68.   public InfoImplementazioneApi nome(String nome) {
  69.     this.nome = nome;
  70.     return this;
  71.   }

  72.  /**
  73.    * Get tipo
  74.    * @return tipo
  75.   **/
  76.   @JsonProperty("tipo")
  77.   @Valid
  78.  @Pattern(regexp="^[a-z]{2,20}$") @Size(max=20)  public String getTipo() {
  79.     return this.tipo;
  80.   }

  81.   public void setTipo(String tipo) {
  82.     this.tipo = tipo;
  83.   }

  84.   public InfoImplementazioneApi tipo(String tipo) {
  85.     this.tipo = tipo;
  86.     return this;
  87.   }

  88.  /**
  89.    * Get versione
  90.    * @return versione
  91.   **/
  92.   @JsonProperty("versione")
  93.   @Valid
  94.   public Integer getVersione() {
  95.     return this.versione;
  96.   }

  97.   public void setVersione(Integer versione) {
  98.     this.versione = versione;
  99.   }

  100.   public InfoImplementazioneApi versione(Integer versione) {
  101.     this.versione = versione;
  102.     return this;
  103.   }

  104.  /**
  105.    * Get soggetto
  106.    * @return soggetto
  107.   **/
  108.   @JsonProperty("soggetto")
  109.   @Valid
  110.  @Pattern(regexp="^[0-9A-Za-z][\\-A-Za-z0-9]*$") @Size(max=255)  public String getSoggetto() {
  111.     return this.soggetto;
  112.   }

  113.   public void setSoggetto(String soggetto) {
  114.     this.soggetto = soggetto;
  115.   }

  116.   public InfoImplementazioneApi soggetto(String soggetto) {
  117.     this.soggetto = soggetto;
  118.     return this;
  119.   }

  120.  /**
  121.    * Il numero di azioni\\risorse della api
  122.    * @return azioni
  123.   **/
  124.   @JsonProperty("azioni")
  125.   @Valid
  126.   public Integer getAzioni() {
  127.     return this.azioni;
  128.   }

  129.   public void setAzioni(Integer azioni) {
  130.     this.azioni = azioni;
  131.   }

  132.   public InfoImplementazioneApi azioni(Integer azioni) {
  133.     this.azioni = azioni;
  134.     return this;
  135.   }

  136.  /**
  137.    * Il numero di erogazioni che implementano la api
  138.    * @return erogazioni
  139.   **/
  140.   @JsonProperty("erogazioni")
  141.   @Valid
  142.   public Integer getErogazioni() {
  143.     return this.erogazioni;
  144.   }

  145.   public void setErogazioni(Integer erogazioni) {
  146.     this.erogazioni = erogazioni;
  147.   }

  148.   public InfoImplementazioneApi erogazioni(Integer erogazioni) {
  149.     this.erogazioni = erogazioni;
  150.     return this;
  151.   }

  152.  /**
  153.    * Il numero di fruizioni che implementano la api
  154.    * @return fruizioni
  155.   **/
  156.   @JsonProperty("fruizioni")
  157.   @Valid
  158.   public Integer getFruizioni() {
  159.     return this.fruizioni;
  160.   }

  161.   public void setFruizioni(Integer fruizioni) {
  162.     this.fruizioni = fruizioni;
  163.   }

  164.   public InfoImplementazioneApi fruizioni(Integer fruizioni) {
  165.     this.fruizioni = fruizioni;
  166.     return this;
  167.   }


  168.   @Override
  169.   public String toString() {
  170.     StringBuilder sb = new StringBuilder();
  171.     sb.append("class InfoImplementazioneApi {\n");
  172.    
  173.     sb.append("    nome: ").append(InfoImplementazioneApi.toIndentedString(this.nome)).append("\n");
  174.     sb.append("    tipo: ").append(InfoImplementazioneApi.toIndentedString(this.tipo)).append("\n");
  175.     sb.append("    versione: ").append(InfoImplementazioneApi.toIndentedString(this.versione)).append("\n");
  176.     sb.append("    soggetto: ").append(InfoImplementazioneApi.toIndentedString(this.soggetto)).append("\n");
  177.     sb.append("    azioni: ").append(InfoImplementazioneApi.toIndentedString(this.azioni)).append("\n");
  178.     sb.append("    erogazioni: ").append(InfoImplementazioneApi.toIndentedString(this.erogazioni)).append("\n");
  179.     sb.append("    fruizioni: ").append(InfoImplementazioneApi.toIndentedString(this.fruizioni)).append("\n");
  180.     sb.append("}");
  181.     return sb.toString();
  182.   }

  183.   /**
  184.    * Convert the given object to string with each line indented by 4 spaces
  185.    * (except the first line).
  186.    */
  187.   private static String toIndentedString(java.lang.Object o) {
  188.     if (o == null) {
  189.       return "null";
  190.     }
  191.     return o.toString().replace("\n", "\n    ");
  192.   }
  193. }