APIImplAutorizzazioneXACMLView.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 APIImplAutorizzazioneXACMLView  implements OneOfControlloAccessiAutorizzazioneViewAutorizzazione {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoAutorizzazioneEnum tipo = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private FonteEnum ruoliFonte = null;
  32.  /**
  33.    * Get tipo
  34.    * @return tipo
  35.   **/
  36.   @Override
  37. @JsonProperty("tipo")
  38.   @NotNull
  39.   @Valid
  40.   public TipoAutorizzazioneEnum getTipo() {
  41.     return this.tipo;
  42.   }

  43.   public void setTipo(TipoAutorizzazioneEnum tipo) {
  44.     this.tipo = tipo;
  45.   }

  46.   public APIImplAutorizzazioneXACMLView tipo(TipoAutorizzazioneEnum tipo) {
  47.     this.tipo = tipo;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get ruoliFonte
  52.    * @return ruoliFonte
  53.   **/
  54.   @JsonProperty("ruoli_fonte")
  55.   @NotNull
  56.   @Valid
  57.   public FonteEnum getRuoliFonte() {
  58.     return this.ruoliFonte;
  59.   }

  60.   public void setRuoliFonte(FonteEnum ruoliFonte) {
  61.     this.ruoliFonte = ruoliFonte;
  62.   }

  63.   public APIImplAutorizzazioneXACMLView ruoliFonte(FonteEnum ruoliFonte) {
  64.     this.ruoliFonte = ruoliFonte;
  65.     return this;
  66.   }


  67.   @Override
  68.   public String toString() {
  69.     StringBuilder sb = new StringBuilder();
  70.     sb.append("class APIImplAutorizzazioneXACMLView {\n");
  71.    
  72.     sb.append("    tipo: ").append(APIImplAutorizzazioneXACMLView.toIndentedString(this.tipo)).append("\n");
  73.     sb.append("    ruoliFonte: ").append(APIImplAutorizzazioneXACMLView.toIndentedString(this.ruoliFonte)).append("\n");
  74.     sb.append("}");
  75.     return sb.toString();
  76.   }

  77.   /**
  78.    * Convert the given object to string with each line indented by 4 spaces
  79.    * (except the first line).
  80.    */
  81.   private static String toIndentedString(java.lang.Object o) {
  82.     if (o == null) {
  83.       return "null";
  84.     }
  85.     return o.toString().replace("\n", "\n    ");
  86.   }
  87. }