RicercaIntervalloTemporale.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 io.swagger.v3.oas.annotations.media.Schema;
  22. import com.fasterxml.jackson.annotation.JsonProperty;
  23. import javax.validation.Valid;

  24. public class RicercaIntervalloTemporale extends RicercaBaseTransazione {
  25.  
  26.   @Schema(description = "")
  27.   @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 )
  28.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  29.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneSoggetto.class, name = "erogazione_soggetto"),
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteFruizioneApplicativo.class, name = "fruizione_applicativo"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteErogazioneApplicativo.class, name = "erogazione_applicativo"),
  32.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIdAutenticato.class, name = "identificativo_autenticato"),
  33.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaimSoggetto.class, name = "erogazione_token_info"),
  34.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteTokenClaim.class, name = "token_info"),
  35.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FiltroMittenteIndirizzoIP.class, name = "indirizzo_ip")  })
  36.   private OneOfRicercaIntervalloTemporaleMittente mittente = null;
  37.  /**
  38.    * Get mittente
  39.    * @return mittente
  40.   **/
  41.   @JsonProperty("mittente")
  42.   @Valid
  43.   public OneOfRicercaIntervalloTemporaleMittente getMittente() {
  44.     return this.mittente;
  45.   }

  46.   public void setMittente(OneOfRicercaIntervalloTemporaleMittente mittente) {
  47.     this.mittente = mittente;
  48.   }

  49.   public RicercaIntervalloTemporale mittente(OneOfRicercaIntervalloTemporaleMittente mittente) {
  50.     this.mittente = mittente;
  51.     return this;
  52.   }


  53.   @Override
  54.   public String toString() {
  55.     StringBuilder sb = new StringBuilder();
  56.     sb.append("class RicercaIntervalloTemporale {\n");
  57.     sb.append("    ").append(RicercaIntervalloTemporale.toIndentedString(super.toString())).append("\n");
  58.     sb.append("    mittente: ").append(RicercaIntervalloTemporale.toIndentedString(this.mittente)).append("\n");
  59.     sb.append("}");
  60.     return sb.toString();
  61.   }

  62.   /**
  63.    * Convert the given object to string with each line indented by 4 spaces
  64.    * (except the first line).
  65.    */
  66.   private static String toIndentedString(java.lang.Object o) {
  67.     if (o == null) {
  68.       return "null";
  69.     }
  70.     return o.toString().replace("\n", "\n    ");
  71.   }
  72. }