RicercaStatisticaAndamentoTemporale.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 RicercaStatisticaAndamentoTemporale extends RicercaBaseStatisticaSoggetti {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private OpzioniGenerazioneReportMultiLine 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 OneOfRicercaStatisticaAndamentoTemporaleMittente 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 OpzioniGenerazioneReportMultiLine getReport() {
  55.     return this.report;
  56.   }

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

  60.   public RicercaStatisticaAndamentoTemporale report(OpzioniGenerazioneReportMultiLine report) {
  61.     this.report = report;
  62.     return this;
  63.   }

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

  73.   public void setAzione(String azione) {
  74.     this.azione = azione;
  75.   }

  76.   public RicercaStatisticaAndamentoTemporale azione(String azione) {
  77.     this.azione = azione;
  78.     return this;
  79.   }

  80.  /**
  81.    * Get mittente
  82.    * @return mittente
  83.   **/
  84.   @JsonProperty("mittente")
  85.   @Valid
  86.   public OneOfRicercaStatisticaAndamentoTemporaleMittente getMittente() {
  87.     return this.mittente;
  88.   }

  89.   public void setMittente(OneOfRicercaStatisticaAndamentoTemporaleMittente mittente) {
  90.     this.mittente = mittente;
  91.   }

  92.   public RicercaStatisticaAndamentoTemporale mittente(OneOfRicercaStatisticaAndamentoTemporaleMittente mittente) {
  93.     this.mittente = mittente;
  94.     return this;
  95.   }

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

  105.   public void setEsito(FiltroEsito esito) {
  106.     this.esito = esito;
  107.   }

  108.   public RicercaStatisticaAndamentoTemporale esito(FiltroEsito esito) {
  109.     this.esito = esito;
  110.     return this;
  111.   }


  112.   @Override
  113.   public String toString() {
  114.     StringBuilder sb = new StringBuilder();
  115.     sb.append("class RicercaStatisticaAndamentoTemporale {\n");
  116.     sb.append("    ").append(RicercaStatisticaAndamentoTemporale.toIndentedString(super.toString())).append("\n");
  117.     sb.append("    report: ").append(RicercaStatisticaAndamentoTemporale.toIndentedString(this.report)).append("\n");
  118.     sb.append("    azione: ").append(RicercaStatisticaAndamentoTemporale.toIndentedString(this.azione)).append("\n");
  119.     sb.append("    mittente: ").append(RicercaStatisticaAndamentoTemporale.toIndentedString(this.mittente)).append("\n");
  120.     sb.append("    esito: ").append(RicercaStatisticaAndamentoTemporale.toIndentedString(this.esito)).append("\n");
  121.     sb.append("}");
  122.     return sb.toString();
  123.   }

  124.   /**
  125.    * Convert the given object to string with each line indented by 4 spaces
  126.    * (except the first line).
  127.    */
  128.   private static String toIndentedString(java.lang.Object o) {
  129.     if (o == null) {
  130.       return "null";
  131.     }
  132.     return o.toString().replace("\n", "\n    ");
  133.   }
  134. }