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

  44.   public void setErogatore(String erogatore) {
  45.     this.erogatore = erogatore;
  46.   }

  47.   public FiltroApiSoggetti erogatore(String erogatore) {
  48.     this.erogatore = erogatore;
  49.     return this;
  50.   }

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

  60.   public void setSoggettoRemoto(String soggettoRemoto) {
  61.     this.soggettoRemoto = soggettoRemoto;
  62.   }

  63.   public FiltroApiSoggetti soggettoRemoto(String soggettoRemoto) {
  64.     this.soggettoRemoto = soggettoRemoto;
  65.     return this;
  66.   }

  67.  /**
  68.    * Get apiImplementata
  69.    * @return apiImplementata
  70.   **/
  71.   @JsonProperty("api_implementata")
  72.   @Valid
  73.   public FiltroApiImplementata getApiImplementata() {
  74.     return this.apiImplementata;
  75.   }

  76.   public void setApiImplementata(FiltroApiImplementata apiImplementata) {
  77.     this.apiImplementata = apiImplementata;
  78.   }

  79.   public FiltroApiSoggetti apiImplementata(FiltroApiImplementata apiImplementata) {
  80.     this.apiImplementata = apiImplementata;
  81.     return this;
  82.   }


  83.   @Override
  84.   public String toString() {
  85.     StringBuilder sb = new StringBuilder();
  86.     sb.append("class FiltroApiSoggetti {\n");
  87.     sb.append("    ").append(FiltroApiSoggetti.toIndentedString(super.toString())).append("\n");
  88.     sb.append("    erogatore: ").append(FiltroApiSoggetti.toIndentedString(this.erogatore)).append("\n");
  89.     sb.append("    soggettoRemoto: ").append(FiltroApiSoggetti.toIndentedString(this.soggettoRemoto)).append("\n");
  90.     sb.append("    apiImplementata: ").append(FiltroApiSoggetti.toIndentedString(this.apiImplementata)).append("\n");
  91.     sb.append("}");
  92.     return sb.toString();
  93.   }

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