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

  29. @XmlAccessorType(XmlAccessType.FIELD)
  30.  @XmlType(name = "TransazioneExtDettaglioMessaggioBase", propOrder =
  31.     { "dataAccettazione", "bytesIngresso", "bytesUscita"
  32. })


  33. public class TransazioneExtDettaglioMessaggioBase extends TransazioneDettaglioMessaggio {
  34.   @XmlElement(name="data_accettazione")
  35.  
  36.   @Schema(description = "")
  37.   private DateTime dataAccettazione = null;
  38.   @XmlElement(name="bytes_ingresso")
  39.  
  40.   @Schema(description = "")
  41.   private Long bytesIngresso = null;
  42.   @XmlElement(name="bytes_uscita")
  43.  
  44.   @Schema(description = "")
  45.   private Long bytesUscita = null;
  46.  /**
  47.    * Get dataAccettazione
  48.    * @return dataAccettazione
  49.   **/
  50.   @JsonProperty("data_accettazione")
  51.   @Valid
  52.   public DateTime getDataAccettazione() {
  53.     return this.dataAccettazione;
  54.   }

  55.   public void setDataAccettazione(DateTime dataAccettazione) {
  56.     this.dataAccettazione = dataAccettazione;
  57.   }

  58.   public TransazioneExtDettaglioMessaggioBase dataAccettazione(DateTime dataAccettazione) {
  59.     this.dataAccettazione = dataAccettazione;
  60.     return this;
  61.   }

  62.  /**
  63.    * Get bytesIngresso
  64.    * @return bytesIngresso
  65.   **/
  66.   @JsonProperty("bytes_ingresso")
  67.   @Valid
  68.   public Long getBytesIngresso() {
  69.     return this.bytesIngresso;
  70.   }

  71.   public void setBytesIngresso(Long bytesIngresso) {
  72.     this.bytesIngresso = bytesIngresso;
  73.   }

  74.   public TransazioneExtDettaglioMessaggioBase bytesIngresso(Long bytesIngresso) {
  75.     this.bytesIngresso = bytesIngresso;
  76.     return this;
  77.   }

  78.  /**
  79.    * Get bytesUscita
  80.    * @return bytesUscita
  81.   **/
  82.   @JsonProperty("bytes_uscita")
  83.   @Valid
  84.   public Long getBytesUscita() {
  85.     return this.bytesUscita;
  86.   }

  87.   public void setBytesUscita(Long bytesUscita) {
  88.     this.bytesUscita = bytesUscita;
  89.   }

  90.   public TransazioneExtDettaglioMessaggioBase bytesUscita(Long bytesUscita) {
  91.     this.bytesUscita = bytesUscita;
  92.     return this;
  93.   }


  94.   @Override
  95.   public String toString() {
  96.     StringBuilder sb = new StringBuilder();
  97.     sb.append("class TransazioneExtDettaglioMessaggioBase {\n");
  98.     sb.append("    ").append(TransazioneExtDettaglioMessaggioBase.toIndentedString(super.toString())).append("\n");
  99.     sb.append("    dataAccettazione: ").append(TransazioneExtDettaglioMessaggioBase.toIndentedString(this.dataAccettazione)).append("\n");
  100.     sb.append("    bytesIngresso: ").append(TransazioneExtDettaglioMessaggioBase.toIndentedString(this.bytesIngresso)).append("\n");
  101.     sb.append("    bytesUscita: ").append(TransazioneExtDettaglioMessaggioBase.toIndentedString(this.bytesUscita)).append("\n");
  102.     sb.append("}");
  103.     return sb.toString();
  104.   }

  105.   /**
  106.    * Convert the given object to string with each line indented by 4 spaces
  107.    * (except the first line).
  108.    */
  109.   private static String toIndentedString(java.lang.Object o) {
  110.     if (o == null) {
  111.       return "null";
  112.     }
  113.     return o.toString().replace("\n", "\n    ");
  114.   }
  115. }