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

/**
 * Force - Force the refresh even if the library is already being refreshed.
 */
public enum Force {
    ZERO(0L),
    ONE(1L);

    @JsonValue
    private final long value;

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