FruizioneModIRest.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 FruizioneModIRest  implements OneOfFruizioneModi, OneOfFruizioneModIModi {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoConfigurazioneFruizioneEnum protocollo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private FruizioneModIRestRichiesta richiesta = null;
  32.  
  33.   @Schema(required = true, description = "")
  34.   private FruizioneModIRestRisposta risposta = null;
  35.  /**
  36.    * Get protocollo
  37.    * @return protocollo
  38.   **/
  39.   @Override
  40. @JsonProperty("protocollo")
  41.   @NotNull
  42.   @Valid
  43.   public TipoConfigurazioneFruizioneEnum getProtocollo() {
  44.     return this.protocollo;
  45.   }

  46.   public void setProtocollo(TipoConfigurazioneFruizioneEnum protocollo) {
  47.     this.protocollo = protocollo;
  48.   }

  49.   public FruizioneModIRest protocollo(TipoConfigurazioneFruizioneEnum protocollo) {
  50.     this.protocollo = protocollo;
  51.     return this;
  52.   }

  53.  /**
  54.    * Get richiesta
  55.    * @return richiesta
  56.   **/
  57.   @JsonProperty("richiesta")
  58.   @NotNull
  59.   @Valid
  60.   public FruizioneModIRestRichiesta getRichiesta() {
  61.     return this.richiesta;
  62.   }

  63.   public void setRichiesta(FruizioneModIRestRichiesta richiesta) {
  64.     this.richiesta = richiesta;
  65.   }

  66.   public FruizioneModIRest richiesta(FruizioneModIRestRichiesta richiesta) {
  67.     this.richiesta = richiesta;
  68.     return this;
  69.   }

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

  80.   public void setRisposta(FruizioneModIRestRisposta risposta) {
  81.     this.risposta = risposta;
  82.   }

  83.   public FruizioneModIRest risposta(FruizioneModIRestRisposta risposta) {
  84.     this.risposta = risposta;
  85.     return this;
  86.   }


  87.   @Override
  88.   public String toString() {
  89.     StringBuilder sb = new StringBuilder();
  90.     sb.append("class FruizioneModIRest {\n");
  91.    
  92.     sb.append("    protocollo: ").append(FruizioneModIRest.toIndentedString(this.protocollo)).append("\n");
  93.     sb.append("    richiesta: ").append(FruizioneModIRest.toIndentedString(this.richiesta)).append("\n");
  94.     sb.append("    risposta: ").append(FruizioneModIRest.toIndentedString(this.risposta)).append("\n");
  95.     sb.append("}");
  96.     return sb.toString();
  97.   }

  98.   /**
  99.    * Convert the given object to string with each line indented by 4 spaces
  100.    * (except the first line).
  101.    */
  102.   private static String toIndentedString(java.lang.Object o) {
  103.     if (o == null) {
  104.       return "null";
  105.     }
  106.     return o.toString().replace("\n", "\n    ");
  107.   }
  108. }