// 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 minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure
 * default value will be used.
 */
public final class MinimumTlsVersion extends ExpandableStringEnum<MinimumTlsVersion> {
    /** Static value Tls10 for MinimumTlsVersion. */
    public static final MinimumTlsVersion TLS10 = fromString("Tls10");

    /** Static value Tls11 for MinimumTlsVersion. */
    public static final MinimumTlsVersion TLS11 = fromString("Tls11");

    /** Static value Tls12 for MinimumTlsVersion. */
    public static final MinimumTlsVersion TLS12 = fromString("Tls12");

    /** Static value Tls13 for MinimumTlsVersion. */
    public static final MinimumTlsVersion TLS13 = fromString("Tls13");

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

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

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