GruppoAzioni.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 GruppoAzioni  {
  28.  
  29.   @Schema(example = "[\"az1\",\"az2\",\"az3\"]", required = true, description = "")
  30.   private List<String> azioni = new ArrayList<>();
  31.  /**
  32.    * Get azioni
  33.    * @return azioni
  34.   **/
  35.   @JsonProperty("azioni")
  36.   @NotNull
  37.   @Valid
  38.   public List<String> getAzioni() {
  39.     return this.azioni;
  40.   }

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

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

  48.   public GruppoAzioni addAzioniItem(String azioniItem) {
  49.     this.azioni.add(azioniItem);
  50.     return this;
  51.   }


  52.   @Override
  53.   public String toString() {
  54.     StringBuilder sb = new StringBuilder();
  55.     sb.append("class GruppoAzioni {\n");
  56.    
  57.     sb.append("    azioni: ").append(GruppoAzioni.toIndentedString(this.azioni)).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. }