com.nutanix.dp1.dat.common.v1.config.MessageSeverity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataprotection-java-client Show documentation
Show all versions of dataprotection-java-client Show documentation
Business Continuity with full spectrum of Disaster Recovery and Backup solution. Spanning across Single PC, Cross AZ, MultiSite. Configuration of Recovery points, Protection policies, Recovery Plans. Execution and monitoring of back up and recovery orchestrations on OnPrem as well as Cloud.
The newest version!
/*
* Generated file ..
*
* Product version: 4.0.1-beta-1
*
* Part of the Nutanix Dataprotection Versioned APIs
*
* (c) 2024 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.dat.common.v1.config;
import javax.validation.constraints.*;
import static com.nutanix.dp1.dat.deserializers.DatDeserializerUtils.*;
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 message severity.
*
*/
public enum MessageSeverity {
$UNKNOWN,
$REDACTED,
/**
* Information about successful completion.
*/
INFO,
/**
* Warning indicating future error.
*/
WARNING,
/**
* Error indicating failed completion.
*/
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";
}
}