com.nutanix.dp1.vmm.vmm.v4.ahv.config.ProtectionInfoReplicationStatus Maven / Gradle / Ivy
/*
* Generated file ..
*
* Product version: 4.0.3-alpha-1
*
* Part of the Nutanix Vmm Versioned APIs
*
* (c) 2023 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.vmm.vmm.v4.ahv.config;
import javax.validation.constraints.*;
import static com.nutanix.dp1.vmm.deserializers.VmmDeserializerUtils.*;
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;
/**
* Replication status of the entity.
*/
public enum ProtectionInfoReplicationStatus {
$UNKNOWN,
$REDACTED,
/**
* Replications are in-progress and the specified recovery point objective is met on the target site.
*/
SYNCED,
/**
* The system is trying to meet the specified recovery point objective for the target site.
*/
SYNCING,
/**
* The replication schedule is disabled and there are no ongoing replications.
*/
OUT_OF_SYNC ;
private static final Map lookup = new LinkedHashMap();
static {
lookup.put("$UNKNOWN", $UNKNOWN);
lookup.put("$REDACTED", $REDACTED);
lookup.put("SYNCED", SYNCED);
lookup.put("SYNCING", SYNCING);
lookup.put("OUT_OF_SYNC", OUT_OF_SYNC);
}
@JsonCreator
public static ProtectionInfoReplicationStatus fromString(String enumTypeVar) {
return lookup.getOrDefault(enumTypeVar, ProtectionInfoReplicationStatus.$UNKNOWN);
}
@JsonValue
public String fromEnum() {
for (Map.Entry entry : lookup.entrySet()) {
if (entry.getValue() == this) {
return entry.getKey();
}
}
return "$UNKNOWN";
}
}