com.nutanix.dp1.sec.security.v4.common.Timescale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security-java-client Show documentation
Show all versions of security-java-client Show documentation
Manage security features, such as encryption, certificates, or platform hardening.
The newest version!
/*
* Generated file ..
*
* Product version: 4.0.1-beta-1
*
* Part of the Nutanix Security APIs
*
* (c) 2024 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.sec.security.v4.common;
import javax.validation.constraints.*;
import static com.nutanix.dp1.sec.deserializers.SecDeserializerUtils.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Contains potential different duration of time.
*/
public enum Timescale {
/**
* Unknown value.
*/
$UNKNOWN,
/**
* Redacted value.
*/
$REDACTED,
/**
* Time duration spanning over a day.
*/
DAY,
/**
* Time duration spanning over a week.
*/
WEEK,
/**
* Time duration spanning over a month.
*/
MONTH,
/**
* Time duration spanning over a quater of a year.
*/
QUARTER,
/**
* Time duration spanning over a year.
*/
YEAR ;
private static final Map lookup = new LinkedHashMap();
static {
lookup.put("$UNKNOWN", $UNKNOWN);
lookup.put("$REDACTED", $REDACTED);
lookup.put("DAY", DAY);
lookup.put("WEEK", WEEK);
lookup.put("MONTH", MONTH);
lookup.put("QUARTER", QUARTER);
lookup.put("YEAR", YEAR);
}
@JsonCreator
public static Timescale fromString(String enumTypeVar) {
return lookup.getOrDefault(enumTypeVar, Timescale.$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