FiltroApiImplementata.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 FiltroApiImplementata  {
  26.  
  27.   @Schema(description = "")
  28.   private String referente = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private String nome = null;
  32.  
  33.   @Schema(required = true, description = "")
  34.   private Integer versione = null;
  35.  /**
  36.    * Get referente
  37.    * @return referente
  38.   **/
  39.   @JsonProperty("referente")
  40.   @Valid
  41.  @Pattern(regexp="^[0-9A-Za-z][\\-A-Za-z0-9]*$") @Size(max=255)  public String getReferente() {
  42.     return this.referente;
  43.   }

  44.   public void setReferente(String referente) {
  45.     this.referente = referente;
  46.   }

  47.   public FiltroApiImplementata referente(String referente) {
  48.     this.referente = referente;
  49.     return this;
  50.   }

  51.  /**
  52.    * Get nome
  53.    * @return nome
  54.   **/
  55.   @JsonProperty("nome")
  56.   @NotNull
  57.   @Valid
  58.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  59.     return this.nome;
  60.   }

  61.   public void setNome(String nome) {
  62.     this.nome = nome;
  63.   }

  64.   public FiltroApiImplementata nome(String nome) {
  65.     this.nome = nome;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get versione
  70.    * @return versione
  71.   **/
  72.   @JsonProperty("versione")
  73.   @NotNull
  74.   @Valid
  75.   public Integer getVersione() {
  76.     return this.versione;
  77.   }

  78.   public void setVersione(Integer versione) {
  79.     this.versione = versione;
  80.   }

  81.   public FiltroApiImplementata versione(Integer versione) {
  82.     this.versione = versione;
  83.     return this;
  84.   }


  85.   @Override
  86.   public String toString() {
  87.     StringBuilder sb = new StringBuilder();
  88.     sb.append("class FiltroApiImplementata {\n");
  89.    
  90.     sb.append("    referente: ").append(FiltroApiImplementata.toIndentedString(this.referente)).append("\n");
  91.     sb.append("    nome: ").append(FiltroApiImplementata.toIndentedString(this.nome)).append("\n");
  92.     sb.append("    versione: ").append(FiltroApiImplementata.toIndentedString(this.versione)).append("\n");
  93.     sb.append("}");
  94.     return sb.toString();
  95.   }

  96.   /**
  97.    * Convert the given object to string with each line indented by 4 spaces
  98.    * (except the first line).
  99.    */
  100.   private static String toIndentedString(java.lang.Object o) {
  101.     if (o == null) {
  102.       return "null";
  103.     }
  104.     return o.toString().replace("\n", "\n    ");
  105.   }
  106. }