OpzioniGenerazioneReportMultiLine.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 OpzioniGenerazioneReportMultiLine extends OpzioniGenerazioneReportBase {
  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 = "tipo", visible = true )
  28.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  29.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = TipoInformazioneReportMultiLineNumeroTransazioni.class, name = "numero_transazioni"),
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = TipoInformazioneReportMultiLineOccupazioneBanda.class, name = "occupazione_banda"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = TipoInformazioneReportMultiLineTempoMedioRisposta.class, name = "tempo_medio_risposta")  })
  32.   private OneOfOpzioniGenerazioneReportMultiLineTipoInformazione tipoInformazione = null;
  33.  /**
  34.    * Get tipoInformazione
  35.    * @return tipoInformazione
  36.   **/
  37.   @JsonProperty("tipo_informazione")
  38.   @Valid
  39.   public OneOfOpzioniGenerazioneReportMultiLineTipoInformazione getTipoInformazione() {
  40.     return this.tipoInformazione;
  41.   }

  42.   public void setTipoInformazione(OneOfOpzioniGenerazioneReportMultiLineTipoInformazione tipoInformazione) {
  43.     this.tipoInformazione = tipoInformazione;
  44.   }

  45.   public OpzioniGenerazioneReportMultiLine tipoInformazione(OneOfOpzioniGenerazioneReportMultiLineTipoInformazione tipoInformazione) {
  46.     this.tipoInformazione = tipoInformazione;
  47.     return this;
  48.   }


  49.   @Override
  50.   public String toString() {
  51.     StringBuilder sb = new StringBuilder();
  52.     sb.append("class OpzioniGenerazioneReportMultiLine {\n");
  53.     sb.append("    ").append(OpzioniGenerazioneReportMultiLine.toIndentedString(super.toString())).append("\n");
  54.     sb.append("    tipoInformazione: ").append(OpzioniGenerazioneReportMultiLine.toIndentedString(this.tipoInformazione)).append("\n");
  55.     sb.append("}");
  56.     return sb.toString();
  57.   }

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