com.nutanix.dp1.net.networking.v4.config.UplinkBondLacpStatus Maven / Gradle / Ivy
/*
* 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.networking.v4.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;
/**
* LACP status of the bond (configured, negotiated, or off)
*/
public enum UplinkBondLacpStatus {
$UNKNOWN,
$REDACTED,
/**
* Uplink bond LACP is configured.
*/
CONFIGURED,
/**
* Uplink bond LACP is under negotiation.
*/
NEGOTIATED,
/**
* LACP is not configured for uplink bond.
*/
NIL ;
private static final Map lookup = new LinkedHashMap();
static {
lookup.put("$UNKNOWN", $UNKNOWN);
lookup.put("$REDACTED", $REDACTED);
lookup.put("CONFIGURED", CONFIGURED);
lookup.put("NEGOTIATED", NEGOTIATED);
lookup.put("NIL", NIL);
}
@JsonCreator
public static UplinkBondLacpStatus fromString(String enumTypeVar) {
return lookup.getOrDefault(enumTypeVar, UplinkBondLacpStatus.$UNKNOWN);
}
@JsonValue
public String fromEnum() {
for (Map.Entry entry : lookup.entrySet()) {
if (entry.getValue() == this) {
return entry.getKey();
}
}
return "$UNKNOWN";
}
}