RicercaConfigurazioneApi.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 org.openspcoop2.utils.service.beans.TransazioneRuoloEnum;
  22. import javax.validation.constraints.*;

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

  26. public class RicercaConfigurazioneApi  {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private TransazioneRuoloEnum tipo = null;
  30.  
  31.   @Schema(description = "")
  32.   private FiltroApiSoggetti api = null;
  33.  
  34.   @Schema(description = "")
  35.   private FormatoReportConfigEnum formato = null;
  36.  /**
  37.    * Get tipo
  38.    * @return tipo
  39.   **/
  40.   @JsonProperty("tipo")
  41.   @NotNull
  42.   @Valid
  43.   public TransazioneRuoloEnum getTipo() {
  44.     return this.tipo;
  45.   }

  46.   public void setTipo(TransazioneRuoloEnum tipo) {
  47.     this.tipo = tipo;
  48.   }

  49.   public RicercaConfigurazioneApi tipo(TransazioneRuoloEnum tipo) {
  50.     this.tipo = tipo;
  51.     return this;
  52.   }

  53.  /**
  54.    * Get api
  55.    * @return api
  56.   **/
  57.   @JsonProperty("api")
  58.   @Valid
  59.   public FiltroApiSoggetti getApi() {
  60.     return this.api;
  61.   }

  62.   public void setApi(FiltroApiSoggetti api) {
  63.     this.api = api;
  64.   }

  65.   public RicercaConfigurazioneApi api(FiltroApiSoggetti api) {
  66.     this.api = api;
  67.     return this;
  68.   }

  69.  /**
  70.    * Get formato
  71.    * @return formato
  72.   **/
  73.   @JsonProperty("formato")
  74.   @Valid
  75.   public FormatoReportConfigEnum getFormato() {
  76.     return this.formato;
  77.   }

  78.   public void setFormato(FormatoReportConfigEnum formato) {
  79.     this.formato = formato;
  80.   }

  81.   public RicercaConfigurazioneApi formato(FormatoReportConfigEnum formato) {
  82.     this.formato = formato;
  83.     return this;
  84.   }


  85.   @Override
  86.   public String toString() {
  87.     StringBuilder sb = new StringBuilder();
  88.     sb.append("class RicercaConfigurazioneApi {\n");
  89.    
  90.     sb.append("    tipo: ").append(RicercaConfigurazioneApi.toIndentedString(this.tipo)).append("\n");
  91.     sb.append("    api: ").append(RicercaConfigurazioneApi.toIndentedString(this.api)).append("\n");
  92.     sb.append("    formato: ").append(RicercaConfigurazioneApi.toIndentedString(this.formato)).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. }