TransazioneContenutoMessaggioHeader.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 javax.validation.constraints.*;

  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 = "TransazioneContenutoMessaggioHeader", propOrder =
  32.     { "nome", "valore"
  33. })

  34. @XmlRootElement(name="TransazioneContenutoMessaggioHeader")
  35. public class TransazioneContenutoMessaggioHeader  {
  36.   @XmlElement(name="nome", required = true)
  37.  
  38.   @Schema(example = "Content-Type", required = true, description = "")
  39.   private String nome = null;
  40.   @XmlElement(name="valore", required = true)
  41.  
  42.   @Schema(example = "application/json", required = true, description = "")
  43.   private String valore = null;
  44.  /**
  45.    * Get nome
  46.    * @return nome
  47.   **/
  48.   @JsonProperty("nome")
  49.   @NotNull
  50.   @Valid
  51.   public String getNome() {
  52.     return this.nome;
  53.   }

  54.   public void setNome(String nome) {
  55.     this.nome = nome;
  56.   }

  57.   public TransazioneContenutoMessaggioHeader nome(String nome) {
  58.     this.nome = nome;
  59.     return this;
  60.   }

  61.  /**
  62.    * Get valore
  63.    * @return valore
  64.   **/
  65.   @JsonProperty("valore")
  66.   @NotNull
  67.   @Valid
  68.   public String getValore() {
  69.     return this.valore;
  70.   }

  71.   public void setValore(String valore) {
  72.     this.valore = valore;
  73.   }

  74.   public TransazioneContenutoMessaggioHeader valore(String valore) {
  75.     this.valore = valore;
  76.     return this;
  77.   }


  78.   @Override
  79.   public String toString() {
  80.     StringBuilder sb = new StringBuilder();
  81.     sb.append("class TransazioneContenutoMessaggioHeader {\n");
  82.    
  83.     sb.append("    nome: ").append(TransazioneContenutoMessaggioHeader.toIndentedString(this.nome)).append("\n");
  84.     sb.append("    valore: ").append(TransazioneContenutoMessaggioHeader.toIndentedString(this.valore)).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. }