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

com.nutanix.dp1.vmm.dataprotection.v4.common.RecoveryPointStatus 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.dataprotection.v4.common;


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;

/**
 * The status of the Recovery point, which indicates whether this Recovery point is fit to be consumed.
 */

public enum RecoveryPointStatus {

  
  $UNKNOWN,
    
  $REDACTED,
    
  INCOMPLETE,
    
  COMPLETE,
    
  EXPIRED  ;

  private static final Map lookup = new LinkedHashMap();

  static {
    lookup.put("$UNKNOWN", $UNKNOWN);
    lookup.put("$REDACTED", $REDACTED);
    lookup.put("INCOMPLETE", INCOMPLETE);
    lookup.put("COMPLETE", COMPLETE);
    lookup.put("EXPIRED", EXPIRED);
  }

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