RicercaBaseStatistica.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 RicercaBaseStatistica  {
  26.  
  27.   @Schema(description = "")
  28.   private UnitaTempoReportEnum unitaTempo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private FiltroTemporale intervalloTemporale = null;
  32.  
  33.   @Schema(required = true, description = "")
  34.   private FiltroRicercaRuoloTransazioneEnum tipo = null;
  35.  
  36.   @Schema(description = "Identificativo del nodo su cui e' stata emessa la transazione")
  37.  /**
  38.    * Identificativo del nodo su cui e' stata emessa la transazione  
  39.   **/
  40.   private String idCluster = null;
  41.  
  42.   @Schema(description = "")
  43.   private String tag = null;
  44.  /**
  45.    * Get unitaTempo
  46.    * @return unitaTempo
  47.   **/
  48.   @JsonProperty("unita_tempo")
  49.   @Valid
  50.   public UnitaTempoReportEnum getUnitaTempo() {
  51.     return this.unitaTempo;
  52.   }

  53.   public void setUnitaTempo(UnitaTempoReportEnum unitaTempo) {
  54.     this.unitaTempo = unitaTempo;
  55.   }

  56.   public RicercaBaseStatistica unitaTempo(UnitaTempoReportEnum unitaTempo) {
  57.     this.unitaTempo = unitaTempo;
  58.     return this;
  59.   }

  60.  /**
  61.    * Get intervalloTemporale
  62.    * @return intervalloTemporale
  63.   **/
  64.   @JsonProperty("intervallo_temporale")
  65.   @NotNull
  66.   @Valid
  67.   public FiltroTemporale getIntervalloTemporale() {
  68.     return this.intervalloTemporale;
  69.   }

  70.   public void setIntervalloTemporale(FiltroTemporale intervalloTemporale) {
  71.     this.intervalloTemporale = intervalloTemporale;
  72.   }

  73.   public RicercaBaseStatistica intervalloTemporale(FiltroTemporale intervalloTemporale) {
  74.     this.intervalloTemporale = intervalloTemporale;
  75.     return this;
  76.   }

  77.  /**
  78.    * Get tipo
  79.    * @return tipo
  80.   **/
  81.   @JsonProperty("tipo")
  82.   @NotNull
  83.   @Valid
  84.   public FiltroRicercaRuoloTransazioneEnum getTipo() {
  85.     return this.tipo;
  86.   }

  87.   public void setTipo(FiltroRicercaRuoloTransazioneEnum tipo) {
  88.     this.tipo = tipo;
  89.   }

  90.   public RicercaBaseStatistica tipo(FiltroRicercaRuoloTransazioneEnum tipo) {
  91.     this.tipo = tipo;
  92.     return this;
  93.   }

  94.  /**
  95.    * Identificativo del nodo su cui e' stata emessa la transazione
  96.    * @return idCluster
  97.   **/
  98.   @JsonProperty("id_cluster")
  99.   @Valid
  100.   public String getIdCluster() {
  101.     return this.idCluster;
  102.   }

  103.   public void setIdCluster(String idCluster) {
  104.     this.idCluster = idCluster;
  105.   }

  106.   public RicercaBaseStatistica idCluster(String idCluster) {
  107.     this.idCluster = idCluster;
  108.     return this;
  109.   }

  110.  /**
  111.    * Get tag
  112.    * @return tag
  113.   **/
  114.   @JsonProperty("tag")
  115.   @Valid
  116.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getTag() {
  117.     return this.tag;
  118.   }

  119.   public void setTag(String tag) {
  120.     this.tag = tag;
  121.   }

  122.   public RicercaBaseStatistica tag(String tag) {
  123.     this.tag = tag;
  124.     return this;
  125.   }


  126.   @Override
  127.   public String toString() {
  128.     StringBuilder sb = new StringBuilder();
  129.     sb.append("class RicercaBaseStatistica {\n");
  130.    
  131.     sb.append("    unitaTempo: ").append(RicercaBaseStatistica.toIndentedString(this.unitaTempo)).append("\n");
  132.     sb.append("    intervalloTemporale: ").append(RicercaBaseStatistica.toIndentedString(this.intervalloTemporale)).append("\n");
  133.     sb.append("    tipo: ").append(RicercaBaseStatistica.toIndentedString(this.tipo)).append("\n");
  134.     sb.append("    idCluster: ").append(RicercaBaseStatistica.toIndentedString(this.idCluster)).append("\n");
  135.     sb.append("    tag: ").append(RicercaBaseStatistica.toIndentedString(this.tag)).append("\n");
  136.     sb.append("}");
  137.     return sb.toString();
  138.   }

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