DetailTransazione.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.TransazioneExt;
  23. import javax.validation.constraints.*;

  24. import io.swagger.v3.oas.annotations.media.Schema;
  25. import com.fasterxml.jackson.annotation.JsonProperty;
  26. import javax.validation.Valid;

  27. public class DetailTransazione extends TransazioneExt {
  28.  
  29.   @Schema(required = true, description = "")
  30.   private DateTime data = null;
  31.  
  32.   @Schema(example = "8", description = "")
  33.   private Long latenzaServizio = null;
  34.  
  35.   @Schema(example = "20", description = "")
  36.   private Long latenzaTotale = null;
  37.  
  38.   @Schema(description = "")
  39.   private PDNDOrganizationInfo pdndOrganization = null;
  40.  
  41.   @Schema(description = "")
  42.   private String richiedente = null;
  43.  
  44.   @Schema(description = "")
  45.   private String dettaglioErrore = null;
  46.  /**
  47.    * Get data
  48.    * @return data
  49.   **/
  50.   @JsonProperty("data")
  51.   @NotNull
  52.   @Valid
  53.   public DateTime getData() {
  54.     return this.data;
  55.   }

  56.   public void setData(DateTime data) {
  57.     this.data = data;
  58.   }

  59.   public DetailTransazione data(DateTime data) {
  60.     this.data = data;
  61.     return this;
  62.   }

  63.  /**
  64.    * Get latenzaServizio
  65.    * @return latenzaServizio
  66.   **/
  67.   @JsonProperty("latenza_servizio")
  68.   @Valid
  69.   public Long getLatenzaServizio() {
  70.     return this.latenzaServizio;
  71.   }

  72.   public void setLatenzaServizio(Long latenzaServizio) {
  73.     this.latenzaServizio = latenzaServizio;
  74.   }

  75.   public DetailTransazione latenzaServizio(Long latenzaServizio) {
  76.     this.latenzaServizio = latenzaServizio;
  77.     return this;
  78.   }

  79.  /**
  80.    * Get latenzaTotale
  81.    * @return latenzaTotale
  82.   **/
  83.   @JsonProperty("latenza_totale")
  84.   @Valid
  85.   public Long getLatenzaTotale() {
  86.     return this.latenzaTotale;
  87.   }

  88.   public void setLatenzaTotale(Long latenzaTotale) {
  89.     this.latenzaTotale = latenzaTotale;
  90.   }

  91.   public DetailTransazione latenzaTotale(Long latenzaTotale) {
  92.     this.latenzaTotale = latenzaTotale;
  93.     return this;
  94.   }

  95.  /**
  96.    * Get pdndOrganization
  97.    * @return pdndOrganization
  98.   **/
  99.   @JsonProperty("pdnd_organization")
  100.   @Valid
  101.   public PDNDOrganizationInfo getPdndOrganization() {
  102.     return this.pdndOrganization;
  103.   }

  104.   public void setPdndOrganization(PDNDOrganizationInfo pdndOrganization) {
  105.     this.pdndOrganization = pdndOrganization;
  106.   }

  107.   public DetailTransazione pdndOrganization(PDNDOrganizationInfo pdndOrganization) {
  108.     this.pdndOrganization = pdndOrganization;
  109.     return this;
  110.   }

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

  120.   public void setRichiedente(String richiedente) {
  121.     this.richiedente = richiedente;
  122.   }

  123.   public DetailTransazione richiedente(String richiedente) {
  124.     this.richiedente = richiedente;
  125.     return this;
  126.   }

  127.  /**
  128.    * Get dettaglioErrore
  129.    * @return dettaglioErrore
  130.   **/
  131.   @JsonProperty("dettaglio_errore")
  132.   @Valid
  133.   public String getDettaglioErrore() {
  134.     return this.dettaglioErrore;
  135.   }

  136.   public void setDettaglioErrore(String dettaglioErrore) {
  137.     this.dettaglioErrore = dettaglioErrore;
  138.   }

  139.   public DetailTransazione dettaglioErrore(String dettaglioErrore) {
  140.     this.dettaglioErrore = dettaglioErrore;
  141.     return this;
  142.   }


  143.   @Override
  144.   public String toString() {
  145.     StringBuilder sb = new StringBuilder();
  146.     sb.append("class DetailTransazione {\n");
  147.     sb.append("    ").append(DetailTransazione.toIndentedString(super.toString())).append("\n");
  148.     sb.append("    data: ").append(DetailTransazione.toIndentedString(this.data)).append("\n");
  149.     sb.append("    latenzaServizio: ").append(DetailTransazione.toIndentedString(this.latenzaServizio)).append("\n");
  150.     sb.append("    latenzaTotale: ").append(DetailTransazione.toIndentedString(this.latenzaTotale)).append("\n");
  151.     sb.append("    pdndOrganization: ").append(DetailTransazione.toIndentedString(this.pdndOrganization)).append("\n");
  152.     sb.append("    richiedente: ").append(DetailTransazione.toIndentedString(this.richiedente)).append("\n");
  153.     sb.append("    dettaglioErrore: ").append(DetailTransazione.toIndentedString(this.dettaglioErrore)).append("\n");
  154.     sb.append("}");
  155.     return sb.toString();
  156.   }

  157.   /**
  158.    * Convert the given object to string with each line indented by 4 spaces
  159.    * (except the first line).
  160.    */
  161.   private static String toIndentedString(java.lang.Object o) {
  162.     if (o == null) {
  163.       return "null";
  164.     }
  165.     return o.toString().replace("\n", "\n    ");
  166.   }
  167. }