/* 
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

package dev.plexapi.sdk.models.operations;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import java.util.Optional;

/**
 * OnlyTransient - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
 */
public enum OnlyTransient {
    ZERO(0L),
    ONE(1L);

    @JsonValue
    private final long value;

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