ErogazioneModIRest.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.core.config.rs.server.model;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. public class ErogazioneModIRest  implements OneOfErogazioneModi, OneOfErogazioneModIModi {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoApiEnum protocollo = null;
  29.  
  30.   @Schema(description = "")
  31.   private ErogazioneModIRestRichiesta richiesta = null;
  32.  
  33.   @Schema(description = "")
  34.   private ErogazioneModIRestRisposta risposta = null;
  35.  
  36.   @Schema(description = "")
  37.   private ErogazioneModIInfoGenerali informazioniGenerali = null;
  38.  /**
  39.    * Get protocollo
  40.    * @return protocollo
  41.   **/
  42.   @Override
  43. @JsonProperty("protocollo")
  44.   @NotNull
  45.   @Valid
  46.   public TipoApiEnum getProtocollo() {
  47.     return this.protocollo;
  48.   }

  49.   public void setProtocollo(TipoApiEnum protocollo) {
  50.     this.protocollo = protocollo;
  51.   }

  52.   public ErogazioneModIRest protocollo(TipoApiEnum protocollo) {
  53.     this.protocollo = protocollo;
  54.     return this;
  55.   }

  56.  /**
  57.    * Get richiesta
  58.    * @return richiesta
  59.   **/
  60.   @JsonProperty("richiesta")
  61.   @Valid
  62.   public ErogazioneModIRestRichiesta getRichiesta() {
  63.     return this.richiesta;
  64.   }

  65.   public void setRichiesta(ErogazioneModIRestRichiesta richiesta) {
  66.     this.richiesta = richiesta;
  67.   }

  68.   public ErogazioneModIRest richiesta(ErogazioneModIRestRichiesta richiesta) {
  69.     this.richiesta = richiesta;
  70.     return this;
  71.   }

  72.  /**
  73.    * Get risposta
  74.    * @return risposta
  75.   **/
  76.   @JsonProperty("risposta")
  77.   @Valid
  78.   public ErogazioneModIRestRisposta getRisposta() {
  79.     return this.risposta;
  80.   }

  81.   public void setRisposta(ErogazioneModIRestRisposta risposta) {
  82.     this.risposta = risposta;
  83.   }

  84.   public ErogazioneModIRest risposta(ErogazioneModIRestRisposta risposta) {
  85.     this.risposta = risposta;
  86.     return this;
  87.   }

  88.  /**
  89.    * Get informazioniGenerali
  90.    * @return informazioniGenerali
  91.   **/
  92.   @JsonProperty("informazioni_generali")
  93.   @Valid
  94.   public ErogazioneModIInfoGenerali getInformazioniGenerali() {
  95.     return this.informazioniGenerali;
  96.   }

  97.   public void setInformazioniGenerali(ErogazioneModIInfoGenerali informazioniGenerali) {
  98.     this.informazioniGenerali = informazioniGenerali;
  99.   }

  100.   public ErogazioneModIRest informazioniGenerali(ErogazioneModIInfoGenerali informazioniGenerali) {
  101.     this.informazioniGenerali = informazioniGenerali;
  102.     return this;
  103.   }


  104.   @Override
  105.   public String toString() {
  106.     StringBuilder sb = new StringBuilder();
  107.     sb.append("class ErogazioneModIRest {\n");
  108.    
  109.     sb.append("    protocollo: ").append(ErogazioneModIRest.toIndentedString(this.protocollo)).append("\n");
  110.     sb.append("    richiesta: ").append(ErogazioneModIRest.toIndentedString(this.richiesta)).append("\n");
  111.     sb.append("    risposta: ").append(ErogazioneModIRest.toIndentedString(this.risposta)).append("\n");
  112.     sb.append("    informazioniGenerali: ").append(ErogazioneModIRest.toIndentedString(this.informazioniGenerali)).append("\n");
  113.     sb.append("}");
  114.     return sb.toString();
  115.   }

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