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

/** Encryption type of Content Key. */
public final class StreamingLocatorContentKeyType extends ExpandableStringEnum<StreamingLocatorContentKeyType> {
    /** Static value CommonEncryptionCenc for StreamingLocatorContentKeyType. */
    public static final StreamingLocatorContentKeyType COMMON_ENCRYPTION_CENC = fromString("CommonEncryptionCenc");

    /** Static value CommonEncryptionCbcs for StreamingLocatorContentKeyType. */
    public static final StreamingLocatorContentKeyType COMMON_ENCRYPTION_CBCS = fromString("CommonEncryptionCbcs");

    /** Static value EnvelopeEncryption for StreamingLocatorContentKeyType. */
    public static final StreamingLocatorContentKeyType ENVELOPE_ENCRYPTION = fromString("EnvelopeEncryption");

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

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

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