TransazioneExtInformazioniApiBase.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 java.util.List;
  22. import javax.validation.constraints.*;

  23. import io.swagger.v3.oas.annotations.media.Schema;
  24. import javax.xml.bind.annotation.XmlElement;
  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 = "TransazioneExtInformazioniApiBase", propOrder =
  32.     { "informazioniErogatore", "tipo", "tags"
  33. })


  34. public class TransazioneExtInformazioniApiBase extends TransazioneInformazioniApi {
  35.   @XmlElement(name="informazioni_erogatore", required = true)
  36.  
  37.   @Schema(required = true, description = "")
  38.   private TransazioneExtInformazioniSoggetto informazioniErogatore = null;
  39.   @XmlElement(name="tipo", required = true)
  40.  
  41.   @Schema(required = true, description = "")
  42.   private String tipo = null;
  43.   @XmlElement(name="tags")
  44.  
  45.   @Schema(description = "")
  46.   private List<String> tags = null;
  47.  /**
  48.    * Get informazioniErogatore
  49.    * @return informazioniErogatore
  50.   **/
  51.   @JsonProperty("informazioni_erogatore")
  52.   @NotNull
  53.   @Valid
  54.   public TransazioneExtInformazioniSoggetto getInformazioniErogatore() {
  55.     return this.informazioniErogatore;
  56.   }

  57.   public void setInformazioniErogatore(TransazioneExtInformazioniSoggetto informazioniErogatore) {
  58.     this.informazioniErogatore = informazioniErogatore;
  59.   }

  60.   public TransazioneExtInformazioniApiBase informazioniErogatore(TransazioneExtInformazioniSoggetto informazioniErogatore) {
  61.     this.informazioniErogatore = informazioniErogatore;
  62.     return this;
  63.   }

  64.  /**
  65.    * Get tipo
  66.    * @return tipo
  67.   **/
  68.   @JsonProperty("tipo")
  69.   @NotNull
  70.   @Valid
  71.  @Pattern(regexp="^[a-z]{2,20}$") @Size(max=20)  public String getTipo() {
  72.     return this.tipo;
  73.   }

  74.   public void setTipo(String tipo) {
  75.     this.tipo = tipo;
  76.   }

  77.   public TransazioneExtInformazioniApiBase tipo(String tipo) {
  78.     this.tipo = tipo;
  79.     return this;
  80.   }

  81.  /**
  82.    * Get tags
  83.    * @return tags
  84.   **/
  85.   @JsonProperty("tags")
  86.   @Valid
  87.   public List<String> getTags() {
  88.     return this.tags;
  89.   }

  90.   public void setTags(List<String> tags) {
  91.     this.tags = tags;
  92.   }

  93.   public TransazioneExtInformazioniApiBase tags(List<String> tags) {
  94.     this.tags = tags;
  95.     return this;
  96.   }

  97.   public TransazioneExtInformazioniApiBase addTagsItem(String tagsItem) {
  98.     this.tags.add(tagsItem);
  99.     return this;
  100.   }


  101.   @Override
  102.   public String toString() {
  103.     StringBuilder sb = new StringBuilder();
  104.     sb.append("class TransazioneExtInformazioniApiBase {\n");
  105.     sb.append("    ").append(TransazioneExtInformazioniApiBase.toIndentedString(super.toString())).append("\n");
  106.     sb.append("    informazioniErogatore: ").append(TransazioneExtInformazioniApiBase.toIndentedString(this.informazioniErogatore)).append("\n");
  107.     sb.append("    tipo: ").append(TransazioneExtInformazioniApiBase.toIndentedString(this.tipo)).append("\n");
  108.     sb.append("    tags: ").append(TransazioneExtInformazioniApiBase.toIndentedString(this.tags)).append("\n");
  109.     sb.append("}");
  110.     return sb.toString();
  111.   }

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