RegistrazioneTransazioniConfigurazioneFiltroEsiti.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 RegistrazioneTransazioniConfigurazioneFiltroEsiti  {
  28.  
  29.   @Schema(required = true, description = "Indicare i codici degli esiti richiesti")
  30.  /**
  31.    * Indicare i codici degli esiti richiesti  
  32.   **/
  33.   private List<Integer> esiti = new ArrayList<>();
  34.  /**
  35.    * Indicare i codici degli esiti richiesti
  36.    * @return esiti
  37.   **/
  38.   @JsonProperty("esiti")
  39.   @NotNull
  40.   @Valid
  41.   public List<Integer> getEsiti() {
  42.     return this.esiti;
  43.   }

  44.   public void setEsiti(List<Integer> esiti) {
  45.     this.esiti = esiti;
  46.   }

  47.   public RegistrazioneTransazioniConfigurazioneFiltroEsiti esiti(List<Integer> esiti) {
  48.     this.esiti = esiti;
  49.     return this;
  50.   }

  51.   public RegistrazioneTransazioniConfigurazioneFiltroEsiti addEsitiItem(Integer esitiItem) {
  52.     this.esiti.add(esitiItem);
  53.     return this;
  54.   }


  55.   @Override
  56.   public String toString() {
  57.     StringBuilder sb = new StringBuilder();
  58.     sb.append("class RegistrazioneTransazioniConfigurazioneFiltroEsiti {\n");
  59.    
  60.     sb.append("    esiti: ").append(RegistrazioneTransazioniConfigurazioneFiltroEsiti.toIndentedString(this.esiti)).append("\n");
  61.     sb.append("}");
  62.     return sb.toString();
  63.   }

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