TransazioneExtInformazioniSoggetto.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.utils.service.beans;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlAccessType;
  26. import javax.xml.bind.annotation.XmlAccessorType;
  27. import javax.xml.bind.annotation.XmlType;
  28. import com.fasterxml.jackson.annotation.JsonProperty;
  29. import javax.validation.Valid;

  30. @XmlAccessorType(XmlAccessType.FIELD)
  31.  @XmlType(name = "TransazioneExtInformazioniSoggetto", propOrder =
  32.     { "tipo", "codice", "indirizzo"
  33. })

  34. @XmlRootElement(name="TransazioneExtInformazioniSoggetto")
  35. public class TransazioneExtInformazioniSoggetto  {
  36.   @XmlElement(name="tipo", required = true)
  37.  
  38.   @Schema(required = true, description = "")
  39.   private String tipo = null;
  40.   @XmlElement(name="codice", required = true)
  41.  
  42.   @Schema(required = true, description = "")
  43.   private String codice = null;
  44.   @XmlElement(name="indirizzo")
  45.  
  46.   @Schema(description = "")
  47.   private String indirizzo = null;
  48.  /**
  49.    * Get tipo
  50.    * @return tipo
  51.   **/
  52.   @JsonProperty("tipo")
  53.   @NotNull
  54.   @Valid
  55.  @Pattern(regexp="^[a-z]{2,20}$") @Size(max=20)  public String getTipo() {
  56.     return this.tipo;
  57.   }

  58.   public void setTipo(String tipo) {
  59.     this.tipo = tipo;
  60.   }

  61.   public TransazioneExtInformazioniSoggetto tipo(String tipo) {
  62.     this.tipo = tipo;
  63.     return this;
  64.   }

  65.  /**
  66.    * Get codice
  67.    * @return codice
  68.   **/
  69.   @JsonProperty("codice")
  70.   @NotNull
  71.   @Valid
  72.   public String getCodice() {
  73.     return this.codice;
  74.   }

  75.   public void setCodice(String codice) {
  76.     this.codice = codice;
  77.   }

  78.   public TransazioneExtInformazioniSoggetto codice(String codice) {
  79.     this.codice = codice;
  80.     return this;
  81.   }

  82.  /**
  83.    * Get indirizzo
  84.    * @return indirizzo
  85.   **/
  86.   @JsonProperty("indirizzo")
  87.   @Valid
  88.   public String getIndirizzo() {
  89.     return this.indirizzo;
  90.   }

  91.   public void setIndirizzo(String indirizzo) {
  92.     this.indirizzo = indirizzo;
  93.   }

  94.   public TransazioneExtInformazioniSoggetto indirizzo(String indirizzo) {
  95.     this.indirizzo = indirizzo;
  96.     return this;
  97.   }


  98.   @Override
  99.   public String toString() {
  100.     StringBuilder sb = new StringBuilder();
  101.     sb.append("class TransazioneExtInformazioniSoggetto {\n");
  102.    
  103.     sb.append("    tipo: ").append(TransazioneExtInformazioniSoggetto.toIndentedString(this.tipo)).append("\n");
  104.     sb.append("    codice: ").append(TransazioneExtInformazioniSoggetto.toIndentedString(this.codice)).append("\n");
  105.     sb.append("    indirizzo: ").append(TransazioneExtInformazioniSoggetto.toIndentedString(this.indirizzo)).append("\n");
  106.     sb.append("}");
  107.     return sb.toString();
  108.   }

  109.   /**
  110.    * Convert the given object to string with each line indented by 4 spaces
  111.    * (except the first line).
  112.    */
  113.   private static String toIndentedString(java.lang.Object o) {
  114.     if (o == null) {
  115.       return "null";
  116.     }
  117.     return o.toString().replace("\n", "\n    ");
  118.   }
  119. }