mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 20:47:45 +00:00
40 lines
900 B
Java
40 lines
900 B
Java
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
package dev.plexapi.sdk.models.operations;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
import java.lang.String;
|
|
import java.util.Objects;
|
|
import java.util.Optional;
|
|
|
|
/**
|
|
* ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
|
*
|
|
*/
|
|
public enum ActiveDirection {
|
|
Ascending("asc"),
|
|
Descending("desc");
|
|
|
|
@JsonValue
|
|
private final String value;
|
|
|
|
private ActiveDirection(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static Optional<ActiveDirection> fromValue(String value) {
|
|
for (ActiveDirection o: ActiveDirection.values()) {
|
|
if (Objects.deepEquals(o.value, value)) {
|
|
return Optional.of(o);
|
|
}
|
|
}
|
|
return Optional.empty();
|
|
}
|
|
}
|