/* 
 * 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;

/**
 * GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show
 * None = Library default,
 * tmdbAiring = The Movie Database (Aired),
 * tvdbAiring = TheTVDB (Aired),
 * tvdbDvd = TheTVDB (DVD),
 * tvdbAbsolute = TheTVDB (Absolute)).
 * 
 */
public enum GetSearchAllLibrariesShowOrdering {
    None("None"),
    TmdbAiring("tmdbAiring"),
    TvdbAiring("tvdbAiring"),
    TvdbDvd("tvdbDvd"),
    TvdbAbsolute("tvdbAbsolute");

    @JsonValue
    private final String value;

    private GetSearchAllLibrariesShowOrdering(String value) {
        this.value = value;
    }
    
    public String value() {
        return value;
    }
    
    public static Optional<GetSearchAllLibrariesShowOrdering> fromValue(String value) {
        for (GetSearchAllLibrariesShowOrdering o: GetSearchAllLibrariesShowOrdering.values()) {
            if (Objects.deepEquals(o.value, value)) {
                return Optional.of(o);
            }
        }
        return Optional.empty();
    }
}
