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

package com.azure.resourcemanager.machinelearning.models;

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

/** Enum to determine the datastore secrets type. */
public final class SecretsType extends ExpandableStringEnum<SecretsType> {
    /** Static value AccountKey for SecretsType. */
    public static final SecretsType ACCOUNT_KEY = fromString("AccountKey");

    /** Static value Certificate for SecretsType. */
    public static final SecretsType CERTIFICATE = fromString("Certificate");

    /** Static value Sas for SecretsType. */
    public static final SecretsType SAS = fromString("Sas");

    /** Static value ServicePrincipal for SecretsType. */
    public static final SecretsType SERVICE_PRINCIPAL = fromString("ServicePrincipal");

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

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

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