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

/**
 * IncludeIPv6 - Include IPv6 entries in the results
 */
public enum IncludeIPv6 {
    Disable(0),
    Enable(1);

    @JsonValue
    private final int value;

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