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

Whether or not to include details for a section (types, filters, and sorts). * Only exists for backwards compatibility, media providers other than the server libraries have it on always. */ public enum IncludeDetails { ZERO(0L), ONE(1L); @JsonValue private final long value; private IncludeDetails(long value) { this.value = value; } public long value() { return value; } public static Optional fromValue(long value) { for (IncludeDetails o: IncludeDetails.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } } return Optional.empty(); } }