TransazioneInformazioniApi.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 = "TransazioneInformazioniApi", propOrder =
  32.     { "erogatore", "nome", "versione", "operazione"
  33. })

  34. @XmlRootElement(name="TransazioneInformazioniApi")
  35. public class TransazioneInformazioniApi  {
  36.   @XmlElement(name="erogatore", required = true)
  37.  
  38.   @Schema(required = true, description = "")
  39.   private String erogatore = null;
  40.   @XmlElement(name="nome", required = true)
  41.  
  42.   @Schema(required = true, description = "")
  43.   private String nome = null;
  44.   @XmlElement(name="versione", required = true)
  45.  
  46.   @Schema(required = true, description = "")
  47.   private Integer versione = null;
  48.   @XmlElement(name="operazione")
  49.  
  50.   @Schema(description = "")
  51.   private String operazione = null;
  52.  /**
  53.    * Get erogatore
  54.    * @return erogatore
  55.   **/
  56.   @JsonProperty("erogatore")
  57.   @NotNull
  58.   @Valid
  59.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getErogatore() {
  60.     return this.erogatore;
  61.   }

  62.   public void setErogatore(String erogatore) {
  63.     this.erogatore = erogatore;
  64.   }

  65.   public TransazioneInformazioniApi erogatore(String erogatore) {
  66.     this.erogatore = erogatore;
  67.     return this;
  68.   }

  69.  /**
  70.    * Get nome
  71.    * @return nome
  72.   **/
  73.   @JsonProperty("nome")
  74.   @NotNull
  75.   @Valid
  76.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  77.     return this.nome;
  78.   }

  79.   public void setNome(String nome) {
  80.     this.nome = nome;
  81.   }

  82.   public TransazioneInformazioniApi nome(String nome) {
  83.     this.nome = nome;
  84.     return this;
  85.   }

  86.  /**
  87.    * Get versione
  88.    * @return versione
  89.   **/
  90.   @JsonProperty("versione")
  91.   @NotNull
  92.   @Valid
  93.   public Integer getVersione() {
  94.     return this.versione;
  95.   }

  96.   public void setVersione(Integer versione) {
  97.     this.versione = versione;
  98.   }

  99.   public TransazioneInformazioniApi versione(Integer versione) {
  100.     this.versione = versione;
  101.     return this;
  102.   }

  103.  /**
  104.    * Get operazione
  105.    * @return operazione
  106.   **/
  107.   @JsonProperty("operazione")
  108.   @Valid
  109.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getOperazione() {
  110.     return this.operazione;
  111.   }

  112.   public void setOperazione(String operazione) {
  113.     this.operazione = operazione;
  114.   }

  115.   public TransazioneInformazioniApi operazione(String operazione) {
  116.     this.operazione = operazione;
  117.     return this;
  118.   }


  119.   @Override
  120.   public String toString() {
  121.     StringBuilder sb = new StringBuilder();
  122.     sb.append("class TransazioneInformazioniApi {\n");
  123.    
  124.     sb.append("    erogatore: ").append(TransazioneInformazioniApi.toIndentedString(this.erogatore)).append("\n");
  125.     sb.append("    nome: ").append(TransazioneInformazioniApi.toIndentedString(this.nome)).append("\n");
  126.     sb.append("    versione: ").append(TransazioneInformazioniApi.toIndentedString(this.versione)).append("\n");
  127.     sb.append("    operazione: ").append(TransazioneInformazioniApi.toIndentedString(this.operazione)).append("\n");
  128.     sb.append("}");
  129.     return sb.toString();
  130.   }

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