ApiImplAllegatoItem.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 ApiImplAllegatoItem  {
  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 = "ruolo", visible = true )
  29.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ApiImplAllegatoItemGenerico.class, name = "allegato"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ApiImplAllegatoItemSpecificaSemiformale.class, name = "specificaSemiFormale"),
  32.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ApiImplAllegatoItemSpecificaSicurezza.class, name = "specificaSicurezza"),
  33.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ApiImplAllegatoItemSpecificaLivelloServizio.class, name = "specificaLivelloServizio")  })
  34.   private OneOfApiImplAllegatoItemAllegato allegato = null;
  35.  /**
  36.    * Get allegato
  37.    * @return allegato
  38.   **/
  39.   @JsonProperty("allegato")
  40.   @NotNull
  41.   @Valid
  42.   public OneOfApiImplAllegatoItemAllegato getAllegato() {
  43.     return this.allegato;
  44.   }

  45.   public void setAllegato(OneOfApiImplAllegatoItemAllegato allegato) {
  46.     this.allegato = allegato;
  47.   }

  48.   public ApiImplAllegatoItem allegato(OneOfApiImplAllegatoItemAllegato allegato) {
  49.     this.allegato = allegato;
  50.     return this;
  51.   }


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

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