ApiImplAllegatoGenerico.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 ApiImplAllegatoGenerico  implements OneOfApiImplAllegatoAllegato {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private String nome = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private byte[] documento = null;
  32.  
  33.   @Schema(required = true, description = "")
  34.   private RuoloAllegatoAPIImpl ruolo = null;
  35.  /**
  36.    * Get nome
  37.    * @return nome
  38.   **/
  39.   @JsonProperty("nome")
  40.   @NotNull
  41.   @Valid
  42.   public String getNome() {
  43.     return this.nome;
  44.   }

  45.   public void setNome(String nome) {
  46.     this.nome = nome;
  47.   }

  48.   public ApiImplAllegatoGenerico nome(String nome) {
  49.     this.nome = nome;
  50.     return this;
  51.   }

  52.  /**
  53.    * Get documento
  54.    * @return documento
  55.   **/
  56.   @JsonProperty("documento")
  57.   @NotNull
  58.   @Valid
  59.   public byte[] getDocumento() {
  60.     return this.documento;
  61.   }

  62.   public void setDocumento(byte[] documento) {
  63.     this.documento = documento;
  64.   }

  65.   public ApiImplAllegatoGenerico documento(byte[] documento) {
  66.     this.documento = documento;
  67.     return this;
  68.   }

  69.  /**
  70.    * Get ruolo
  71.    * @return ruolo
  72.   **/
  73.   @Override
  74. @JsonProperty("ruolo")
  75.   @NotNull
  76.   @Valid
  77.   public RuoloAllegatoAPIImpl getRuolo() {
  78.     return this.ruolo;
  79.   }

  80.   public void setRuolo(RuoloAllegatoAPIImpl ruolo) {
  81.     this.ruolo = ruolo;
  82.   }

  83.   public ApiImplAllegatoGenerico ruolo(RuoloAllegatoAPIImpl ruolo) {
  84.     this.ruolo = ruolo;
  85.     return this;
  86.   }


  87.   @Override
  88.   public String toString() {
  89.     StringBuilder sb = new StringBuilder();
  90.     sb.append("class ApiImplAllegatoGenerico {\n");
  91.    
  92.     sb.append("    nome: ").append(ApiImplAllegatoGenerico.toIndentedString(this.nome)).append("\n");
  93.     sb.append("    documento: ").append(ApiImplAllegatoGenerico.toIndentedString(this.documento)).append("\n");
  94.     sb.append("    ruolo: ").append(ApiImplAllegatoGenerico.toIndentedString(this.ruolo)).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. }