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

  49.   public void setTipo(ConnettoreEnum tipo) {
  50.     this.tipo = tipo;
  51.   }

  52.   public ConnettoreFile tipo(ConnettoreEnum tipo) {
  53.     this.tipo = tipo;
  54.     return this;
  55.   }

  56.  /**
  57.    * Get debug
  58.    * @return debug
  59.   **/
  60.   @JsonProperty("debug")
  61.   @Valid
  62.   public Boolean isDebug() {
  63.     return this.debug;
  64.   }

  65.   public void setDebug(Boolean debug) {
  66.     this.debug = debug;
  67.   }

  68.   public ConnettoreFile debug(Boolean debug) {
  69.     this.debug = debug;
  70.     return this;
  71.   }

  72.  /**
  73.    * Get richiesta
  74.    * @return richiesta
  75.   **/
  76.   @JsonProperty("richiesta")
  77.   @NotNull
  78.   @Valid
  79.   public ConnettoreFileRichiesta getRichiesta() {
  80.     return this.richiesta;
  81.   }

  82.   public void setRichiesta(ConnettoreFileRichiesta richiesta) {
  83.     this.richiesta = richiesta;
  84.   }

  85.   public ConnettoreFile richiesta(ConnettoreFileRichiesta richiesta) {
  86.     this.richiesta = richiesta;
  87.     return this;
  88.   }

  89.  /**
  90.    * Get risposta
  91.    * @return risposta
  92.   **/
  93.   @JsonProperty("risposta")
  94.   @Valid
  95.   public ConnettoreFileRisposta getRisposta() {
  96.     return this.risposta;
  97.   }

  98.   public void setRisposta(ConnettoreFileRisposta risposta) {
  99.     this.risposta = risposta;
  100.   }

  101.   public ConnettoreFile risposta(ConnettoreFileRisposta risposta) {
  102.     this.risposta = risposta;
  103.     return this;
  104.   }


  105.   @Override
  106.   public String toString() {
  107.     StringBuilder sb = new StringBuilder();
  108.     sb.append("class ConnettoreFile {\n");
  109.    
  110.     sb.append("    tipo: ").append(ConnettoreFile.toIndentedString(this.tipo)).append("\n");
  111.     sb.append("    debug: ").append(ConnettoreFile.toIndentedString(this.debug)).append("\n");
  112.     sb.append("    richiesta: ").append(ConnettoreFile.toIndentedString(this.richiesta)).append("\n");
  113.     sb.append("    risposta: ").append(ConnettoreFile.toIndentedString(this.risposta)).append("\n");
  114.     sb.append("}");
  115.     return sb.toString();
  116.   }

  117.   /**
  118.    * Convert the given object to string with each line indented by 4 spaces
  119.    * (except the first line).
  120.    */
  121.   private static String toIndentedString(java.lang.Object o) {
  122.     if (o == null) {
  123.       return "null";
  124.     }
  125.     return o.toString().replace("\n", "\n    ");
  126.   }
  127. }