RicercaBaseTransazione.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 javax.validation.constraints.*;

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

  25. public class RicercaBaseTransazione  {
  26.  
  27.   @Schema(description = "")
  28.   private Integer offset = 0;
  29.  
  30.   @Schema(description = "")
  31.   private Integer limit = null;
  32.  
  33.   @Schema(example = "+name", description = "")
  34.   private String sort = null;
  35.  
  36.   @Schema(required = true, description = "")
  37.   private FiltroTemporale intervalloTemporale = null;
  38.  
  39.   @Schema(required = true, description = "")
  40.   private FiltroRicercaRuoloTransazioneEnum tipo = null;
  41.  
  42.   @Schema(description = "Identificativo del nodo su cui e' stata emessa la transazione")
  43.  /**
  44.    * Identificativo del nodo su cui e' stata emessa la transazione  
  45.   **/
  46.   private String idCluster = null;
  47.  
  48.   @Schema(description = "")
  49.   private String tag = null;
  50.  
  51.   @Schema(description = "")
  52.   private FiltroApiSoggetti api = null;
  53.  
  54.   @Schema(description = "")
  55.   private String azione = null;
  56.  
  57.   @Schema(description = "")
  58.   private FiltroEsito esito = null;
  59.  
  60.   @Schema(description = "Evento da ricercare per una transazione")
  61.  /**
  62.    * Evento da ricercare per una transazione  
  63.   **/
  64.   private String evento = null;
  65.  /**
  66.    * Get offset
  67.    * @return offset
  68.   **/
  69.   @JsonProperty("offset")
  70.   @Valid
  71.   public Integer getOffset() {
  72.     return this.offset;
  73.   }

  74.   public void setOffset(Integer offset) {
  75.     this.offset = offset;
  76.   }

  77.   public RicercaBaseTransazione offset(Integer offset) {
  78.     this.offset = offset;
  79.     return this;
  80.   }

  81.  /**
  82.    * Get limit
  83.    * @return limit
  84.   **/
  85.   @JsonProperty("limit")
  86.   @Valid
  87.   public Integer getLimit() {
  88.     return this.limit;
  89.   }

  90.   public void setLimit(Integer limit) {
  91.     this.limit = limit;
  92.   }

  93.   public RicercaBaseTransazione limit(Integer limit) {
  94.     this.limit = limit;
  95.     return this;
  96.   }

  97.  /**
  98.    * Get sort
  99.    * @return sort
  100.   **/
  101.   @JsonProperty("sort")
  102.   @Valid
  103.   public String getSort() {
  104.     return this.sort;
  105.   }

  106.   public void setSort(String sort) {
  107.     this.sort = sort;
  108.   }

  109.   public RicercaBaseTransazione sort(String sort) {
  110.     this.sort = sort;
  111.     return this;
  112.   }

  113.  /**
  114.    * Get intervalloTemporale
  115.    * @return intervalloTemporale
  116.   **/
  117.   @JsonProperty("intervallo_temporale")
  118.   @NotNull
  119.   @Valid
  120.   public FiltroTemporale getIntervalloTemporale() {
  121.     return this.intervalloTemporale;
  122.   }

  123.   public void setIntervalloTemporale(FiltroTemporale intervalloTemporale) {
  124.     this.intervalloTemporale = intervalloTemporale;
  125.   }

  126.   public RicercaBaseTransazione intervalloTemporale(FiltroTemporale intervalloTemporale) {
  127.     this.intervalloTemporale = intervalloTemporale;
  128.     return this;
  129.   }

  130.  /**
  131.    * Get tipo
  132.    * @return tipo
  133.   **/
  134.   @JsonProperty("tipo")
  135.   @NotNull
  136.   @Valid
  137.   public FiltroRicercaRuoloTransazioneEnum getTipo() {
  138.     return this.tipo;
  139.   }

  140.   public void setTipo(FiltroRicercaRuoloTransazioneEnum tipo) {
  141.     this.tipo = tipo;
  142.   }

  143.   public RicercaBaseTransazione tipo(FiltroRicercaRuoloTransazioneEnum tipo) {
  144.     this.tipo = tipo;
  145.     return this;
  146.   }

  147.  /**
  148.    * Identificativo del nodo su cui e' stata emessa la transazione
  149.    * @return idCluster
  150.   **/
  151.   @JsonProperty("id_cluster")
  152.   @Valid
  153.   public String getIdCluster() {
  154.     return this.idCluster;
  155.   }

  156.   public void setIdCluster(String idCluster) {
  157.     this.idCluster = idCluster;
  158.   }

  159.   public RicercaBaseTransazione idCluster(String idCluster) {
  160.     this.idCluster = idCluster;
  161.     return this;
  162.   }

  163.  /**
  164.    * Get tag
  165.    * @return tag
  166.   **/
  167.   @JsonProperty("tag")
  168.   @Valid
  169.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getTag() {
  170.     return this.tag;
  171.   }

  172.   public void setTag(String tag) {
  173.     this.tag = tag;
  174.   }

  175.   public RicercaBaseTransazione tag(String tag) {
  176.     this.tag = tag;
  177.     return this;
  178.   }

  179.  /**
  180.    * Get api
  181.    * @return api
  182.   **/
  183.   @JsonProperty("api")
  184.   @Valid
  185.   public FiltroApiSoggetti getApi() {
  186.     return this.api;
  187.   }

  188.   public void setApi(FiltroApiSoggetti api) {
  189.     this.api = api;
  190.   }

  191.   public RicercaBaseTransazione api(FiltroApiSoggetti api) {
  192.     this.api = api;
  193.     return this;
  194.   }

  195.  /**
  196.    * Get azione
  197.    * @return azione
  198.   **/
  199.   @JsonProperty("azione")
  200.   @Valid
  201.  @Pattern(regexp="^[_A-Za-z][\\-\\._A-Za-z0-9]*$") @Size(max=255)  public String getAzione() {
  202.     return this.azione;
  203.   }

  204.   public void setAzione(String azione) {
  205.     this.azione = azione;
  206.   }

  207.   public RicercaBaseTransazione azione(String azione) {
  208.     this.azione = azione;
  209.     return this;
  210.   }

  211.  /**
  212.    * Get esito
  213.    * @return esito
  214.   **/
  215.   @JsonProperty("esito")
  216.   @Valid
  217.   public FiltroEsito getEsito() {
  218.     return this.esito;
  219.   }

  220.   public void setEsito(FiltroEsito esito) {
  221.     this.esito = esito;
  222.   }

  223.   public RicercaBaseTransazione esito(FiltroEsito esito) {
  224.     this.esito = esito;
  225.     return this;
  226.   }

  227.  /**
  228.    * Evento da ricercare per una transazione
  229.    * @return evento
  230.   **/
  231.   @JsonProperty("evento")
  232.   @Valid
  233.   public String getEvento() {
  234.     return this.evento;
  235.   }

  236.   public void setEvento(String evento) {
  237.     this.evento = evento;
  238.   }

  239.   public RicercaBaseTransazione evento(String evento) {
  240.     this.evento = evento;
  241.     return this;
  242.   }


  243.   @Override
  244.   public String toString() {
  245.     StringBuilder sb = new StringBuilder();
  246.     sb.append("class RicercaBaseTransazione {\n");
  247.    
  248.     sb.append("    offset: ").append(RicercaBaseTransazione.toIndentedString(this.offset)).append("\n");
  249.     sb.append("    limit: ").append(RicercaBaseTransazione.toIndentedString(this.limit)).append("\n");
  250.     sb.append("    sort: ").append(RicercaBaseTransazione.toIndentedString(this.sort)).append("\n");
  251.     sb.append("    intervalloTemporale: ").append(RicercaBaseTransazione.toIndentedString(this.intervalloTemporale)).append("\n");
  252.     sb.append("    tipo: ").append(RicercaBaseTransazione.toIndentedString(this.tipo)).append("\n");
  253.     sb.append("    idCluster: ").append(RicercaBaseTransazione.toIndentedString(this.idCluster)).append("\n");
  254.     sb.append("    tag: ").append(RicercaBaseTransazione.toIndentedString(this.tag)).append("\n");
  255.     sb.append("    api: ").append(RicercaBaseTransazione.toIndentedString(this.api)).append("\n");
  256.     sb.append("    azione: ").append(RicercaBaseTransazione.toIndentedString(this.azione)).append("\n");
  257.     sb.append("    esito: ").append(RicercaBaseTransazione.toIndentedString(this.esito)).append("\n");
  258.     sb.append("    evento: ").append(RicercaBaseTransazione.toIndentedString(this.evento)).append("\n");
  259.     sb.append("}");
  260.     return sb.toString();
  261.   }

  262.   /**
  263.    * Convert the given object to string with each line indented by 4 spaces
  264.    * (except the first line).
  265.    */
  266.   private static String toIndentedString(java.lang.Object o) {
  267.     if (o == null) {
  268.       return "null";
  269.     }
  270.     return o.toString().replace("\n", "\n    ");
  271.   }
  272. }