TransazioneExtTipo.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 = "TransazioneExtTipo", propOrder =
  32.     { "profilo", "contesto", "idCluster", "informazioniEmittente", "stato"
  33. })

  34. @XmlRootElement(name="TransazioneExtTipo")
  35. public class TransazioneExtTipo  {
  36.   @XmlElement(name="profilo", required = true)
  37.  
  38.   @Schema(required = true, description = "")
  39.   private ProfiloEnum profilo = null;
  40.   @XmlElement(name="contesto", required = true)
  41.  
  42.   @Schema(required = true, description = "")
  43.   private TransazioneContestoEnum contesto = null;
  44.   @XmlElement(name="id_cluster")
  45.  
  46.   @Schema(description = "")
  47.   private String idCluster = null;
  48.   @XmlElement(name="informazioni_emittente")
  49.  
  50.   @Schema(description = "")
  51.   private TransazioneExtInformazioniSoggetto informazioniEmittente = null;
  52.   @XmlElement(name="stato")
  53.  
  54.   @Schema(description = "")
  55.   private String stato = null;
  56.  /**
  57.    * Get profilo
  58.    * @return profilo
  59.   **/
  60.   @JsonProperty("profilo")
  61.   @NotNull
  62.   @Valid
  63.   public ProfiloEnum getProfilo() {
  64.     return this.profilo;
  65.   }

  66.   public void setProfilo(ProfiloEnum profilo) {
  67.     this.profilo = profilo;
  68.   }

  69.   public TransazioneExtTipo profilo(ProfiloEnum profilo) {
  70.     this.profilo = profilo;
  71.     return this;
  72.   }

  73.  /**
  74.    * Get contesto
  75.    * @return contesto
  76.   **/
  77.   @JsonProperty("contesto")
  78.   @NotNull
  79.   @Valid
  80.   public TransazioneContestoEnum getContesto() {
  81.     return this.contesto;
  82.   }

  83.   public void setContesto(TransazioneContestoEnum contesto) {
  84.     this.contesto = contesto;
  85.   }

  86.   public TransazioneExtTipo contesto(TransazioneContestoEnum contesto) {
  87.     this.contesto = contesto;
  88.     return this;
  89.   }

  90.  /**
  91.    * Get idCluster
  92.    * @return idCluster
  93.   **/
  94.   @JsonProperty("id_cluster")
  95.   @Valid
  96.   public String getIdCluster() {
  97.     return this.idCluster;
  98.   }

  99.   public void setIdCluster(String idCluster) {
  100.     this.idCluster = idCluster;
  101.   }

  102.   public TransazioneExtTipo idCluster(String idCluster) {
  103.     this.idCluster = idCluster;
  104.     return this;
  105.   }

  106.  /**
  107.    * Get informazioniEmittente
  108.    * @return informazioniEmittente
  109.   **/
  110.   @JsonProperty("informazioni_emittente")
  111.   @Valid
  112.   public TransazioneExtInformazioniSoggetto getInformazioniEmittente() {
  113.     return this.informazioniEmittente;
  114.   }

  115.   public void setInformazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  116.     this.informazioniEmittente = informazioniEmittente;
  117.   }

  118.   public TransazioneExtTipo informazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  119.     this.informazioniEmittente = informazioniEmittente;
  120.     return this;
  121.   }

  122.  /**
  123.    * Get stato
  124.    * @return stato
  125.   **/
  126.   @JsonProperty("stato")
  127.   @Valid
  128.   public String getStato() {
  129.     return this.stato;
  130.   }

  131.   public void setStato(String stato) {
  132.     this.stato = stato;
  133.   }

  134.   public TransazioneExtTipo stato(String stato) {
  135.     this.stato = stato;
  136.     return this;
  137.   }


  138.   @Override
  139.   public String toString() {
  140.     StringBuilder sb = new StringBuilder();
  141.     sb.append("class TransazioneExtTipo {\n");
  142.    
  143.     sb.append("    profilo: ").append(TransazioneExtTipo.toIndentedString(this.profilo)).append("\n");
  144.     sb.append("    contesto: ").append(TransazioneExtTipo.toIndentedString(this.contesto)).append("\n");
  145.     sb.append("    idCluster: ").append(TransazioneExtTipo.toIndentedString(this.idCluster)).append("\n");
  146.     sb.append("    informazioniEmittente: ").append(TransazioneExtTipo.toIndentedString(this.informazioniEmittente)).append("\n");
  147.     sb.append("    stato: ").append(TransazioneExtTipo.toIndentedString(this.stato)).append("\n");
  148.     sb.append("}");
  149.     return sb.toString();
  150.   }

  151.   /**
  152.    * Convert the given object to string with each line indented by 4 spaces
  153.    * (except the first line).
  154.    */
  155.   private static String toIndentedString(java.lang.Object o) {
  156.     if (o == null) {
  157.       return "null";
  158.     }
  159.     return o.toString().replace("\n", "\n    ");
  160.   }
  161. }