ConnettoreErogazione.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 com.fasterxml.jackson.annotation.JsonProperty;
  23. import javax.validation.Valid;

  24. public class ConnettoreErogazione  {
  25.  
  26.   @Schema(description = "")
  27.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "tipo", visible = true )
  28.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  29.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreHttp.class, name = "http"),
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreFile.class, name = "file"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreJms.class, name = "jms"),
  32.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreNull.class, name = "null"),
  33.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreEcho.class, name = "echo"),
  34.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreStatus.class, name = "status"),
  35.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettorePlugin.class, name = "plugin"),
  36.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreApplicativoServer.class, name = "applicativo-server"),
  37.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ConnettoreMessageBox.class, name = "message-box")  })
  38.   private OneOfConnettoreErogazioneConnettore connettore = null;
  39.  /**
  40.    * Get connettore
  41.    * @return connettore
  42.   **/
  43.   @JsonProperty("connettore")
  44.   @Valid
  45.   public OneOfConnettoreErogazioneConnettore getConnettore() {
  46.     return this.connettore;
  47.   }

  48.   public void setConnettore(OneOfConnettoreErogazioneConnettore connettore) {
  49.     this.connettore = connettore;
  50.   }

  51.   public ConnettoreErogazione connettore(OneOfConnettoreErogazioneConnettore connettore) {
  52.     this.connettore = connettore;
  53.     return this;
  54.   }


  55.   @Override
  56.   public String toString() {
  57.     StringBuilder sb = new StringBuilder();
  58.     sb.append("class ConnettoreErogazione {\n");
  59.    
  60.     sb.append("    connettore: ").append(ConnettoreErogazione.toIndentedString(this.connettore)).append("\n");
  61.     sb.append("}");
  62.     return sb.toString();
  63.   }

  64.   /**
  65.    * Convert the given object to string with each line indented by 4 spaces
  66.    * (except the first line).
  67.    */
  68.   private static String toIndentedString(java.lang.Object o) {
  69.     if (o == null) {
  70.       return "null";
  71.     }
  72.     return o.toString().replace("\n", "\n    ");
  73.   }
  74. }