RicercaStatisticaDistribuzioneApi.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 RicercaStatisticaDistribuzioneApi extends RicercaBaseStatistica {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private OpzioniGenerazioneReportDimensioni report = null;
  29.  
  30.   @Schema(description = "")
  31.   private BaseOggettoWithSimpleName soggettoErogatore = null;
  32.  
  33.   @Schema(description = "")
  34.   private Boolean distinguiApiImplementata = true;
  35.  
  36.   @Schema(description = "")
  37.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "identificazione", visible = true )
  38.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  39.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneSoggetto.class, name = "erogazione_soggetto"),
  40.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteFruizioneApplicativo.class, name = "fruizione_applicativo"),
  41.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneApplicativo.class, name = "erogazione_applicativo"),
  42.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIdAutenticato.class, name = "identificativo_autenticato"),
  43.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaimSoggetto.class, name = "erogazione_token_info"),
  44.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaim.class, name = "token_info"),
  45.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIndirizzoIP.class, name = "indirizzo_ip")  })
  46.   private OneOfRicercaStatisticaDistribuzioneApiMittente mittente = null;
  47.  
  48.   @Schema(description = "")
  49.   private FiltroEsito esito = null;
  50.  /**
  51.    * Get report
  52.    * @return report
  53.   **/
  54.   @JsonProperty("report")
  55.   @NotNull
  56.   @Valid
  57.   public OpzioniGenerazioneReportDimensioni getReport() {
  58.     return this.report;
  59.   }

  60.   public void setReport(OpzioniGenerazioneReportDimensioni report) {
  61.     this.report = report;
  62.   }

  63.   public RicercaStatisticaDistribuzioneApi report(OpzioniGenerazioneReportDimensioni report) {
  64.     this.report = report;
  65.     return this;
  66.   }

  67.  /**
  68.    * Get soggettoErogatore
  69.    * @return soggettoErogatore
  70.   **/
  71.   @JsonProperty("soggetto_erogatore")
  72.   @Valid
  73.   public BaseOggettoWithSimpleName getSoggettoErogatore() {
  74.     return this.soggettoErogatore;
  75.   }

  76.   public void setSoggettoErogatore(BaseOggettoWithSimpleName soggettoErogatore) {
  77.     this.soggettoErogatore = soggettoErogatore;
  78.   }

  79.   public RicercaStatisticaDistribuzioneApi soggettoErogatore(BaseOggettoWithSimpleName soggettoErogatore) {
  80.     this.soggettoErogatore = soggettoErogatore;
  81.     return this;
  82.   }

  83.  /**
  84.    * Get distinguiApiImplementata
  85.    * @return distinguiApiImplementata
  86.   **/
  87.   @JsonProperty("distingui_api_implementata")
  88.   @Valid
  89.   public Boolean isDistinguiApiImplementata() {
  90.     return this.distinguiApiImplementata;
  91.   }

  92.   public void setDistinguiApiImplementata(Boolean distinguiApiImplementata) {
  93.     this.distinguiApiImplementata = distinguiApiImplementata;
  94.   }

  95.   public RicercaStatisticaDistribuzioneApi distinguiApiImplementata(Boolean distinguiApiImplementata) {
  96.     this.distinguiApiImplementata = distinguiApiImplementata;
  97.     return this;
  98.   }

  99.  /**
  100.    * Get mittente
  101.    * @return mittente
  102.   **/
  103.   @JsonProperty("mittente")
  104.   @Valid
  105.   public OneOfRicercaStatisticaDistribuzioneApiMittente getMittente() {
  106.     return this.mittente;
  107.   }

  108.   public void setMittente(OneOfRicercaStatisticaDistribuzioneApiMittente mittente) {
  109.     this.mittente = mittente;
  110.   }

  111.   public RicercaStatisticaDistribuzioneApi mittente(OneOfRicercaStatisticaDistribuzioneApiMittente mittente) {
  112.     this.mittente = mittente;
  113.     return this;
  114.   }

  115.  /**
  116.    * Get esito
  117.    * @return esito
  118.   **/
  119.   @JsonProperty("esito")
  120.   @Valid
  121.   public FiltroEsito getEsito() {
  122.     return this.esito;
  123.   }

  124.   public void setEsito(FiltroEsito esito) {
  125.     this.esito = esito;
  126.   }

  127.   public RicercaStatisticaDistribuzioneApi esito(FiltroEsito esito) {
  128.     this.esito = esito;
  129.     return this;
  130.   }


  131.   @Override
  132.   public String toString() {
  133.     StringBuilder sb = new StringBuilder();
  134.     sb.append("class RicercaStatisticaDistribuzioneApi {\n");
  135.     sb.append("    ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(super.toString())).append("\n");
  136.     sb.append("    report: ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(this.report)).append("\n");
  137.     sb.append("    soggettoErogatore: ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(this.soggettoErogatore)).append("\n");
  138.     sb.append("    distinguiApiImplementata: ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(this.distinguiApiImplementata)).append("\n");
  139.     sb.append("    mittente: ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(this.mittente)).append("\n");
  140.     sb.append("    esito: ").append(RicercaStatisticaDistribuzioneApi.toIndentedString(this.esito)).append("\n");
  141.     sb.append("}");
  142.     return sb.toString();
  143.   }

  144.   /**
  145.    * Convert the given object to string with each line indented by 4 spaces
  146.    * (except the first line).
  147.    */
  148.   private static String toIndentedString(java.lang.Object o) {
  149.     if (o == null) {
  150.       return "null";
  151.     }
  152.     return o.toString().replace("\n", "\n    ");
  153.   }
  154. }