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

com.nutanix.dp1.mic.microseg.v4.config.MatchEntity Maven / Gradle / Ivy

The newest version!
/*
 * Generated file ..
 *
 * Product version: 4.0.1-beta-1
 *
 * Part of the Nutanix Microseg Versioned APIs
 *
 * (c) 2024 Nutanix Inc.  All rights reserved
 *
 */

package com.nutanix.dp1.mic.microseg.v4.config;


import javax.validation.constraints.*;


import static com.nutanix.dp1.mic.deserializers.MicDeserializerUtils.*;

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

/**
 * The entity to perform matching on. Currently, only the target VM that a logon occurred on is supported.
 */

public enum MatchEntity {

  
  $UNKNOWN,
    
  $REDACTED,
    /**
    * VM
    */
  VM  ;

  private static final Map lookup = new LinkedHashMap();

  static {
    lookup.put("$UNKNOWN", $UNKNOWN);
    lookup.put("$REDACTED", $REDACTED);
    lookup.put("VM", VM);
  }

  @JsonCreator
  public static MatchEntity fromString(String enumTypeVar) {
    return lookup.getOrDefault(enumTypeVar, MatchEntity.$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