TransazioneExtInformazioniApi.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 io.swagger.v3.oas.annotations.media.Schema;
  22. import javax.xml.bind.annotation.XmlElement;
  23. import javax.xml.bind.annotation.XmlAccessType;
  24. import javax.xml.bind.annotation.XmlAccessorType;
  25. import javax.xml.bind.annotation.XmlType;
  26. import com.fasterxml.jackson.annotation.JsonProperty;
  27. import javax.validation.Valid;

  28. @XmlAccessorType(XmlAccessType.FIELD)
  29.  @XmlType(name = "TransazioneExtInformazioniApi", propOrder =
  30.     { "profiloCollaborazione", "idAsincrono"
  31. })


  32. public class TransazioneExtInformazioniApi extends TransazioneExtInformazioniApiBase {
  33.   @XmlElement(name="profilo_collaborazione")
  34.  
  35.   @Schema(description = "")
  36.   private ProfiloCollaborazioneEnum profiloCollaborazione = null;
  37.   @XmlElement(name="id_asincrono")
  38.  
  39.   @Schema(description = "")
  40.   private String idAsincrono = null;
  41.  /**
  42.    * Get profiloCollaborazione
  43.    * @return profiloCollaborazione
  44.   **/
  45.   @JsonProperty("profilo_collaborazione")
  46.   @Valid
  47.   public ProfiloCollaborazioneEnum getProfiloCollaborazione() {
  48.     return this.profiloCollaborazione;
  49.   }

  50.   public void setProfiloCollaborazione(ProfiloCollaborazioneEnum profiloCollaborazione) {
  51.     this.profiloCollaborazione = profiloCollaborazione;
  52.   }

  53.   public TransazioneExtInformazioniApi profiloCollaborazione(ProfiloCollaborazioneEnum profiloCollaborazione) {
  54.     this.profiloCollaborazione = profiloCollaborazione;
  55.     return this;
  56.   }

  57.  /**
  58.    * Get idAsincrono
  59.    * @return idAsincrono
  60.   **/
  61.   @JsonProperty("id_asincrono")
  62.   @Valid
  63.   public String getIdAsincrono() {
  64.     return this.idAsincrono;
  65.   }

  66.   public void setIdAsincrono(String idAsincrono) {
  67.     this.idAsincrono = idAsincrono;
  68.   }

  69.   public TransazioneExtInformazioniApi idAsincrono(String idAsincrono) {
  70.     this.idAsincrono = idAsincrono;
  71.     return this;
  72.   }


  73.   @Override
  74.   public String toString() {
  75.     StringBuilder sb = new StringBuilder();
  76.     sb.append("class TransazioneExtInformazioniApi {\n");
  77.     sb.append("    ").append(TransazioneExtInformazioniApi.toIndentedString(super.toString())).append("\n");
  78.     sb.append("    profiloCollaborazione: ").append(TransazioneExtInformazioniApi.toIndentedString(this.profiloCollaborazione)).append("\n");
  79.     sb.append("    idAsincrono: ").append(TransazioneExtInformazioniApi.toIndentedString(this.idAsincrono)).append("\n");
  80.     sb.append("}");
  81.     return sb.toString();
  82.   }

  83.   /**
  84.    * Convert the given object to string with each line indented by 4 spaces
  85.    * (except the first line).
  86.    */
  87.   private static String toIndentedString(java.lang.Object o) {
  88.     if (o == null) {
  89.       return "null";
  90.     }
  91.     return o.toString().replace("\n", "\n    ");
  92.   }
  93. }