EsitoTransazioneFullSearchEnum.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 com.fasterxml.jackson.annotation.JsonCreator;
  22. import com.fasterxml.jackson.annotation.JsonValue;

  23. /**
  24.  * Gets or Sets EsitoTransazioneFullSearchEnum
  25.  */
  26. public enum EsitoTransazioneFullSearchEnum {
  27. QUALSIASI("qualsiasi"),
  28.   OK("ok"),
  29.   FAULT("fault"),
  30.   FALLITE("fallite"),
  31.   FALLITE_E_FAULT("fallite_e_fault"),
  32.   ERRORI_CONSEGNA("errori_consegna"),
  33.   RICHIESTE_SCARTATE("richieste_scartate"),
  34.   PERSONALIZZATO("personalizzato");

  35.   private String value;

  36.   EsitoTransazioneFullSearchEnum(String value) {
  37.     this.value = value;
  38.   }

  39.   @Override
  40.   @JsonValue
  41.   public String toString() {
  42.     return String.valueOf(this.value);
  43.   }

  44.   @JsonCreator
  45.   public static EsitoTransazioneFullSearchEnum fromValue(String text) {
  46.     for (EsitoTransazioneFullSearchEnum b : EsitoTransazioneFullSearchEnum.values()) {
  47.       if (String.valueOf(b.value).equals(text)) {
  48.         return b;
  49.       }
  50.     }
  51.     return null;
  52.   }
  53.  
  54. }