ControlloAccessiAttributeAuthority.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 ControlloAccessiAttributeAuthority  {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private String nome = null;
  30.  
  31.   @Schema(description = "")
  32.   private List<String> attributi = null;
  33.  /**
  34.    * Get nome
  35.    * @return nome
  36.   **/
  37.   @JsonProperty("nome")
  38.   @NotNull
  39.   @Valid
  40.  @Pattern(regexp="^[_A-Za-z][\\-_A-Za-z0-9]*$") @Size(max=255)  public String getNome() {
  41.     return this.nome;
  42.   }

  43.   public void setNome(String nome) {
  44.     this.nome = nome;
  45.   }

  46.   public ControlloAccessiAttributeAuthority nome(String nome) {
  47.     this.nome = nome;
  48.     return this;
  49.   }

  50.  /**
  51.    * Get attributi
  52.    * @return attributi
  53.   **/
  54.   @JsonProperty("attributi")
  55.   @Valid
  56.   public List<String> getAttributi() {
  57.     return this.attributi;
  58.   }

  59.   public void setAttributi(List<String> attributi) {
  60.     this.attributi = attributi;
  61.   }

  62.   public ControlloAccessiAttributeAuthority attributi(List<String> attributi) {
  63.     this.attributi = attributi;
  64.     return this;
  65.   }

  66.   public ControlloAccessiAttributeAuthority addAttributiItem(String attributiItem) {
  67.     this.attributi.add(attributiItem);
  68.     return this;
  69.   }


  70.   @Override
  71.   public String toString() {
  72.     StringBuilder sb = new StringBuilder();
  73.     sb.append("class ControlloAccessiAttributeAuthority {\n");
  74.    
  75.     sb.append("    nome: ").append(ControlloAccessiAttributeAuthority.toIndentedString(this.nome)).append("\n");
  76.     sb.append("    attributi: ").append(ControlloAccessiAttributeAuthority.toIndentedString(this.attributi)).append("\n");
  77.     sb.append("}");
  78.     return sb.toString();
  79.   }

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