ApiImplInformazioniGenerali.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 ApiImplInformazioniGenerali  {
  26.  
  27.   @Schema(description = "")
  28.   private String tipo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private String nome = null;
  32.  
  33.   @Schema(description = "")
  34.   private String apiSoapServizio = null;
  35.  /**
  36.    * Get tipo
  37.    * @return tipo
  38.   **/
  39.   @JsonProperty("tipo")
  40.   @Valid
  41.  @Pattern(regexp="^[a-z]{2,20}$") @Size(max=20)  public String getTipo() {
  42.     return this.tipo;
  43.   }

  44.   public void setTipo(String tipo) {
  45.     this.tipo = tipo;
  46.   }

  47.   public ApiImplInformazioniGenerali tipo(String tipo) {
  48.     this.tipo = tipo;
  49.     return this;
  50.   }

  51.  /**
  52.    * Get nome
  53.    * @return nome
  54.   **/
  55.   @JsonProperty("nome")
  56.   @NotNull
  57.   @Valid
  58.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  59.     return this.nome;
  60.   }

  61.   public void setNome(String nome) {
  62.     this.nome = nome;
  63.   }

  64.   public ApiImplInformazioniGenerali nome(String nome) {
  65.     this.nome = nome;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get apiSoapServizio
  70.    * @return apiSoapServizio
  71.   **/
  72.   @JsonProperty("api_soap_servizio")
  73.   @Valid
  74.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getApiSoapServizio() {
  75.     return this.apiSoapServizio;
  76.   }

  77.   public void setApiSoapServizio(String apiSoapServizio) {
  78.     this.apiSoapServizio = apiSoapServizio;
  79.   }

  80.   public ApiImplInformazioniGenerali apiSoapServizio(String apiSoapServizio) {
  81.     this.apiSoapServizio = apiSoapServizio;
  82.     return this;
  83.   }


  84.   @Override
  85.   public String toString() {
  86.     StringBuilder sb = new StringBuilder();
  87.     sb.append("class ApiImplInformazioniGenerali {\n");
  88.    
  89.     sb.append("    tipo: ").append(ApiImplInformazioniGenerali.toIndentedString(this.tipo)).append("\n");
  90.     sb.append("    nome: ").append(ApiImplInformazioniGenerali.toIndentedString(this.nome)).append("\n");
  91.     sb.append("    apiSoapServizio: ").append(ApiImplInformazioniGenerali.toIndentedString(this.apiSoapServizio)).append("\n");
  92.     sb.append("}");
  93.     return sb.toString();
  94.   }

  95.   /**
  96.    * Convert the given object to string with each line indented by 4 spaces
  97.    * (except the first line).
  98.    */
  99.   private static String toIndentedString(java.lang.Object o) {
  100.     if (o == null) {
  101.       return "null";
  102.     }
  103.     return o.toString().replace("\n", "\n    ");
  104.   }
  105. }