TransazioneExtContenutoMessaggioBodyMultipart.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 = "TransazioneExtContenutoMessaggioBodyMultipart", propOrder =
  32.     { "contentType", "contentId", "contentLocation", "headers"
  33. })

  34. @XmlRootElement(name="TransazioneExtContenutoMessaggioBodyMultipart")
  35. public class TransazioneExtContenutoMessaggioBodyMultipart  {
  36.   @XmlElement(name="content_type")
  37.  
  38.   @Schema(example = "application/json", description = "")
  39.   private String contentType = null;
  40.   @XmlElement(name="content_id")
  41.  
  42.   @Schema(description = "")
  43.   private String contentId = null;
  44.   @XmlElement(name="content_location")
  45.  
  46.   @Schema(description = "")
  47.   private String contentLocation = null;
  48.   @XmlElement(name="headers")
  49.  
  50.   @Schema(description = "")
  51.   private List<TransazioneContenutoMessaggioHeader> headers = null;
  52.  /**
  53.    * Get contentType
  54.    * @return contentType
  55.   **/
  56.   @JsonProperty("content_type")
  57.   @Valid
  58.   public String getContentType() {
  59.     return this.contentType;
  60.   }

  61.   public void setContentType(String contentType) {
  62.     this.contentType = contentType;
  63.   }

  64.   public TransazioneExtContenutoMessaggioBodyMultipart contentType(String contentType) {
  65.     this.contentType = contentType;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get contentId
  70.    * @return contentId
  71.   **/
  72.   @JsonProperty("content_id")
  73.   @Valid
  74.   public String getContentId() {
  75.     return this.contentId;
  76.   }

  77.   public void setContentId(String contentId) {
  78.     this.contentId = contentId;
  79.   }

  80.   public TransazioneExtContenutoMessaggioBodyMultipart contentId(String contentId) {
  81.     this.contentId = contentId;
  82.     return this;
  83.   }

  84.  /**
  85.    * Get contentLocation
  86.    * @return contentLocation
  87.   **/
  88.   @JsonProperty("content_location")
  89.   @Valid
  90.   public String getContentLocation() {
  91.     return this.contentLocation;
  92.   }

  93.   public void setContentLocation(String contentLocation) {
  94.     this.contentLocation = contentLocation;
  95.   }

  96.   public TransazioneExtContenutoMessaggioBodyMultipart contentLocation(String contentLocation) {
  97.     this.contentLocation = contentLocation;
  98.     return this;
  99.   }

  100.  /**
  101.    * Get headers
  102.    * @return headers
  103.   **/
  104.   @JsonProperty("headers")
  105.   @Valid
  106.   public List<TransazioneContenutoMessaggioHeader> getHeaders() {
  107.     return this.headers;
  108.   }

  109.   public void setHeaders(List<TransazioneContenutoMessaggioHeader> headers) {
  110.     this.headers = headers;
  111.   }

  112.   public TransazioneExtContenutoMessaggioBodyMultipart headers(List<TransazioneContenutoMessaggioHeader> headers) {
  113.     this.headers = headers;
  114.     return this;
  115.   }

  116.   public TransazioneExtContenutoMessaggioBodyMultipart addHeadersItem(TransazioneContenutoMessaggioHeader headersItem) {
  117.     this.headers.add(headersItem);
  118.     return this;
  119.   }


  120.   @Override
  121.   public String toString() {
  122.     StringBuilder sb = new StringBuilder();
  123.     sb.append("class TransazioneExtContenutoMessaggioBodyMultipart {\n");
  124.    
  125.     sb.append("    contentType: ").append(TransazioneExtContenutoMessaggioBodyMultipart.toIndentedString(this.contentType)).append("\n");
  126.     sb.append("    contentId: ").append(TransazioneExtContenutoMessaggioBodyMultipart.toIndentedString(this.contentId)).append("\n");
  127.     sb.append("    contentLocation: ").append(TransazioneExtContenutoMessaggioBodyMultipart.toIndentedString(this.contentLocation)).append("\n");
  128.     sb.append("    headers: ").append(TransazioneExtContenutoMessaggioBodyMultipart.toIndentedString(this.headers)).append("\n");
  129.     sb.append("}");
  130.     return sb.toString();
  131.   }

  132.   /**
  133.    * Convert the given object to string with each line indented by 4 spaces
  134.    * (except the first line).
  135.    */
  136.   private static String toIndentedString(java.lang.Object o) {
  137.     if (o == null) {
  138.       return "null";
  139.     }
  140.     return o.toString().replace("\n", "\n    ");
  141.   }
  142. }