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

package com.azure.resourcemanager.logz.models;

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

/** Various states of the updating vm extension on resource. */
public final class VMHostUpdateStates extends ExpandableStringEnum<VMHostUpdateStates> {
    /** Static value Install for VMHostUpdateStates. */
    public static final VMHostUpdateStates INSTALL = fromString("Install");

    /** Static value Delete for VMHostUpdateStates. */
    public static final VMHostUpdateStates DELETE = fromString("Delete");

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

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

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