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

/**
 * GetRecentlyAddedHubsType - The type of media content
 * 
 */
public enum GetRecentlyAddedHubsType {
    Movie("movie"),
    TvShow("show"),
    Season("season"),
    Episode("episode");

    @JsonValue
    private final String value;

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