ConnettoreJms.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 ConnettoreJms  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 String nome = null;
  35.  
  36.   @Schema(required = true, description = "")
  37.   private ConnettoreJmsTipoEnum tipoCoda = null;
  38.  
  39.   @Schema(required = true, description = "")
  40.   private ConnettoreJmsSendAsEnum sendAs = null;
  41.  
  42.   @Schema(required = true, description = "")
  43.   private String connectionFactory = null;
  44.  
  45.   @Schema(description = "")
  46.   private String utente = null;
  47.  
  48.   @Schema(description = "")
  49.   private String password = null;
  50.  
  51.   @Schema(description = "")
  52.   private String jndiInitialContext = null;
  53.  
  54.   @Schema(description = "")
  55.   private String jndiUrlPgkPrefixes = null;
  56.  
  57.   @Schema(description = "")
  58.   private String jndiProviderUrl = null;
  59.  /**
  60.    * Get tipo
  61.    * @return tipo
  62.   **/
  63.   @Override
  64. @JsonProperty("tipo")
  65.   @NotNull
  66.   @Valid
  67.   public ConnettoreEnum getTipo() {
  68.     return this.tipo;
  69.   }

  70.   public void setTipo(ConnettoreEnum tipo) {
  71.     this.tipo = tipo;
  72.   }

  73.   public ConnettoreJms tipo(ConnettoreEnum tipo) {
  74.     this.tipo = tipo;
  75.     return this;
  76.   }

  77.  /**
  78.    * Get debug
  79.    * @return debug
  80.   **/
  81.   @JsonProperty("debug")
  82.   @Valid
  83.   public Boolean isDebug() {
  84.     return this.debug;
  85.   }

  86.   public void setDebug(Boolean debug) {
  87.     this.debug = debug;
  88.   }

  89.   public ConnettoreJms debug(Boolean debug) {
  90.     this.debug = debug;
  91.     return this;
  92.   }

  93.  /**
  94.    * Get nome
  95.    * @return nome
  96.   **/
  97.   @JsonProperty("nome")
  98.   @NotNull
  99.   @Valid
  100.  @Size(max=255)  public String getNome() {
  101.     return this.nome;
  102.   }

  103.   public void setNome(String nome) {
  104.     this.nome = nome;
  105.   }

  106.   public ConnettoreJms nome(String nome) {
  107.     this.nome = nome;
  108.     return this;
  109.   }

  110.  /**
  111.    * Get tipoCoda
  112.    * @return tipoCoda
  113.   **/
  114.   @JsonProperty("tipo_coda")
  115.   @NotNull
  116.   @Valid
  117.   public ConnettoreJmsTipoEnum getTipoCoda() {
  118.     return this.tipoCoda;
  119.   }

  120.   public void setTipoCoda(ConnettoreJmsTipoEnum tipoCoda) {
  121.     this.tipoCoda = tipoCoda;
  122.   }

  123.   public ConnettoreJms tipoCoda(ConnettoreJmsTipoEnum tipoCoda) {
  124.     this.tipoCoda = tipoCoda;
  125.     return this;
  126.   }

  127.  /**
  128.    * Get sendAs
  129.    * @return sendAs
  130.   **/
  131.   @JsonProperty("send_as")
  132.   @NotNull
  133.   @Valid
  134.   public ConnettoreJmsSendAsEnum getSendAs() {
  135.     return this.sendAs;
  136.   }

  137.   public void setSendAs(ConnettoreJmsSendAsEnum sendAs) {
  138.     this.sendAs = sendAs;
  139.   }

  140.   public ConnettoreJms sendAs(ConnettoreJmsSendAsEnum sendAs) {
  141.     this.sendAs = sendAs;
  142.     return this;
  143.   }

  144.  /**
  145.    * Get connectionFactory
  146.    * @return connectionFactory
  147.   **/
  148.   @JsonProperty("connection_factory")
  149.   @NotNull
  150.   @Valid
  151.  @Size(max=255)  public String getConnectionFactory() {
  152.     return this.connectionFactory;
  153.   }

  154.   public void setConnectionFactory(String connectionFactory) {
  155.     this.connectionFactory = connectionFactory;
  156.   }

  157.   public ConnettoreJms connectionFactory(String connectionFactory) {
  158.     this.connectionFactory = connectionFactory;
  159.     return this;
  160.   }

  161.  /**
  162.    * Get utente
  163.    * @return utente
  164.   **/
  165.   @JsonProperty("utente")
  166.   @Valid
  167.  @Size(max=255)  public String getUtente() {
  168.     return this.utente;
  169.   }

  170.   public void setUtente(String utente) {
  171.     this.utente = utente;
  172.   }

  173.   public ConnettoreJms utente(String utente) {
  174.     this.utente = utente;
  175.     return this;
  176.   }

  177.  /**
  178.    * Get password
  179.    * @return password
  180.   **/
  181.   @JsonProperty("password")
  182.   @Valid
  183.   public String getPassword() {
  184.     return this.password;
  185.   }

  186.   public void setPassword(String password) {
  187.     this.password = password;
  188.   }

  189.   public ConnettoreJms password(String password) {
  190.     this.password = password;
  191.     return this;
  192.   }

  193.  /**
  194.    * Get jndiInitialContext
  195.    * @return jndiInitialContext
  196.   **/
  197.   @JsonProperty("jndi_initial_context")
  198.   @Valid
  199.  @Size(max=255)  public String getJndiInitialContext() {
  200.     return this.jndiInitialContext;
  201.   }

  202.   public void setJndiInitialContext(String jndiInitialContext) {
  203.     this.jndiInitialContext = jndiInitialContext;
  204.   }

  205.   public ConnettoreJms jndiInitialContext(String jndiInitialContext) {
  206.     this.jndiInitialContext = jndiInitialContext;
  207.     return this;
  208.   }

  209.  /**
  210.    * Get jndiUrlPgkPrefixes
  211.    * @return jndiUrlPgkPrefixes
  212.   **/
  213.   @JsonProperty("jndi_url_pgk_prefixes")
  214.   @Valid
  215.  @Size(max=255)  public String getJndiUrlPgkPrefixes() {
  216.     return this.jndiUrlPgkPrefixes;
  217.   }

  218.   public void setJndiUrlPgkPrefixes(String jndiUrlPgkPrefixes) {
  219.     this.jndiUrlPgkPrefixes = jndiUrlPgkPrefixes;
  220.   }

  221.   public ConnettoreJms jndiUrlPgkPrefixes(String jndiUrlPgkPrefixes) {
  222.     this.jndiUrlPgkPrefixes = jndiUrlPgkPrefixes;
  223.     return this;
  224.   }

  225.  /**
  226.    * Get jndiProviderUrl
  227.    * @return jndiProviderUrl
  228.   **/
  229.   @JsonProperty("jndi_provider_url")
  230.   @Valid
  231.  @Size(max=255)  public String getJndiProviderUrl() {
  232.     return this.jndiProviderUrl;
  233.   }

  234.   public void setJndiProviderUrl(String jndiProviderUrl) {
  235.     this.jndiProviderUrl = jndiProviderUrl;
  236.   }

  237.   public ConnettoreJms jndiProviderUrl(String jndiProviderUrl) {
  238.     this.jndiProviderUrl = jndiProviderUrl;
  239.     return this;
  240.   }


  241.   @Override
  242.   public String toString() {
  243.     StringBuilder sb = new StringBuilder();
  244.     sb.append("class ConnettoreJms {\n");
  245.    
  246.     sb.append("    tipo: ").append(ConnettoreJms.toIndentedString(this.tipo)).append("\n");
  247.     sb.append("    debug: ").append(ConnettoreJms.toIndentedString(this.debug)).append("\n");
  248.     sb.append("    nome: ").append(ConnettoreJms.toIndentedString(this.nome)).append("\n");
  249.     sb.append("    tipoCoda: ").append(ConnettoreJms.toIndentedString(this.tipoCoda)).append("\n");
  250.     sb.append("    sendAs: ").append(ConnettoreJms.toIndentedString(this.sendAs)).append("\n");
  251.     sb.append("    connectionFactory: ").append(ConnettoreJms.toIndentedString(this.connectionFactory)).append("\n");
  252.     sb.append("    utente: ").append(ConnettoreJms.toIndentedString(this.utente)).append("\n");
  253.     sb.append("    password: ").append(ConnettoreJms.toIndentedString(this.password)).append("\n");
  254.     sb.append("    jndiInitialContext: ").append(ConnettoreJms.toIndentedString(this.jndiInitialContext)).append("\n");
  255.     sb.append("    jndiUrlPgkPrefixes: ").append(ConnettoreJms.toIndentedString(this.jndiUrlPgkPrefixes)).append("\n");
  256.     sb.append("    jndiProviderUrl: ").append(ConnettoreJms.toIndentedString(this.jndiProviderUrl)).append("\n");
  257.     sb.append("}");
  258.     return sb.toString();
  259.   }

  260.   /**
  261.    * Convert the given object to string with each line indented by 4 spaces
  262.    * (except the first line).
  263.    */
  264.   private static String toIndentedString(java.lang.Object o) {
  265.     if (o == null) {
  266.       return "null";
  267.     }
  268.     return o.toString().replace("\n", "\n    ");
  269.   }
  270. }