ControlloAccessiIdentificazioneAttributi.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 java.util.List;
  22. import javax.validation.constraints.*;

  23. import io.swagger.v3.oas.annotations.media.Schema;
  24. import com.fasterxml.jackson.annotation.JsonProperty;
  25. import javax.validation.Valid;

  26. public class ControlloAccessiIdentificazioneAttributi extends ApiImplConfigurazioneStato {
  27.  
  28.   @Schema(required = true, description = "indica se la gestione del token è abilitata o meno")
  29.  /**
  30.    * indica se la gestione del token è abilitata o meno  
  31.   **/
  32.   private Boolean abilitato = null;
  33.  
  34.   @Schema(description = "")
  35.   private List<ControlloAccessiAttributeAuthority> attributeAuthority = null;
  36.  /**
  37.    * indica se la gestione del token è abilitata o meno
  38.    * @return abilitato
  39.   **/
  40.   @JsonProperty("abilitato")
  41.   @NotNull
  42.   @Valid
  43.   public Boolean isAbilitato() {
  44.     return this.abilitato;
  45.   }

  46.   public void setAbilitato(Boolean abilitato) {
  47.     this.abilitato = abilitato;
  48.   }

  49.   public ControlloAccessiIdentificazioneAttributi abilitato(Boolean abilitato) {
  50.     this.abilitato = abilitato;
  51.     return this;
  52.   }

  53.  /**
  54.    * Get attributeAuthority
  55.    * @return attributeAuthority
  56.   **/
  57.   @JsonProperty("attributeAuthority")
  58.   @Valid
  59.   public List<ControlloAccessiAttributeAuthority> getAttributeAuthority() {
  60.     return this.attributeAuthority;
  61.   }

  62.   public void setAttributeAuthority(List<ControlloAccessiAttributeAuthority> attributeAuthority) {
  63.     this.attributeAuthority = attributeAuthority;
  64.   }

  65.   public ControlloAccessiIdentificazioneAttributi attributeAuthority(List<ControlloAccessiAttributeAuthority> attributeAuthority) {
  66.     this.attributeAuthority = attributeAuthority;
  67.     return this;
  68.   }

  69.   public ControlloAccessiIdentificazioneAttributi addAttributeAuthorityItem(ControlloAccessiAttributeAuthority attributeAuthorityItem) {
  70.     this.attributeAuthority.add(attributeAuthorityItem);
  71.     return this;
  72.   }


  73.   @Override
  74.   public String toString() {
  75.     StringBuilder sb = new StringBuilder();
  76.     sb.append("class ControlloAccessiIdentificazioneAttributi {\n");
  77.     sb.append("    ").append(ControlloAccessiIdentificazioneAttributi.toIndentedString(super.toString())).append("\n");
  78.     sb.append("    abilitato: ").append(ControlloAccessiIdentificazioneAttributi.toIndentedString(this.abilitato)).append("\n");
  79.     sb.append("    attributeAuthority: ").append(ControlloAccessiIdentificazioneAttributi.toIndentedString(this.attributeAuthority)).append("\n");
  80.     sb.append("}");
  81.     return sb.toString();
  82.   }

  83.   /**
  84.    * Convert the given object to string with each line indented by 4 spaces
  85.    * (except the first line).
  86.    */
  87.   private static String toIndentedString(java.lang.Object o) {
  88.     if (o == null) {
  89.       return "null";
  90.     }
  91.     return o.toString().replace("\n", "\n    ");
  92.   }
  93. }