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

package com.azure.resourcemanager.networkcloud.models;

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

/** The disk type of rack SKU resource. */
public final class DiskType extends ExpandableStringEnum<DiskType> {
    /** Static value HDD for DiskType. */
    public static final DiskType HDD = fromString("HDD");

    /** Static value SSD for DiskType. */
    public static final DiskType SSD = fromString("SSD");

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

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

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