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

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

  27. public class ControlloAccessiAutorizzazioneApplicativi  {
  28.  
  29.   @Schema(example = "[\"Applicativo1\",\"Applicativo2\",\"Applicativo3\"]", required = true, description = "")
  30.   private List<String> applicativi = new ArrayList<>();
  31.  /**
  32.    * Get applicativi
  33.    * @return applicativi
  34.   **/
  35.   @JsonProperty("applicativi")
  36.   @NotNull
  37.   @Valid
  38.   public List<String> getApplicativi() {
  39.     return this.applicativi;
  40.   }

  41.   public void setApplicativi(List<String> applicativi) {
  42.     this.applicativi = applicativi;
  43.   }

  44.   public ControlloAccessiAutorizzazioneApplicativi applicativi(List<String> applicativi) {
  45.     this.applicativi = applicativi;
  46.     return this;
  47.   }

  48.   public ControlloAccessiAutorizzazioneApplicativi addApplicativiItem(String applicativiItem) {
  49.     this.applicativi.add(applicativiItem);
  50.     return this;
  51.   }


  52.   @Override
  53.   public String toString() {
  54.     StringBuilder sb = new StringBuilder();
  55.     sb.append("class ControlloAccessiAutorizzazioneApplicativi {\n");
  56.    
  57.     sb.append("    applicativi: ").append(ControlloAccessiAutorizzazioneApplicativi.toIndentedString(this.applicativi)).append("\n");
  58.     sb.append("}");
  59.     return sb.toString();
  60.   }

  61.   /**
  62.    * Convert the given object to string with each line indented by 4 spaces
  63.    * (except the first line).
  64.    */
  65.   private static String toIndentedString(java.lang.Object o) {
  66.     if (o == null) {
  67.       return "null";
  68.     }
  69.     return o.toString().replace("\n", "\n    ");
  70.   }
  71. }