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

  23. /**
  24.  * Gets or Sets ModISicurezzaMessaggioPatternAuditEnum
  25.  */
  26. public enum ModISicurezzaMessaggioPatternAuditEnum {
  27. REST01("audit-rest01"),
  28.   REST02("audit-rest02"),
  29.   LEGACY("audit-legacy");

  30.   private String value;

  31.   ModISicurezzaMessaggioPatternAuditEnum(String value) {
  32.     this.value = value;
  33.   }

  34.   @Override
  35.   @JsonValue
  36.   public String toString() {
  37.     return String.valueOf(this.value);
  38.   }

  39.   @JsonCreator
  40.   public static ModISicurezzaMessaggioPatternAuditEnum fromValue(String text) {
  41.     for (ModISicurezzaMessaggioPatternAuditEnum b : ModISicurezzaMessaggioPatternAuditEnum.values()) {
  42.       if (String.valueOf(b.value).equals(text)) {
  43.         return b;
  44.       }
  45.     }
  46.     return null;
  47.   }
  48.  
  49. }