ConnettoreConfigurazioneProxy.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 ConnettoreConfigurazioneProxy  {
  26.  
  27.   @Schema(example = "proxy.ente.it", required = true, description = "")
  28.   private String hostname = null;
  29.  
  30.   @Schema(example = "8080", required = true, description = "")
  31.   private Integer porta = null;
  32.  
  33.   @Schema(example = "user", description = "")
  34.   private String username = null;
  35.  
  36.   @Schema(example = "pwd", description = "")
  37.   private String password = null;
  38.  /**
  39.    * Get hostname
  40.    * @return hostname
  41.   **/
  42.   @JsonProperty("hostname")
  43.   @NotNull
  44.   @Valid
  45.  @Size(max=255)  public String getHostname() {
  46.     return this.hostname;
  47.   }

  48.   public void setHostname(String hostname) {
  49.     this.hostname = hostname;
  50.   }

  51.   public ConnettoreConfigurazioneProxy hostname(String hostname) {
  52.     this.hostname = hostname;
  53.     return this;
  54.   }

  55.  /**
  56.    * Get porta
  57.    * minimum: 1
  58.    * maximum: 65535
  59.    * @return porta
  60.   **/
  61.   @JsonProperty("porta")
  62.   @NotNull
  63.   @Valid
  64.  @Min(1) @Max(65535)  public Integer getPorta() {
  65.     return this.porta;
  66.   }

  67.   public void setPorta(Integer porta) {
  68.     this.porta = porta;
  69.   }

  70.   public ConnettoreConfigurazioneProxy porta(Integer porta) {
  71.     this.porta = porta;
  72.     return this;
  73.   }

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

  83.   public void setUsername(String username) {
  84.     this.username = username;
  85.   }

  86.   public ConnettoreConfigurazioneProxy username(String username) {
  87.     this.username = username;
  88.     return this;
  89.   }

  90.  /**
  91.    * Get password
  92.    * @return password
  93.   **/
  94.   @JsonProperty("password")
  95.   @Valid
  96.   public String getPassword() {
  97.     return this.password;
  98.   }

  99.   public void setPassword(String password) {
  100.     this.password = password;
  101.   }

  102.   public ConnettoreConfigurazioneProxy password(String password) {
  103.     this.password = password;
  104.     return this;
  105.   }


  106.   @Override
  107.   public String toString() {
  108.     StringBuilder sb = new StringBuilder();
  109.     sb.append("class ConnettoreConfigurazioneProxy {\n");
  110.    
  111.     sb.append("    hostname: ").append(ConnettoreConfigurazioneProxy.toIndentedString(this.hostname)).append("\n");
  112.     sb.append("    porta: ").append(ConnettoreConfigurazioneProxy.toIndentedString(this.porta)).append("\n");
  113.     sb.append("    username: ").append(ConnettoreConfigurazioneProxy.toIndentedString(this.username)).append("\n");
  114.     sb.append("    password: ").append(ConnettoreConfigurazioneProxy.toIndentedString(this.password)).append("\n");
  115.     sb.append("}");
  116.     return sb.toString();
  117.   }

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