FruizioneModI.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 FruizioneModI  {
  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 = FruizioneModIOAuth.class, name = "oauth"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FruizioneModISoap.class, name = "soap"),
  32.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = FruizioneModIRest.class, name = "rest")  })
  33.   private OneOfFruizioneModIModi modi = null;
  34.  /**
  35.    * Get modi
  36.    * @return modi
  37.   **/
  38.   @JsonProperty("modi")
  39.   @NotNull
  40.   @Valid
  41.   public OneOfFruizioneModIModi getModi() {
  42.     return this.modi;
  43.   }

  44.   public void setModi(OneOfFruizioneModIModi modi) {
  45.     this.modi = modi;
  46.   }

  47.   public FruizioneModI modi(OneOfFruizioneModIModi modi) {
  48.     this.modi = modi;
  49.     return this;
  50.   }


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

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