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

package com.azure.resourcemanager.workloads.models;

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

/** Gets or sets certificate preference if secure communication is enabled. */
public final class SslPreference extends ExpandableStringEnum<SslPreference> {
    /** Static value Disabled for SslPreference. */
    public static final SslPreference DISABLED = fromString("Disabled");

    /** Static value RootCertificate for SslPreference. */
    public static final SslPreference ROOT_CERTIFICATE = fromString("RootCertificate");

    /** Static value ServerCertificate for SslPreference. */
    public static final SslPreference SERVER_CERTIFICATE = fromString("ServerCertificate");

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

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

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