RicercaStatisticaDistribuzioneEsiti.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 RicercaStatisticaDistribuzioneEsiti extends RicercaBaseStatisticaSoggetti {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private OpzioniGenerazioneReport report = null;
  29.  
  30.   @Schema(description = "")
  31.   private String azione = null;
  32.  
  33.   @Schema(description = "")
  34.   @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 )
  35.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  36.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneSoggetto.class, name = "erogazione_soggetto"),
  37.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteFruizioneApplicativo.class, name = "fruizione_applicativo"),
  38.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneApplicativo.class, name = "erogazione_applicativo"),
  39.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIdAutenticato.class, name = "identificativo_autenticato"),
  40.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaimSoggetto.class, name = "erogazione_token_info"),
  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 OneOfRicercaStatisticaDistribuzioneEsitiMittente mittente = null;
  44.  /**
  45.    * Get report
  46.    * @return report
  47.   **/
  48.   @JsonProperty("report")
  49.   @NotNull
  50.   @Valid
  51.   public OpzioniGenerazioneReport getReport() {
  52.     return this.report;
  53.   }

  54.   public void setReport(OpzioniGenerazioneReport report) {
  55.     this.report = report;
  56.   }

  57.   public RicercaStatisticaDistribuzioneEsiti report(OpzioniGenerazioneReport report) {
  58.     this.report = report;
  59.     return this;
  60.   }

  61.  /**
  62.    * Get azione
  63.    * @return azione
  64.   **/
  65.   @JsonProperty("azione")
  66.   @Valid
  67.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getAzione() {
  68.     return this.azione;
  69.   }

  70.   public void setAzione(String azione) {
  71.     this.azione = azione;
  72.   }

  73.   public RicercaStatisticaDistribuzioneEsiti azione(String azione) {
  74.     this.azione = azione;
  75.     return this;
  76.   }

  77.  /**
  78.    * Get mittente
  79.    * @return mittente
  80.   **/
  81.   @JsonProperty("mittente")
  82.   @Valid
  83.   public OneOfRicercaStatisticaDistribuzioneEsitiMittente getMittente() {
  84.     return this.mittente;
  85.   }

  86.   public void setMittente(OneOfRicercaStatisticaDistribuzioneEsitiMittente mittente) {
  87.     this.mittente = mittente;
  88.   }

  89.   public RicercaStatisticaDistribuzioneEsiti mittente(OneOfRicercaStatisticaDistribuzioneEsitiMittente mittente) {
  90.     this.mittente = mittente;
  91.     return this;
  92.   }


  93.   @Override
  94.   public String toString() {
  95.     StringBuilder sb = new StringBuilder();
  96.     sb.append("class RicercaStatisticaDistribuzioneEsiti {\n");
  97.     sb.append("    ").append(RicercaStatisticaDistribuzioneEsiti.toIndentedString(super.toString())).append("\n");
  98.     sb.append("    report: ").append(RicercaStatisticaDistribuzioneEsiti.toIndentedString(this.report)).append("\n");
  99.     sb.append("    azione: ").append(RicercaStatisticaDistribuzioneEsiti.toIndentedString(this.azione)).append("\n");
  100.     sb.append("    mittente: ").append(RicercaStatisticaDistribuzioneEsiti.toIndentedString(this.mittente)).append("\n");
  101.     sb.append("}");
  102.     return sb.toString();
  103.   }

  104.   /**
  105.    * Convert the given object to string with each line indented by 4 spaces
  106.    * (except the first line).
  107.    */
  108.   private static String toIndentedString(java.lang.Object o) {
  109.     if (o == null) {
  110.       return "null";
  111.     }
  112.     return o.toString().replace("\n", "\n    ");
  113.   }
  114. }