com.microsoft.graph.generated.models.security.CaseStatus Maven / Gradle / Ivy
package com.microsoft.graph.models.security;
import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum CaseStatus implements ValuedEnum {
Unknown("unknown"),
Active("active"),
PendingDelete("pendingDelete"),
Closing("closing"),
Closed("closed"),
ClosedWithError("closedWithError"),
UnknownFutureValue("unknownFutureValue");
public final String value;
CaseStatus(final String value) {
this.value = value;
}
@jakarta.annotation.Nonnull
public String getValue() { return this.value; }
@jakarta.annotation.Nullable
public static CaseStatus forValue(@jakarta.annotation.Nonnull final String searchValue) {
Objects.requireNonNull(searchValue);
switch(searchValue) {
case "unknown": return Unknown;
case "active": return Active;
case "pendingDelete": return PendingDelete;
case "closing": return Closing;
case "closed": return Closed;
case "closedWithError": return ClosedWithError;
case "unknownFutureValue": return UnknownFutureValue;
default: return null;
}
}
}