ConnettoreStatusVerificaStatistica.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.config.rs.server.model;

  21. import io.swagger.v3.oas.annotations.media.Schema;
  22. import javax.validation.constraints.*;

  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. /**
  26.   * parametri di un periodo statistico per il connettore status
  27.  **/
  28. @Schema(description="parametri di un periodo statistico per il connettore status")
  29. public class ConnettoreStatusVerificaStatistica  {
  30.  
  31.   @Schema(required = true, description = "")
  32.   private TipoPeriodoStatisticoEnum frequenza = null;
  33.  
  34.   @Schema(required = true, description = "")
  35.   private Integer intervallo = null;
  36.  
  37.   @Schema(description = "tempo di permanenza in cache di un risultato, se non impostato viene usato il tempo di default della cache del controllo traffico")
  38.  /**
  39.    * tempo di permanenza in cache di un risultato, se non impostato viene usato il tempo di default della cache del controllo traffico  
  40.   **/
  41.   private Integer cacheLifeTime = null;
  42.  /**
  43.    * Get frequenza
  44.    * @return frequenza
  45.   **/
  46.   @JsonProperty("frequenza")
  47.   @NotNull
  48.   @Valid
  49.   public TipoPeriodoStatisticoEnum getFrequenza() {
  50.     return this.frequenza;
  51.   }

  52.   public void setFrequenza(TipoPeriodoStatisticoEnum frequenza) {
  53.     this.frequenza = frequenza;
  54.   }

  55.   public ConnettoreStatusVerificaStatistica frequenza(TipoPeriodoStatisticoEnum frequenza) {
  56.     this.frequenza = frequenza;
  57.     return this;
  58.   }

  59.  /**
  60.    * Get intervallo
  61.    * @return intervallo
  62.   **/
  63.   @JsonProperty("intervallo")
  64.   @NotNull
  65.   @Valid
  66.   public Integer getIntervallo() {
  67.     return this.intervallo;
  68.   }

  69.   public void setIntervallo(Integer intervallo) {
  70.     this.intervallo = intervallo;
  71.   }

  72.   public ConnettoreStatusVerificaStatistica intervallo(Integer intervallo) {
  73.     this.intervallo = intervallo;
  74.     return this;
  75.   }

  76.  /**
  77.    * tempo di permanenza in cache di un risultato, se non impostato viene usato il tempo di default della cache del controllo traffico
  78.    * @return cacheLifeTime
  79.   **/
  80.   @JsonProperty("cache_life_time")
  81.   @Valid
  82.   public Integer getCacheLifeTime() {
  83.     return this.cacheLifeTime;
  84.   }

  85.   public void setCacheLifeTime(Integer cacheLifeTime) {
  86.     this.cacheLifeTime = cacheLifeTime;
  87.   }

  88.   public ConnettoreStatusVerificaStatistica cacheLifeTime(Integer cacheLifeTime) {
  89.     this.cacheLifeTime = cacheLifeTime;
  90.     return this;
  91.   }


  92.   @Override
  93.   public String toString() {
  94.     StringBuilder sb = new StringBuilder();
  95.     sb.append("class ConnettoreStatusVerificaStatistica {\n");
  96.    
  97.     sb.append("    frequenza: ").append(ConnettoreStatusVerificaStatistica.toIndentedString(this.frequenza)).append("\n");
  98.     sb.append("    intervallo: ").append(ConnettoreStatusVerificaStatistica.toIndentedString(this.intervallo)).append("\n");
  99.     sb.append("    cacheLifeTime: ").append(ConnettoreStatusVerificaStatistica.toIndentedString(this.cacheLifeTime)).append("\n");
  100.     sb.append("}");
  101.     return sb.toString();
  102.   }

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