TransazioneExtContenutoMessaggio.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.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 = "TransazioneExtContenutoMessaggio", propOrder =
  31.     { "informazioniBody", "attachments"
  32. })


  33. public class TransazioneExtContenutoMessaggio extends TransazioneContenutoMessaggio {
  34.   @XmlElement(name="informazioni_body")
  35.  
  36.   @Schema(description = "")
  37.   private TransazioneExtContenutoMessaggioBody informazioniBody = null;
  38.   @XmlElement(name="attachments")
  39.  
  40.   @Schema(description = "")
  41.   private List<TransazioneExtContenutoMessaggioAllegato> attachments = null;
  42.  /**
  43.    * Get informazioniBody
  44.    * @return informazioniBody
  45.   **/
  46.   @JsonProperty("informazioni_body")
  47.   @Valid
  48.   public TransazioneExtContenutoMessaggioBody getInformazioniBody() {
  49.     return this.informazioniBody;
  50.   }

  51.   public void setInformazioniBody(TransazioneExtContenutoMessaggioBody informazioniBody) {
  52.     this.informazioniBody = informazioniBody;
  53.   }

  54.   public TransazioneExtContenutoMessaggio informazioniBody(TransazioneExtContenutoMessaggioBody informazioniBody) {
  55.     this.informazioniBody = informazioniBody;
  56.     return this;
  57.   }

  58.  /**
  59.    * Get attachments
  60.    * @return attachments
  61.   **/
  62.   @JsonProperty("attachments")
  63.   @Valid
  64.   public List<TransazioneExtContenutoMessaggioAllegato> getAttachments() {
  65.     return this.attachments;
  66.   }

  67.   public void setAttachments(List<TransazioneExtContenutoMessaggioAllegato> attachments) {
  68.     this.attachments = attachments;
  69.   }

  70.   public TransazioneExtContenutoMessaggio attachments(List<TransazioneExtContenutoMessaggioAllegato> attachments) {
  71.     this.attachments = attachments;
  72.     return this;
  73.   }

  74.   public TransazioneExtContenutoMessaggio addAttachmentsItem(TransazioneExtContenutoMessaggioAllegato attachmentsItem) {
  75.     this.attachments.add(attachmentsItem);
  76.     return this;
  77.   }


  78.   @Override
  79.   public String toString() {
  80.     StringBuilder sb = new StringBuilder();
  81.     sb.append("class TransazioneExtContenutoMessaggio {\n");
  82.     sb.append("    ").append(TransazioneExtContenutoMessaggio.toIndentedString(super.toString())).append("\n");
  83.     sb.append("    informazioniBody: ").append(TransazioneExtContenutoMessaggio.toIndentedString(this.informazioniBody)).append("\n");
  84.     sb.append("    attachments: ").append(TransazioneExtContenutoMessaggio.toIndentedString(this.attachments)).append("\n");
  85.     sb.append("}");
  86.     return sb.toString();
  87.   }

  88.   /**
  89.    * Convert the given object to string with each line indented by 4 spaces
  90.    * (except the first line).
  91.    */
  92.   private static String toIndentedString(java.lang.Object o) {
  93.     if (o == null) {
  94.       return "null";
  95.     }
  96.     return o.toString().replace("\n", "\n    ");
  97.   }
  98. }