// 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 strategy for deleting the OS disk. */
public final class OsDiskDeleteOption extends ExpandableStringEnum<OsDiskDeleteOption> {
    /** Static value Delete for OsDiskDeleteOption. */
    public static final OsDiskDeleteOption DELETE = fromString("Delete");

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

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

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