// 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 DiskMode. */
public final class DiskMode extends ExpandableStringEnum<DiskMode> {
    /** Static value persistent for DiskMode. */
    public static final DiskMode PERSISTENT = fromString("persistent");

    /** Static value independent_persistent for DiskMode. */
    public static final DiskMode INDEPENDENT_PERSISTENT = fromString("independent_persistent");

    /** Static value independent_nonpersistent for DiskMode. */
    public static final DiskMode INDEPENDENT_NONPERSISTENT = fromString("independent_nonpersistent");

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

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