APIImplAutenticazioneCustom.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 APIImplAutenticazioneCustom  implements OneOfControlloAccessiAutenticazioneAutenticazione {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoAutenticazioneEnum tipo = null;
  29.  
  30.   @Schema(required = true, description = "nome autenticazione 'custom', set tipo='custom'")
  31.  /**
  32.    * nome autenticazione 'custom', set tipo='custom'  
  33.   **/
  34.   private String nome = null;
  35.  
  36.   @Schema(example = "false", description = "")
  37.   private Boolean opzionale = false;
  38.  /**
  39.    * Get tipo
  40.    * @return tipo
  41.   **/
  42.   @Override
  43. @JsonProperty("tipo")
  44.   @NotNull
  45.   @Valid
  46.   public TipoAutenticazioneEnum getTipo() {
  47.     return this.tipo;
  48.   }

  49.   public void setTipo(TipoAutenticazioneEnum tipo) {
  50.     this.tipo = tipo;
  51.   }

  52.   public APIImplAutenticazioneCustom tipo(TipoAutenticazioneEnum tipo) {
  53.     this.tipo = tipo;
  54.     return this;
  55.   }

  56.  /**
  57.    * nome autenticazione 'custom', set tipo='custom'
  58.    * @return nome
  59.   **/
  60.   @JsonProperty("nome")
  61.   @NotNull
  62.   @Valid
  63.  @Size(max=255)  public String getNome() {
  64.     return this.nome;
  65.   }

  66.   public void setNome(String nome) {
  67.     this.nome = nome;
  68.   }

  69.   public APIImplAutenticazioneCustom nome(String nome) {
  70.     this.nome = nome;
  71.     return this;
  72.   }

  73.  /**
  74.    * Get opzionale
  75.    * @return opzionale
  76.   **/
  77.   @JsonProperty("opzionale")
  78.   @Valid
  79.   public Boolean isOpzionale() {
  80.     return this.opzionale;
  81.   }

  82.   public void setOpzionale(Boolean opzionale) {
  83.     this.opzionale = opzionale;
  84.   }

  85.   public APIImplAutenticazioneCustom opzionale(Boolean opzionale) {
  86.     this.opzionale = opzionale;
  87.     return this;
  88.   }


  89.   @Override
  90.   public String toString() {
  91.     StringBuilder sb = new StringBuilder();
  92.     sb.append("class APIImplAutenticazioneCustom {\n");
  93.    
  94.     sb.append("    tipo: ").append(APIImplAutenticazioneCustom.toIndentedString(this.tipo)).append("\n");
  95.     sb.append("    nome: ").append(APIImplAutenticazioneCustom.toIndentedString(this.nome)).append("\n");
  96.     sb.append("    opzionale: ").append(APIImplAutenticazioneCustom.toIndentedString(this.opzionale)).append("\n");
  97.     sb.append("}");
  98.     return sb.toString();
  99.   }

  100.   /**
  101.    * Convert the given object to string with each line indented by 4 spaces
  102.    * (except the first line).
  103.    */
  104.   private static String toIndentedString(java.lang.Object o) {
  105.     if (o == null) {
  106.       return "null";
  107.     }
  108.     return o.toString().replace("\n", "\n    ");
  109.   }
  110. }