RicercaStatisticaDistribuzioneSoggettoRemoto.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 RicercaStatisticaDistribuzioneSoggettoRemoto extends RicercaBaseStatistica {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private OpzioniGenerazioneReportDimensioni report = null;
  29.  
  30.   @Schema(description = "")
  31.   private FiltroApiSoggetti api = null;
  32.  
  33.   @Schema(description = "")
  34.   private String azione = null;
  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 = FiltroMittenteFruizioneApplicativo.class, name = "fruizione_applicativo"),
  40.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIdAutenticato.class, name = "identificativo_autenticato"),
  41.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaim.class, name = "token_info"),
  42.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIndirizzoIP.class, name = "indirizzo_ip")  })
  43.   private OneOfRicercaStatisticaDistribuzioneSoggettoRemotoMittente mittente = null;
  44.  
  45.   @Schema(description = "")
  46.   private FiltroEsito esito = null;
  47.  /**
  48.    * Get report
  49.    * @return report
  50.   **/
  51.   @JsonProperty("report")
  52.   @NotNull
  53.   @Valid
  54.   public OpzioniGenerazioneReportDimensioni getReport() {
  55.     return this.report;
  56.   }

  57.   public void setReport(OpzioniGenerazioneReportDimensioni report) {
  58.     this.report = report;
  59.   }

  60.   public RicercaStatisticaDistribuzioneSoggettoRemoto report(OpzioniGenerazioneReportDimensioni report) {
  61.     this.report = report;
  62.     return this;
  63.   }

  64.  /**
  65.    * Get api
  66.    * @return api
  67.   **/
  68.   @JsonProperty("api")
  69.   @Valid
  70.   public FiltroApiSoggetti getApi() {
  71.     return this.api;
  72.   }

  73.   public void setApi(FiltroApiSoggetti api) {
  74.     this.api = api;
  75.   }

  76.   public RicercaStatisticaDistribuzioneSoggettoRemoto api(FiltroApiSoggetti api) {
  77.     this.api = api;
  78.     return this;
  79.   }

  80.  /**
  81.    * Get azione
  82.    * @return azione
  83.   **/
  84.   @JsonProperty("azione")
  85.   @Valid
  86.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getAzione() {
  87.     return this.azione;
  88.   }

  89.   public void setAzione(String azione) {
  90.     this.azione = azione;
  91.   }

  92.   public RicercaStatisticaDistribuzioneSoggettoRemoto azione(String azione) {
  93.     this.azione = azione;
  94.     return this;
  95.   }

  96.  /**
  97.    * Get mittente
  98.    * @return mittente
  99.   **/
  100.   @JsonProperty("mittente")
  101.   @Valid
  102.   public OneOfRicercaStatisticaDistribuzioneSoggettoRemotoMittente getMittente() {
  103.     return this.mittente;
  104.   }

  105.   public void setMittente(OneOfRicercaStatisticaDistribuzioneSoggettoRemotoMittente mittente) {
  106.     this.mittente = mittente;
  107.   }

  108.   public RicercaStatisticaDistribuzioneSoggettoRemoto mittente(OneOfRicercaStatisticaDistribuzioneSoggettoRemotoMittente mittente) {
  109.     this.mittente = mittente;
  110.     return this;
  111.   }

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

  121.   public void setEsito(FiltroEsito esito) {
  122.     this.esito = esito;
  123.   }

  124.   public RicercaStatisticaDistribuzioneSoggettoRemoto esito(FiltroEsito esito) {
  125.     this.esito = esito;
  126.     return this;
  127.   }


  128.   @Override
  129.   public String toString() {
  130.     StringBuilder sb = new StringBuilder();
  131.     sb.append("class RicercaStatisticaDistribuzioneSoggettoRemoto {\n");
  132.     sb.append("    ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(super.toString())).append("\n");
  133.     sb.append("    report: ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(this.report)).append("\n");
  134.     sb.append("    api: ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(this.api)).append("\n");
  135.     sb.append("    azione: ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(this.azione)).append("\n");
  136.     sb.append("    mittente: ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(this.mittente)).append("\n");
  137.     sb.append("    esito: ").append(RicercaStatisticaDistribuzioneSoggettoRemoto.toIndentedString(this.esito)).append("\n");
  138.     sb.append("}");
  139.     return sb.toString();
  140.   }

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