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

package com.azure.resourcemanager.connectedvmware.models;

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

/** Defines values for DiskType. */
public final class DiskType extends ExpandableStringEnum<DiskType> {
    /** Static value flat for DiskType. */
    public static final DiskType FLAT = fromString("flat");

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

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

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

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

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

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

    /**
     * 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);
    }
}
