ConnettorePlugin.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 java.util.List;
  22. import javax.validation.constraints.*;

  23. import io.swagger.v3.oas.annotations.media.Schema;
  24. import com.fasterxml.jackson.annotation.JsonProperty;
  25. import javax.validation.Valid;

  26. public class ConnettorePlugin  implements OneOfApplicativoServerConnettore, OneOfConnettoreErogazioneConnettore, OneOfConnettoreFruizioneConnettore {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private ConnettoreEnum tipo = null;
  30.  
  31.   @Schema(description = "")
  32.   private Boolean debug = false;
  33.  
  34.   @Schema(required = true, description = "")
  35.   private String plugin = null;
  36.  
  37.   @Schema(description = "")
  38.   private List<Proprieta> proprieta = null;
  39.  /**
  40.    * Get tipo
  41.    * @return tipo
  42.   **/
  43.   @Override
  44. @JsonProperty("tipo")
  45.   @NotNull
  46.   @Valid
  47.   public ConnettoreEnum getTipo() {
  48.     return this.tipo;
  49.   }

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

  53.   public ConnettorePlugin tipo(ConnettoreEnum tipo) {
  54.     this.tipo = tipo;
  55.     return this;
  56.   }

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

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

  69.   public ConnettorePlugin debug(Boolean debug) {
  70.     this.debug = debug;
  71.     return this;
  72.   }

  73.  /**
  74.    * Get plugin
  75.    * @return plugin
  76.   **/
  77.   @JsonProperty("plugin")
  78.   @NotNull
  79.   @Valid
  80.  @Size(max=255)  public String getPlugin() {
  81.     return this.plugin;
  82.   }

  83.   public void setPlugin(String plugin) {
  84.     this.plugin = plugin;
  85.   }

  86.   public ConnettorePlugin plugin(String plugin) {
  87.     this.plugin = plugin;
  88.     return this;
  89.   }

  90.  /**
  91.    * Get proprieta
  92.    * @return proprieta
  93.   **/
  94.   @JsonProperty("proprieta")
  95.   @Valid
  96.   public List<Proprieta> getProprieta() {
  97.     return this.proprieta;
  98.   }

  99.   public void setProprieta(List<Proprieta> proprieta) {
  100.     this.proprieta = proprieta;
  101.   }

  102.   public ConnettorePlugin proprieta(List<Proprieta> proprieta) {
  103.     this.proprieta = proprieta;
  104.     return this;
  105.   }

  106.   public ConnettorePlugin addProprietaItem(Proprieta proprietaItem) {
  107.     this.proprieta.add(proprietaItem);
  108.     return this;
  109.   }


  110.   @Override
  111.   public String toString() {
  112.     StringBuilder sb = new StringBuilder();
  113.     sb.append("class ConnettorePlugin {\n");
  114.    
  115.     sb.append("    tipo: ").append(ConnettorePlugin.toIndentedString(this.tipo)).append("\n");
  116.     sb.append("    debug: ").append(ConnettorePlugin.toIndentedString(this.debug)).append("\n");
  117.     sb.append("    plugin: ").append(ConnettorePlugin.toIndentedString(this.plugin)).append("\n");
  118.     sb.append("    proprieta: ").append(ConnettorePlugin.toIndentedString(this.proprieta)).append("\n");
  119.     sb.append("}");
  120.     return sb.toString();
  121.   }

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