TransazioneDettaglioRispostaErrore.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 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 = "TransazioneDettaglioRispostaErrore", propOrder =
  32.     { "faultRicezione", "faultConsegna", "dettagliErrore"
  33. })

  34. @XmlRootElement(name="TransazioneDettaglioRispostaErrore")
  35. public class TransazioneDettaglioRispostaErrore  {
  36.   @XmlElement(name="fault_ricezione")
  37.  
  38.   @Schema(description = "")
  39.   private byte[] faultRicezione = null;
  40.   @XmlElement(name="fault_consegna")
  41.  
  42.   @Schema(description = "")
  43.   private byte[] faultConsegna = null;
  44.   @XmlElement(name="dettagli_errore")
  45.  
  46.   @Schema(description = "")
  47.   private List<String> dettagliErrore = null;
  48.  /**
  49.    * Get faultRicezione
  50.    * @return faultRicezione
  51.   **/
  52.   @JsonProperty("fault_ricezione")
  53.   @Valid
  54.   public byte[] getFaultRicezione() {
  55.     return this.faultRicezione;
  56.   }

  57.   public void setFaultRicezione(byte[] faultRicezione) {
  58.     this.faultRicezione = faultRicezione;
  59.   }

  60.   public TransazioneDettaglioRispostaErrore faultRicezione(byte[] faultRicezione) {
  61.     this.faultRicezione = faultRicezione;
  62.     return this;
  63.   }

  64.  /**
  65.    * Get faultConsegna
  66.    * @return faultConsegna
  67.   **/
  68.   @JsonProperty("fault_consegna")
  69.   @Valid
  70.   public byte[] getFaultConsegna() {
  71.     return this.faultConsegna;
  72.   }

  73.   public void setFaultConsegna(byte[] faultConsegna) {
  74.     this.faultConsegna = faultConsegna;
  75.   }

  76.   public TransazioneDettaglioRispostaErrore faultConsegna(byte[] faultConsegna) {
  77.     this.faultConsegna = faultConsegna;
  78.     return this;
  79.   }

  80.  /**
  81.    * Get dettagliErrore
  82.    * @return dettagliErrore
  83.   **/
  84.   @JsonProperty("dettagli_errore")
  85.   @Valid
  86.   public List<String> getDettagliErrore() {
  87.     return this.dettagliErrore;
  88.   }

  89.   public void setDettagliErrore(List<String> dettagliErrore) {
  90.     this.dettagliErrore = dettagliErrore;
  91.   }

  92.   public TransazioneDettaglioRispostaErrore dettagliErrore(List<String> dettagliErrore) {
  93.     this.dettagliErrore = dettagliErrore;
  94.     return this;
  95.   }

  96.   public TransazioneDettaglioRispostaErrore addDettagliErroreItem(String dettagliErroreItem) {
  97.     this.dettagliErrore.add(dettagliErroreItem);
  98.     return this;
  99.   }


  100.   @Override
  101.   public String toString() {
  102.     StringBuilder sb = new StringBuilder();
  103.     sb.append("class TransazioneDettaglioRispostaErrore {\n");
  104.    
  105.     sb.append("    faultRicezione: ").append(TransazioneDettaglioRispostaErrore.toIndentedString(this.faultRicezione)).append("\n");
  106.     sb.append("    faultConsegna: ").append(TransazioneDettaglioRispostaErrore.toIndentedString(this.faultConsegna)).append("\n");
  107.     sb.append("    dettagliErrore: ").append(TransazioneDettaglioRispostaErrore.toIndentedString(this.dettagliErrore)).append("\n");
  108.     sb.append("}");
  109.     return sb.toString();
  110.   }

  111.   /**
  112.    * Convert the given object to string with each line indented by 4 spaces
  113.    * (except the first line).
  114.    */
  115.   private static String toIndentedString(java.lang.Object o) {
  116.     if (o == null) {
  117.       return "null";
  118.     }
  119.     return o.toString().replace("\n", "\n    ");
  120.   }
  121. }