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

package com.azure.resourcemanager.databoxedge.models;

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

/** Value indicating whether this adapter has DHCP enabled. */
public final class NetworkAdapterDhcpStatus extends ExpandableStringEnum<NetworkAdapterDhcpStatus> {
    /** Static value Disabled for NetworkAdapterDhcpStatus. */
    public static final NetworkAdapterDhcpStatus DISABLED = fromString("Disabled");

    /** Static value Enabled for NetworkAdapterDhcpStatus. */
    public static final NetworkAdapterDhcpStatus ENABLED = fromString("Enabled");

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

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

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