ApiInterfacciaSoap.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 ApiInterfacciaSoap  implements OneOfApiBaseTipoInterfaccia, OneOfApiInterfacciaViewTipoInterfaccia {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoApiEnum protocollo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private FormatoSoapEnum formato = null;
  32.  /**
  33.    * Get protocollo
  34.    * @return protocollo
  35.   **/
  36.   @Override
  37. @JsonProperty("protocollo")
  38.   @NotNull
  39.   @Valid
  40.   public TipoApiEnum getProtocollo() {
  41.     return this.protocollo;
  42.   }

  43.   public void setProtocollo(TipoApiEnum protocollo) {
  44.     this.protocollo = protocollo;
  45.   }

  46.   public ApiInterfacciaSoap protocollo(TipoApiEnum protocollo) {
  47.     this.protocollo = protocollo;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get formato
  52.    * @return formato
  53.   **/
  54.   @JsonProperty("formato")
  55.   @NotNull
  56.   @Valid
  57.   public FormatoSoapEnum getFormato() {
  58.     return this.formato;
  59.   }

  60.   public void setFormato(FormatoSoapEnum formato) {
  61.     this.formato = formato;
  62.   }

  63.   public ApiInterfacciaSoap formato(FormatoSoapEnum formato) {
  64.     this.formato = formato;
  65.     return this;
  66.   }


  67.   @Override
  68.   public String toString() {
  69.     StringBuilder sb = new StringBuilder();
  70.     sb.append("class ApiInterfacciaSoap {\n");
  71.    
  72.     sb.append("    protocollo: ").append(ApiInterfacciaSoap.toIndentedString(this.protocollo)).append("\n");
  73.     sb.append("    formato: ").append(ApiInterfacciaSoap.toIndentedString(this.formato)).append("\n");
  74.     sb.append("}");
  75.     return sb.toString();
  76.   }

  77.   /**
  78.    * Convert the given object to string with each line indented by 4 spaces
  79.    * (except the first line).
  80.    */
  81.   private static String toIndentedString(java.lang.Object o) {
  82.     if (o == null) {
  83.       return "null";
  84.     }
  85.     return o.toString().replace("\n", "\n    ");
  86.   }
  87. }