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

package com.azure.resourcemanager.devtestlabs.models;

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

/**
 * The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data
 * disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.
 */
public final class PremiumDataDisk extends ExpandableStringEnum<PremiumDataDisk> {
    /** Static value Disabled for PremiumDataDisk. */
    public static final PremiumDataDisk DISABLED = fromString("Disabled");

    /** Static value Enabled for PremiumDataDisk. */
    public static final PremiumDataDisk ENABLED = fromString("Enabled");

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

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

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