// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** The rental and lease key type. */
public final class ContentKeyPolicyFairPlayRentalAndLeaseKeyType
    extends ExpandableStringEnum<ContentKeyPolicyFairPlayRentalAndLeaseKeyType> {
    /** Static value Unknown for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */
    public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType UNKNOWN = fromString("Unknown");

    /** Static value Undefined for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */
    public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType UNDEFINED = fromString("Undefined");

    /** Static value DualExpiry for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */
    public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType DUAL_EXPIRY = fromString("DualExpiry");

    /** Static value PersistentUnlimited for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */
    public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_UNLIMITED =
        fromString("PersistentUnlimited");

    /** Static value PersistentLimited for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */
    public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_LIMITED =
        fromString("PersistentLimited");

    /**
     * Creates a new instance of ContentKeyPolicyFairPlayRentalAndLeaseKeyType value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ContentKeyPolicyFairPlayRentalAndLeaseKeyType() {
    }

    /**
     * Creates or finds a ContentKeyPolicyFairPlayRentalAndLeaseKeyType from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ContentKeyPolicyFairPlayRentalAndLeaseKeyType.
     */
    @JsonCreator
    public static ContentKeyPolicyFairPlayRentalAndLeaseKeyType fromString(String name) {
        return fromString(name, ContentKeyPolicyFairPlayRentalAndLeaseKeyType.class);
    }

    /**
     * Gets known ContentKeyPolicyFairPlayRentalAndLeaseKeyType values.
     *
     * @return known ContentKeyPolicyFairPlayRentalAndLeaseKeyType values.
     */
    public static Collection<ContentKeyPolicyFairPlayRentalAndLeaseKeyType> values() {
        return values(ContentKeyPolicyFairPlayRentalAndLeaseKeyType.class);
    }
}
