TransazioneExt.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 = "TransazioneExt", propOrder =
  32.     { "profilo", "contesto", "idCluster", "informazioniEmittente", "stato", "richiesta", "risposta", "api", "mittente", "diagnostici"
  33. })


  34. public class TransazioneExt extends TransazioneBase {
  35.   @XmlElement(name="profilo", required = true)
  36.  
  37.   @Schema(required = true, description = "")
  38.   private ProfiloEnum profilo = null;
  39.   @XmlElement(name="contesto", required = true)
  40.  
  41.   @Schema(required = true, description = "")
  42.   private TransazioneContestoEnum contesto = null;
  43.   @XmlElement(name="id_cluster")
  44.  
  45.   @Schema(description = "")
  46.   private String idCluster = null;
  47.   @XmlElement(name="informazioni_emittente")
  48.  
  49.   @Schema(description = "")
  50.   private TransazioneExtInformazioniSoggetto informazioniEmittente = null;
  51.   @XmlElement(name="stato")
  52.  
  53.   @Schema(description = "")
  54.   private String stato = null;
  55.   @XmlElement(name="richiesta")
  56.  
  57.   @Schema(description = "")
  58.   private TransazioneExtDettaglioRichiesta richiesta = null;
  59.   @XmlElement(name="risposta")
  60.  
  61.   @Schema(description = "")
  62.   private TransazioneExtDettaglioRisposta risposta = null;
  63.   @XmlElement(name="api")
  64.  
  65.   @Schema(description = "")
  66.   private TransazioneExtInformazioniApi api = null;
  67.   @XmlElement(name="mittente")
  68.  
  69.   @Schema(description = "")
  70.   private TransazioneExtInformazioniMittente mittente = null;
  71.   @XmlElement(name="diagnostici")
  72.  
  73.   @Schema(description = "")
  74.   private List<Diagnostico> diagnostici = null;
  75.  /**
  76.    * Get profilo
  77.    * @return profilo
  78.   **/
  79.   @JsonProperty("profilo")
  80.   @NotNull
  81.   @Valid
  82.   public ProfiloEnum getProfilo() {
  83.     return this.profilo;
  84.   }

  85.   public void setProfilo(ProfiloEnum profilo) {
  86.     this.profilo = profilo;
  87.   }

  88.   public TransazioneExt profilo(ProfiloEnum profilo) {
  89.     this.profilo = profilo;
  90.     return this;
  91.   }

  92.  /**
  93.    * Get contesto
  94.    * @return contesto
  95.   **/
  96.   @JsonProperty("contesto")
  97.   @NotNull
  98.   @Valid
  99.   public TransazioneContestoEnum getContesto() {
  100.     return this.contesto;
  101.   }

  102.   public void setContesto(TransazioneContestoEnum contesto) {
  103.     this.contesto = contesto;
  104.   }

  105.   public TransazioneExt contesto(TransazioneContestoEnum contesto) {
  106.     this.contesto = contesto;
  107.     return this;
  108.   }

  109.  /**
  110.    * Get idCluster
  111.    * @return idCluster
  112.   **/
  113.   @JsonProperty("id_cluster")
  114.   @Valid
  115.   public String getIdCluster() {
  116.     return this.idCluster;
  117.   }

  118.   public void setIdCluster(String idCluster) {
  119.     this.idCluster = idCluster;
  120.   }

  121.   public TransazioneExt idCluster(String idCluster) {
  122.     this.idCluster = idCluster;
  123.     return this;
  124.   }

  125.  /**
  126.    * Get informazioniEmittente
  127.    * @return informazioniEmittente
  128.   **/
  129.   @JsonProperty("informazioni_emittente")
  130.   @Valid
  131.   public TransazioneExtInformazioniSoggetto getInformazioniEmittente() {
  132.     return this.informazioniEmittente;
  133.   }

  134.   public void setInformazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  135.     this.informazioniEmittente = informazioniEmittente;
  136.   }

  137.   public TransazioneExt informazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  138.     this.informazioniEmittente = informazioniEmittente;
  139.     return this;
  140.   }

  141.  /**
  142.    * Get stato
  143.    * @return stato
  144.   **/
  145.   @JsonProperty("stato")
  146.   @Valid
  147.   public String getStato() {
  148.     return this.stato;
  149.   }

  150.   public void setStato(String stato) {
  151.     this.stato = stato;
  152.   }

  153.   public TransazioneExt stato(String stato) {
  154.     this.stato = stato;
  155.     return this;
  156.   }

  157.  /**
  158.    * Get richiesta
  159.    * @return richiesta
  160.   **/
  161.   @JsonProperty("richiesta")
  162.   @Valid
  163.   public TransazioneExtDettaglioRichiesta getRichiesta() {
  164.     return this.richiesta;
  165.   }

  166.   public void setRichiesta(TransazioneExtDettaglioRichiesta richiesta) {
  167.     this.richiesta = richiesta;
  168.   }

  169.   public TransazioneExt richiesta(TransazioneExtDettaglioRichiesta richiesta) {
  170.     this.richiesta = richiesta;
  171.     return this;
  172.   }

  173.  /**
  174.    * Get risposta
  175.    * @return risposta
  176.   **/
  177.   @JsonProperty("risposta")
  178.   @Valid
  179.   public TransazioneExtDettaglioRisposta getRisposta() {
  180.     return this.risposta;
  181.   }

  182.   public void setRisposta(TransazioneExtDettaglioRisposta risposta) {
  183.     this.risposta = risposta;
  184.   }

  185.   public TransazioneExt risposta(TransazioneExtDettaglioRisposta risposta) {
  186.     this.risposta = risposta;
  187.     return this;
  188.   }

  189.  /**
  190.    * Get api
  191.    * @return api
  192.   **/
  193.   @JsonProperty("api")
  194.   @Valid
  195.   public TransazioneExtInformazioniApi getApi() {
  196.     return this.api;
  197.   }

  198.   public void setApi(TransazioneExtInformazioniApi api) {
  199.     this.api = api;
  200.   }

  201.   public TransazioneExt api(TransazioneExtInformazioniApi api) {
  202.     this.api = api;
  203.     return this;
  204.   }

  205.  /**
  206.    * Get mittente
  207.    * @return mittente
  208.   **/
  209.   @JsonProperty("mittente")
  210.   @Valid
  211.   public TransazioneExtInformazioniMittente getMittente() {
  212.     return this.mittente;
  213.   }

  214.   public void setMittente(TransazioneExtInformazioniMittente mittente) {
  215.     this.mittente = mittente;
  216.   }

  217.   public TransazioneExt mittente(TransazioneExtInformazioniMittente mittente) {
  218.     this.mittente = mittente;
  219.     return this;
  220.   }

  221.  /**
  222.    * Get diagnostici
  223.    * @return diagnostici
  224.   **/
  225.   @JsonProperty("diagnostici")
  226.   @Valid
  227.   public List<Diagnostico> getDiagnostici() {
  228.     return this.diagnostici;
  229.   }

  230.   public void setDiagnostici(List<Diagnostico> diagnostici) {
  231.     this.diagnostici = diagnostici;
  232.   }

  233.   public TransazioneExt diagnostici(List<Diagnostico> diagnostici) {
  234.     this.diagnostici = diagnostici;
  235.     return this;
  236.   }

  237.   public TransazioneExt addDiagnosticiItem(Diagnostico diagnosticiItem) {
  238.     this.diagnostici.add(diagnosticiItem);
  239.     return this;
  240.   }


  241.   @Override
  242.   public String toString() {
  243.     StringBuilder sb = new StringBuilder();
  244.     sb.append("class TransazioneExt {\n");
  245.     sb.append("    ").append(TransazioneExt.toIndentedString(super.toString())).append("\n");
  246.     sb.append("    profilo: ").append(TransazioneExt.toIndentedString(this.profilo)).append("\n");
  247.     sb.append("    contesto: ").append(TransazioneExt.toIndentedString(this.contesto)).append("\n");
  248.     sb.append("    idCluster: ").append(TransazioneExt.toIndentedString(this.idCluster)).append("\n");
  249.     sb.append("    informazioniEmittente: ").append(TransazioneExt.toIndentedString(this.informazioniEmittente)).append("\n");
  250.     sb.append("    stato: ").append(TransazioneExt.toIndentedString(this.stato)).append("\n");
  251.     sb.append("    richiesta: ").append(TransazioneExt.toIndentedString(this.richiesta)).append("\n");
  252.     sb.append("    risposta: ").append(TransazioneExt.toIndentedString(this.risposta)).append("\n");
  253.     sb.append("    api: ").append(TransazioneExt.toIndentedString(this.api)).append("\n");
  254.     sb.append("    mittente: ").append(TransazioneExt.toIndentedString(this.mittente)).append("\n");
  255.     sb.append("    diagnostici: ").append(TransazioneExt.toIndentedString(this.diagnostici)).append("\n");
  256.     sb.append("}");
  257.     return sb.toString();
  258.   }

  259.   /**
  260.    * Convert the given object to string with each line indented by 4 spaces
  261.    * (except the first line).
  262.    */
  263.   private static String toIndentedString(java.lang.Object o) {
  264.     if (o == null) {
  265.       return "null";
  266.     }
  267.     return o.toString().replace("\n", "\n    ");
  268.   }
  269. }