All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.nutanix.dp1.net.common.v1.config.MessageSeverity Maven / Gradle / Ivy

Go to download

Manage networking configuration on Nutanix clusters, including AHV and advanced networking.

There is a newer version: 4.0.2-beta-1
Show newest version
/*
 * Generated file ..
 *
 * Product version: 4.0.1-beta-1
 *
 * Part of the Nutanix Networking Versioned APIs
 *
 * (c) 2023 Nutanix Inc.  All rights reserved
 *
 */

package com.nutanix.dp1.net.common.v1.config;


import javax.validation.constraints.*;


import static com.nutanix.dp1.net.deserializers.NetDeserializerUtils.*;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * The message severity.
 * 
 */

public enum MessageSeverity {

  
  $UNKNOWN,
    
  $REDACTED,
    
  INFO,
    
  WARNING,
    
  ERROR  ;

  private static final Map lookup = new LinkedHashMap();

  static {
    lookup.put("$UNKNOWN", $UNKNOWN);
    lookup.put("$REDACTED", $REDACTED);
    lookup.put("INFO", INFO);
    lookup.put("WARNING", WARNING);
    lookup.put("ERROR", ERROR);
  }

  @JsonCreator
  public static MessageSeverity fromString(String enumTypeVar) {
    return lookup.getOrDefault(enumTypeVar, MessageSeverity.$UNKNOWN);
  }

  @JsonValue
  public String fromEnum() {
    for (Map.Entry entry : lookup.entrySet()) {
      if (entry.getValue() == this) {
        return entry.getKey();
      }
    }
    return "$UNKNOWN";
  }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy