FiltroEsito.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.monitor.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 FiltroEsito  {
  27.  
  28.   @Schema(required = true, description = "")
  29.   private EsitoTransazioneFullSearchEnum tipo = null;
  30.  
  31.   @Schema(description = "informazione utilizzata per escludere le richieste scartate; viene utilizzata solamente nel caso il tipo sia: qualsiasi, fallite, fallite_e_fault")
  32.  /**
  33.    * informazione utilizzata per escludere le richieste scartate; viene utilizzata solamente nel caso il tipo sia: qualsiasi, fallite, fallite_e_fault  
  34.   **/
  35.   private Boolean escludiScartate = false;
  36.  
  37.   @Schema(description = "")
  38.   private Integer codice = null;
  39.  
  40.   @Schema(description = "")
  41.   private List<Integer> codici = null;
  42.  /**
  43.    * Get tipo
  44.    * @return tipo
  45.   **/
  46.   @JsonProperty("tipo")
  47.   @NotNull
  48.   @Valid
  49.   public EsitoTransazioneFullSearchEnum getTipo() {
  50.     return this.tipo;
  51.   }

  52.   public void setTipo(EsitoTransazioneFullSearchEnum tipo) {
  53.     this.tipo = tipo;
  54.   }

  55.   public FiltroEsito tipo(EsitoTransazioneFullSearchEnum tipo) {
  56.     this.tipo = tipo;
  57.     return this;
  58.   }

  59.  /**
  60.    * informazione utilizzata per escludere le richieste scartate; viene utilizzata solamente nel caso il tipo sia: qualsiasi, fallite, fallite_e_fault
  61.    * @return escludiScartate
  62.   **/
  63.   @JsonProperty("escludi_scartate")
  64.   @Valid
  65.   public Boolean isEscludiScartate() {
  66.     return this.escludiScartate;
  67.   }

  68.   public void setEscludiScartate(Boolean escludiScartate) {
  69.     this.escludiScartate = escludiScartate;
  70.   }

  71.   public FiltroEsito escludiScartate(Boolean escludiScartate) {
  72.     this.escludiScartate = escludiScartate;
  73.     return this;
  74.   }

  75.  /**
  76.    * Get codice
  77.    * @return codice
  78.   **/
  79.   @JsonProperty("codice")
  80.   @Valid
  81.   public Integer getCodice() {
  82.     return this.codice;
  83.   }

  84.   public void setCodice(Integer codice) {
  85.     this.codice = codice;
  86.   }

  87.   public FiltroEsito codice(Integer codice) {
  88.     this.codice = codice;
  89.     return this;
  90.   }

  91.  /**
  92.    * Get codici
  93.    * @return codici
  94.   **/
  95.   @JsonProperty("codici")
  96.   @Valid
  97.   public List<Integer> getCodici() {
  98.     return this.codici;
  99.   }

  100.   public void setCodici(List<Integer> codici) {
  101.     this.codici = codici;
  102.   }

  103.   public FiltroEsito codici(List<Integer> codici) {
  104.     this.codici = codici;
  105.     return this;
  106.   }

  107.   public FiltroEsito addCodiciItem(Integer codiciItem) {
  108.     this.codici.add(codiciItem);
  109.     return this;
  110.   }


  111.   @Override
  112.   public String toString() {
  113.     StringBuilder sb = new StringBuilder();
  114.     sb.append("class FiltroEsito {\n");
  115.    
  116.     sb.append("    tipo: ").append(FiltroEsito.toIndentedString(this.tipo)).append("\n");
  117.     sb.append("    escludiScartate: ").append(FiltroEsito.toIndentedString(this.escludiScartate)).append("\n");
  118.     sb.append("    codice: ").append(FiltroEsito.toIndentedString(this.codice)).append("\n");
  119.     sb.append("    codici: ").append(FiltroEsito.toIndentedString(this.codici)).append("\n");
  120.     sb.append("}");
  121.     return sb.toString();
  122.   }

  123.   /**
  124.    * Convert the given object to string with each line indented by 4 spaces
  125.    * (except the first line).
  126.    */
  127.   private static String toIndentedString(java.lang.Object o) {
  128.     if (o == null) {
  129.       return "null";
  130.     }
  131.     return o.toString().replace("\n", "\n    ");
  132.   }
  133. }