ErogazioneModI.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 ErogazioneModI  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "protocollo", visible = true )
  29.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ErogazioneModISoap.class, name = "soap"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ErogazioneModIRest.class, name = "rest")  })
  32.   private OneOfErogazioneModIModi modi = null;
  33.  /**
  34.    * Get modi
  35.    * @return modi
  36.   **/
  37.   @JsonProperty("modi")
  38.   @NotNull
  39.   @Valid
  40.   public OneOfErogazioneModIModi getModi() {
  41.     return this.modi;
  42.   }

  43.   public void setModi(OneOfErogazioneModIModi modi) {
  44.     this.modi = modi;
  45.   }

  46.   public ErogazioneModI modi(OneOfErogazioneModIModi modi) {
  47.     this.modi = modi;
  48.     return this;
  49.   }


  50.   @Override
  51.   public String toString() {
  52.     StringBuilder sb = new StringBuilder();
  53.     sb.append("class ErogazioneModI {\n");
  54.    
  55.     sb.append("    modi: ").append(ErogazioneModI.toIndentedString(this.modi)).append("\n");
  56.     sb.append("}");
  57.     return sb.toString();
  58.   }

  59.   /**
  60.    * Convert the given object to string with each line indented by 4 spaces
  61.    * (except the first line).
  62.    */
  63.   private static String toIndentedString(java.lang.Object o) {
  64.     if (o == null) {
  65.       return "null";
  66.     }
  67.     return o.toString().replace("\n", "\n    ");
  68.   }
  69. }