ConnettoreStatus.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 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 ConnettoreStatus  implements OneOfApplicativoServerConnettore, OneOfConnettoreErogazioneConnettore, OneOfConnettoreFruizioneConnettore {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private ConnettoreEnum tipo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private TipoRispostaStatusEnum risposta = null;
  32.  
  33.   @Schema(description = "")
  34.   private Boolean verificaConnettivita = false;
  35.  
  36.   @Schema(description = "")
  37.   private ConnettoreStatusVerificaStatistica verificaStatistica = null;
  38.  
  39.   @Schema(description = "")
  40.   private Boolean debug = false;
  41.  /**
  42.    * Get tipo
  43.    * @return tipo
  44.   **/
  45.   @Override
  46. @JsonProperty("tipo")
  47.   @NotNull
  48.   @Valid
  49.   public ConnettoreEnum getTipo() {
  50.     return this.tipo;
  51.   }

  52.   public void setTipo(ConnettoreEnum tipo) {
  53.     this.tipo = tipo;
  54.   }

  55.   public ConnettoreStatus tipo(ConnettoreEnum tipo) {
  56.     this.tipo = tipo;
  57.     return this;
  58.   }

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

  69.   public void setRisposta(TipoRispostaStatusEnum risposta) {
  70.     this.risposta = risposta;
  71.   }

  72.   public ConnettoreStatus risposta(TipoRispostaStatusEnum risposta) {
  73.     this.risposta = risposta;
  74.     return this;
  75.   }

  76.  /**
  77.    * Get verificaConnettivita
  78.    * @return verificaConnettivita
  79.   **/
  80.   @JsonProperty("verifica_connettivita")
  81.   @Valid
  82.   public Boolean isVerificaConnettivita() {
  83.     return this.verificaConnettivita;
  84.   }

  85.   public void setVerificaConnettivita(Boolean verificaConnettivita) {
  86.     this.verificaConnettivita = verificaConnettivita;
  87.   }

  88.   public ConnettoreStatus verificaConnettivita(Boolean verificaConnettivita) {
  89.     this.verificaConnettivita = verificaConnettivita;
  90.     return this;
  91.   }

  92.  /**
  93.    * Get verificaStatistica
  94.    * @return verificaStatistica
  95.   **/
  96.   @JsonProperty("verifica_statistica")
  97.   @Valid
  98.   public ConnettoreStatusVerificaStatistica getVerificaStatistica() {
  99.     return this.verificaStatistica;
  100.   }

  101.   public void setVerificaStatistica(ConnettoreStatusVerificaStatistica verificaStatistica) {
  102.     this.verificaStatistica = verificaStatistica;
  103.   }

  104.   public ConnettoreStatus verificaStatistica(ConnettoreStatusVerificaStatistica verificaStatistica) {
  105.     this.verificaStatistica = verificaStatistica;
  106.     return this;
  107.   }

  108.  /**
  109.    * Get debug
  110.    * @return debug
  111.   **/
  112.   @JsonProperty("debug")
  113.   @Valid
  114.   public Boolean isDebug() {
  115.     return this.debug;
  116.   }

  117.   public void setDebug(Boolean debug) {
  118.     this.debug = debug;
  119.   }

  120.   public ConnettoreStatus debug(Boolean debug) {
  121.     this.debug = debug;
  122.     return this;
  123.   }


  124.   @Override
  125.   public String toString() {
  126.     StringBuilder sb = new StringBuilder();
  127.     sb.append("class ConnettoreStatus {\n");
  128.    
  129.     sb.append("    tipo: ").append(ConnettoreStatus.toIndentedString(this.tipo)).append("\n");
  130.     sb.append("    risposta: ").append(ConnettoreStatus.toIndentedString(this.risposta)).append("\n");
  131.     sb.append("    verificaConnettivita: ").append(ConnettoreStatus.toIndentedString(this.verificaConnettivita)).append("\n");
  132.     sb.append("    verificaStatistica: ").append(ConnettoreStatus.toIndentedString(this.verificaStatistica)).append("\n");
  133.     sb.append("    debug: ").append(ConnettoreStatus.toIndentedString(this.debug)).append("\n");
  134.     sb.append("}");
  135.     return sb.toString();
  136.   }

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