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

com.nutanix.dp1.dat.dataprotection.v4.config.ProtectedResourceReplicationStatus Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.1
Show 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.dataprotection.v4.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;

/**
 * Status of replication to a specified target site.
 */

public enum ProtectedResourceReplicationStatus {

  
  $UNKNOWN,
    
  $REDACTED,
    /**
    * The specified recovery point objective is met on the target site and failover can be performed.
    */
  IN_SYNC,
    /**
    * The system is trying to meet the specified recovery point objective for the target site via ongoing replications and failover can't yet be performed.
    */
  SYNCING,
    /**
    * The replication schedule is disabled and there are no ongoing replications. Manual action might be needed by the user to meet the recovery point objective.
    */
  OUT_OF_SYNC  ;

  private static final Map lookup = new LinkedHashMap();

  static {
    lookup.put("$UNKNOWN", $UNKNOWN);
    lookup.put("$REDACTED", $REDACTED);
    lookup.put("IN_SYNC", IN_SYNC);
    lookup.put("SYNCING", SYNCING);
    lookup.put("OUT_OF_SYNC", OUT_OF_SYNC);
  }

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

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


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy