ItemTransazione.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.core.monitor.rs.server.model;

  21. import org.joda.time.DateTime;
  22. import org.openspcoop2.utils.service.beans.ProfiloEnum;
  23. import org.openspcoop2.utils.service.beans.TransazioneBase;
  24. import org.openspcoop2.utils.service.beans.TransazioneContestoEnum;
  25. import org.openspcoop2.utils.service.beans.TransazioneExtDettaglioRichiestaBase;
  26. import org.openspcoop2.utils.service.beans.TransazioneExtDettaglioRispostaBase;
  27. import org.openspcoop2.utils.service.beans.TransazioneExtInformazioniApiBase;
  28. import org.openspcoop2.utils.service.beans.TransazioneExtInformazioniMittenteBase;
  29. import org.openspcoop2.utils.service.beans.TransazioneExtInformazioniSoggetto;
  30. import javax.validation.constraints.*;

  31. import io.swagger.v3.oas.annotations.media.Schema;
  32. import com.fasterxml.jackson.annotation.JsonProperty;
  33. import javax.validation.Valid;

  34. public class ItemTransazione extends TransazioneBase {
  35.  
  36.   @Schema(required = true, description = "")
  37.   private ProfiloEnum profilo = null;
  38.  
  39.   @Schema(required = true, description = "")
  40.   private TransazioneContestoEnum contesto = null;
  41.  
  42.   @Schema(description = "")
  43.   private String idCluster = null;
  44.  
  45.   @Schema(description = "")
  46.   private TransazioneExtInformazioniSoggetto informazioniEmittente = null;
  47.  
  48.   @Schema(description = "")
  49.   private String stato = null;
  50.  
  51.   @Schema(required = true, description = "")
  52.   private DateTime data = null;
  53.  
  54.   @Schema(example = "8", description = "")
  55.   private Long latenzaServizio = null;
  56.  
  57.   @Schema(example = "20", description = "")
  58.   private Long latenzaTotale = null;
  59.  
  60.   @Schema(description = "")
  61.   private TransazioneExtDettaglioRichiestaBase richiesta = null;
  62.  
  63.   @Schema(description = "")
  64.   private TransazioneExtDettaglioRispostaBase risposta = null;
  65.  
  66.   @Schema(description = "")
  67.   private TransazioneExtInformazioniApiBase api = null;
  68.  
  69.   @Schema(description = "")
  70.   private TransazioneExtInformazioniMittenteBase mittente = null;
  71.  
  72.   @Schema(description = "")
  73.   private PDNDOrganizationInfoItemTransazione pdndOrganization = null;
  74.  
  75.   @Schema(description = "")
  76.   private String richiedente = null;
  77.  /**
  78.    * Get profilo
  79.    * @return profilo
  80.   **/
  81.   @JsonProperty("profilo")
  82.   @NotNull
  83.   @Valid
  84.   public ProfiloEnum getProfilo() {
  85.     return this.profilo;
  86.   }

  87.   public void setProfilo(ProfiloEnum profilo) {
  88.     this.profilo = profilo;
  89.   }

  90.   public ItemTransazione profilo(ProfiloEnum profilo) {
  91.     this.profilo = profilo;
  92.     return this;
  93.   }

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

  104.   public void setContesto(TransazioneContestoEnum contesto) {
  105.     this.contesto = contesto;
  106.   }

  107.   public ItemTransazione contesto(TransazioneContestoEnum contesto) {
  108.     this.contesto = contesto;
  109.     return this;
  110.   }

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

  120.   public void setIdCluster(String idCluster) {
  121.     this.idCluster = idCluster;
  122.   }

  123.   public ItemTransazione idCluster(String idCluster) {
  124.     this.idCluster = idCluster;
  125.     return this;
  126.   }

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

  136.   public void setInformazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  137.     this.informazioniEmittente = informazioniEmittente;
  138.   }

  139.   public ItemTransazione informazioniEmittente(TransazioneExtInformazioniSoggetto informazioniEmittente) {
  140.     this.informazioniEmittente = informazioniEmittente;
  141.     return this;
  142.   }

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

  152.   public void setStato(String stato) {
  153.     this.stato = stato;
  154.   }

  155.   public ItemTransazione stato(String stato) {
  156.     this.stato = stato;
  157.     return this;
  158.   }

  159.  /**
  160.    * Get data
  161.    * @return data
  162.   **/
  163.   @JsonProperty("data")
  164.   @NotNull
  165.   @Valid
  166.   public DateTime getData() {
  167.     return this.data;
  168.   }

  169.   public void setData(DateTime data) {
  170.     this.data = data;
  171.   }

  172.   public ItemTransazione data(DateTime data) {
  173.     this.data = data;
  174.     return this;
  175.   }

  176.  /**
  177.    * Get latenzaServizio
  178.    * @return latenzaServizio
  179.   **/
  180.   @JsonProperty("latenza_servizio")
  181.   @Valid
  182.   public Long getLatenzaServizio() {
  183.     return this.latenzaServizio;
  184.   }

  185.   public void setLatenzaServizio(Long latenzaServizio) {
  186.     this.latenzaServizio = latenzaServizio;
  187.   }

  188.   public ItemTransazione latenzaServizio(Long latenzaServizio) {
  189.     this.latenzaServizio = latenzaServizio;
  190.     return this;
  191.   }

  192.  /**
  193.    * Get latenzaTotale
  194.    * @return latenzaTotale
  195.   **/
  196.   @JsonProperty("latenza_totale")
  197.   @Valid
  198.   public Long getLatenzaTotale() {
  199.     return this.latenzaTotale;
  200.   }

  201.   public void setLatenzaTotale(Long latenzaTotale) {
  202.     this.latenzaTotale = latenzaTotale;
  203.   }

  204.   public ItemTransazione latenzaTotale(Long latenzaTotale) {
  205.     this.latenzaTotale = latenzaTotale;
  206.     return this;
  207.   }

  208.  /**
  209.    * Get richiesta
  210.    * @return richiesta
  211.   **/
  212.   @JsonProperty("richiesta")
  213.   @Valid
  214.   public TransazioneExtDettaglioRichiestaBase getRichiesta() {
  215.     return this.richiesta;
  216.   }

  217.   public void setRichiesta(TransazioneExtDettaglioRichiestaBase richiesta) {
  218.     this.richiesta = richiesta;
  219.   }

  220.   public ItemTransazione richiesta(TransazioneExtDettaglioRichiestaBase richiesta) {
  221.     this.richiesta = richiesta;
  222.     return this;
  223.   }

  224.  /**
  225.    * Get risposta
  226.    * @return risposta
  227.   **/
  228.   @JsonProperty("risposta")
  229.   @Valid
  230.   public TransazioneExtDettaglioRispostaBase getRisposta() {
  231.     return this.risposta;
  232.   }

  233.   public void setRisposta(TransazioneExtDettaglioRispostaBase risposta) {
  234.     this.risposta = risposta;
  235.   }

  236.   public ItemTransazione risposta(TransazioneExtDettaglioRispostaBase risposta) {
  237.     this.risposta = risposta;
  238.     return this;
  239.   }

  240.  /**
  241.    * Get api
  242.    * @return api
  243.   **/
  244.   @JsonProperty("api")
  245.   @Valid
  246.   public TransazioneExtInformazioniApiBase getApi() {
  247.     return this.api;
  248.   }

  249.   public void setApi(TransazioneExtInformazioniApiBase api) {
  250.     this.api = api;
  251.   }

  252.   public ItemTransazione api(TransazioneExtInformazioniApiBase api) {
  253.     this.api = api;
  254.     return this;
  255.   }

  256.  /**
  257.    * Get mittente
  258.    * @return mittente
  259.   **/
  260.   @JsonProperty("mittente")
  261.   @Valid
  262.   public TransazioneExtInformazioniMittenteBase getMittente() {
  263.     return this.mittente;
  264.   }

  265.   public void setMittente(TransazioneExtInformazioniMittenteBase mittente) {
  266.     this.mittente = mittente;
  267.   }

  268.   public ItemTransazione mittente(TransazioneExtInformazioniMittenteBase mittente) {
  269.     this.mittente = mittente;
  270.     return this;
  271.   }

  272.  /**
  273.    * Get pdndOrganization
  274.    * @return pdndOrganization
  275.   **/
  276.   @JsonProperty("pdnd_organization")
  277.   @Valid
  278.   public PDNDOrganizationInfoItemTransazione getPdndOrganization() {
  279.     return this.pdndOrganization;
  280.   }

  281.   public void setPdndOrganization(PDNDOrganizationInfoItemTransazione pdndOrganization) {
  282.     this.pdndOrganization = pdndOrganization;
  283.   }

  284.   public ItemTransazione pdndOrganization(PDNDOrganizationInfoItemTransazione pdndOrganization) {
  285.     this.pdndOrganization = pdndOrganization;
  286.     return this;
  287.   }

  288.  /**
  289.    * Get richiedente
  290.    * @return richiedente
  291.   **/
  292.   @JsonProperty("richiedente")
  293.   @Valid
  294.   public String getRichiedente() {
  295.     return this.richiedente;
  296.   }

  297.   public void setRichiedente(String richiedente) {
  298.     this.richiedente = richiedente;
  299.   }

  300.   public ItemTransazione richiedente(String richiedente) {
  301.     this.richiedente = richiedente;
  302.     return this;
  303.   }


  304.   @Override
  305.   public String toString() {
  306.     StringBuilder sb = new StringBuilder();
  307.     sb.append("class ItemTransazione {\n");
  308.     sb.append("    ").append(ItemTransazione.toIndentedString(super.toString())).append("\n");
  309.     sb.append("    profilo: ").append(ItemTransazione.toIndentedString(this.profilo)).append("\n");
  310.     sb.append("    contesto: ").append(ItemTransazione.toIndentedString(this.contesto)).append("\n");
  311.     sb.append("    idCluster: ").append(ItemTransazione.toIndentedString(this.idCluster)).append("\n");
  312.     sb.append("    informazioniEmittente: ").append(ItemTransazione.toIndentedString(this.informazioniEmittente)).append("\n");
  313.     sb.append("    stato: ").append(ItemTransazione.toIndentedString(this.stato)).append("\n");
  314.     sb.append("    data: ").append(ItemTransazione.toIndentedString(this.data)).append("\n");
  315.     sb.append("    latenzaServizio: ").append(ItemTransazione.toIndentedString(this.latenzaServizio)).append("\n");
  316.     sb.append("    latenzaTotale: ").append(ItemTransazione.toIndentedString(this.latenzaTotale)).append("\n");
  317.     sb.append("    richiesta: ").append(ItemTransazione.toIndentedString(this.richiesta)).append("\n");
  318.     sb.append("    risposta: ").append(ItemTransazione.toIndentedString(this.risposta)).append("\n");
  319.     sb.append("    api: ").append(ItemTransazione.toIndentedString(this.api)).append("\n");
  320.     sb.append("    mittente: ").append(ItemTransazione.toIndentedString(this.mittente)).append("\n");
  321.     sb.append("    pdndOrganization: ").append(ItemTransazione.toIndentedString(this.pdndOrganization)).append("\n");
  322.     sb.append("    richiedente: ").append(ItemTransazione.toIndentedString(this.richiedente)).append("\n");
  323.     sb.append("}");
  324.     return sb.toString();
  325.   }

  326.   /**
  327.    * Convert the given object to string with each line indented by 4 spaces
  328.    * (except the first line).
  329.    */
  330.   private static String toIndentedString(java.lang.Object o) {
  331.     if (o == null) {
  332.       return "null";
  333.     }
  334.     return o.toString().replace("\n", "\n    ");
  335.   }
  336. }